Skip to content

jorgegc/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jorge's dotfiles

If you are a Drupal developer you will probably find something interesting in my dotfiles.

They don't have much in them but they have just enough to get me going whenever I need to work in different environments.

Screenshot of Jorge's terminal

Instalation

Prerequisites

  • Git (2.x recommended)

Optional, but recommended:

  • drush - A command line shell and scripting interface for Drupal.

Bootstrapper

The bootstrapper will back up all your existing files before it installs anything new. It'll also warn you if a dependency isn't met.

$ bash <(curl -fsSL https://raw.githubusercontent.com/jorgegc/dotfiles/master/scripts/bootstrap.sh)

Don't worry, all your old files will be backed up in ~/.dotfiles-backup.

Upgrading

Upgrading is easy, all you need to do is run the bootstrapper again.

$ ~/.dotfiles/scripts/bootstrap.sh

Extending

Changes to the $PATH

If ~/.dotfiles/.path exists, it will be sourced along with the other files. You can use this to change the $PATH without having to fork this entire repository.

Here’s an example ~/.dotfiles/.path file that adds ~/utils to the $PATH:

export PATH="$HOME/utils:$PATH"

Extra configuration

Same as the .path, if ~/.dotfiles/.extra exists, it will be sourced along with the other files. You can use this to add a few custom commands without having to fork this entire repository or to add commands you don’t want to commit to a public repository.

My ~/.dotfiles/.extra at work looks something like this:

# Make sure I use the work email address when committing to Git.
GIT_AUTHOR_NAME="Jorge Castro"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="[email protected]"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"

You could also use ~/.dotfiles/.extra to override settings, functions and aliases from my dotfiles repository. However, it would probably better to fork this repository instead.

What is included

Shell

Most of the shell junk is setup to work in both zsh and bash. Bash users should see .bash_profile and .bash_prompt.

Aliases

Check out .aliases

Sensible configurations

About

My personal dotfiles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages