Last active
September 11, 2017 21:45
-
-
Save laranicolas/9c616473eb5cb2631caf3c3610b4d70d to your computer and use it in GitHub Desktop.
Fancy prompt osx
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
function parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ on \1/ ' | |
} | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi | |
export PS1='\[\033[36m\]\u \[\033[m\]at \[\033[1;32m\]\[\033[0;32m\]\w\[\033[0m\]\[\033[33m\]$(parse_git_branch)\[\033[0m\] \n⚡️ ' | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxBxDxCxegedabagacad | |
alias ls='ls -GFh' | |
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile | |
[[ -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