Last active
December 11, 2015 11:11
-
-
Save ihower/96c787ec6870fa54a826 to your computer and use it in GitHub Desktop.
~/.bash_profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export LC_ALL=en_US.UTF-8 | |
export LC_CTYPE=en_US.UTF-8 | |
export LANG=en-US | |
export EDITOR=vim | |
PATH=$HOME/bin:$HOME/.rvm/bin:/usr/local/bin:$PATH # Add RVM to PATH for scripting | |
function git_branch { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return; | |
echo "("${ref#refs/heads/}") "; | |
} | |
function ruby_version { | |
#echo "$(rbenv version | sed -e 's/ .*//')"; | |
echo "$(~/.rvm/bin/rvm-prompt)"; | |
} | |
PS1="[\[\033[1;32m\]\w\[\033[0m] \[\033[0m\]\[\033[1;36m\]\$(git_branch)\[\033[0;33m\]\$(ruby_version)\[\033[0m\]$ " | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment