Skip to content

Instantly share code, notes, and snippets.

@jules27
Created September 11, 2013 04:24
Show Gist options
  • Select an option

  • Save jules27/6519331 to your computer and use it in GitHub Desktop.

Select an option

Save jules27/6519331 to your computer and use it in GitHub Desktop.
# Enable directory and file color highlighting
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagacad
# Common aliases
alias rm='rm -i'
alias ll='ls -l'
alias la='ls -a'
alias vi='vim'
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
# Adding this first for homebrew
export PATH=/usr/local/bin:$PATH
# Git bash
source ~/.git-completion.bash
__git_ps1 ()
{
local b="$(git symbolic-ref HEAD 2>/dev/null)";
if [ -n "$b" ]; then
printf " (%s)" "${b##refs/heads/}";
fi
}
PS1='\h:\W$(__git_ps1 " (%s)")\$ '
export PS1='\[\033[01;33m\]\h\[\033[01;31m\] \W$(__git_ps1 " (%s)") \$\[\033[00m\] '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment