Created
July 13, 2011 00:35
-
-
Save ashmckenzie/1079504 to your computer and use it in GitHub Desktop.
Profile
This file contains 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 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}"; echo -ne "\007"' | |
function parse_git_branch { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
if [ $(git status -s | wc -l) -gt 0 ]; then | |
changes="*" | |
fi | |
echo "-["${ref#refs/heads/}"${changes}]" | |
} | |
function get_rvm_in_use { | |
ver=$(rvm current) | |
echo ${ver} | |
} | |
export rvm_path=/usr/local/rvm | |
[[ -s "/usr/local/rvm/scripts/rvm" ]] && . "/usr/local/rvm/scripts/rvm" | |
[[ -f `brew --prefix`/etc/bash_completion ]] && . `brew --prefix`/etc/bash_completion | |
export PS1="\[\e]0;\u@\h-\w\a\][\033[1;32m\u\033[1;00m@\033[1;36m\h\033[1;00m]-[\t]-[j:\j]-[e:$?]-[\$(get_rvm_in_use)]\$(parse_git_branch)-[\033[1;33m\w\033[1;00m]\n$ " | |
export PATH=~/bin:/usr/local/bin:$PATH | |
source /usr/local/Cellar/coreutils/8.12/aliases | |
alias ls='/usr/local/bin/gls -la --color=auto' | |
alias rm='/usr/local/bin/grm -i' | |
alias cp='/usr/local/bin/gcp -i' | |
alias mv='/usr/local/bin/gmv -i' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment