Skip to content

Instantly share code, notes, and snippets.

@wok
Created October 1, 2015 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wok/c57a2c67b9675c890695 to your computer and use it in GitHub Desktop.
Save wok/c57a2c67b9675c890695 to your computer and use it in GitHub Desktop.
# editor for bundler
export BUNDLER_EDITOR=atom
export EDITOR=atom
# git completion
source ~/.git-completion.bash
# original PS1
# export PS1='\h:\W \u\$ '
function __my_rvm_ruby_version {
local version=$(rvm-prompt s )
[ "$version" != "ruby-2.1.4" ] && echo "[$version] "
}
export PS1='$(__my_rvm_ruby_version)\u:\[\033[34m\]\W\[\033[00m\]$(__git_ps1 " (\[\033[01;31m\]%s\[\033[00m\])")\$ '
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
export GIT_PS1_SHOWUPSTREAM="verbose, git"
export GIT_EXEC_PATH="$HOME/gitexec:$(git --exec-path)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment