Last active
December 14, 2015 17:49
-
-
Save samkeen/5124989 to your computer and use it in GitHub Desktop.
My current (horrific mess but functional) bash prompt
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
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
# $ cd ~ | |
# $ wget https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh -O .git-prompt.sh | |
# Setup git auto-complete and branch | |
source .git-prompt.sh | |
# curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash | |
. ~/.git-completion.bash | |
if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
. $(brew --prefix)/etc/bash_completion | |
fi | |
GIT_PS1_SHOWDIRTYSTATE=true | |
export PS1='\[\033[1;34m\][\[\033[0;36m\]\w\[\033[1;34m\]] \[\033[32m\]$(__git_ps1 "(%s)")\[\033[1;37m\]\$ \[\033[0m\]' | |
export PS1="\[\033[1;34m\]\$(~/.rvm/bin/rvm-prompt)\[\033[1;34m\]\n$PS1" | |
alias ll="ls -lah" | |
alias devbox="ssh samk@samk-dev" | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
export PATH=/usr/local/mysql/bin:$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment