Created
December 22, 2011 23:31
-
-
Save rorcraft/1512324 to your computer and use it in GitHub Desktop.
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 BASH_COMMON_PATH=~/.bash_common | |
source $BASH_COMMON_PATH/bashrc | |
export PROMPT_COLOR=32 | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # rvm | |
# [ -f ~/.bundler-exec.sh ] && source ~/.bundler-exec.sh | |
alias gs="git status" | |
alias e="subl" | |
function proml { | |
local BLUE="\[\033[0;34m\]" | |
local LIGHT_BLUE="\[\033[1;34m\]" | |
local LIGHT_GRAY="\[\033[1;30m\]" | |
local GRAY="\[\033[0;30m\]" | |
local RED="\[\033[0;31m\]" | |
local LIGHT_RED="\[\033[1;31m\]" | |
local LIGHT_YELLOW="\[\033[1;35m\]" | |
local LIGHT_RED_UNDERLINED="\[\033[4;1;31m\]" | |
local GREEN="\[\033[0;32m\]" | |
local LIGHT_GREEN="\[\033[1;32m\]" | |
local CYAN="\[\033[0;36m\]" | |
local LIGHT_CYAN="\[\033[1;36m\]" | |
local LIGHT_GREEN="\[\033[1;32m\]" | |
local LIGHT_GREEN_UNDERLINED="\[\033[4;1;32m\]" | |
local LIGHT_WHITE="\[\033[1;37m\]" | |
local WHITE="\[\033[0;37m\]" | |
local BLACK="\[\033[00m\]" | |
case $TERM in | |
xterm*) | |
TITLEBAR='\[\033]0;\u@\h:\w\007\]' | |
;; | |
*) | |
TITLEBAR="" | |
;; | |
esac | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
export GIT_PS1_SHOWSTASHSTATE=1 | |
export GIT_PS1_SHOWUNTRACKEDFILES=1 | |
export GIT_PS1_SHOWUPSTREAM="auto" | |
export PS1="${TITLEBAR}\ | |
$LIGHT_GREEN\${?#0}\ | |
$BLACK:$LIGHT_RED_UNDERLINED\w\[\033[0;1;34m\]\ | |
$LIGHT_CYAN\$(__git_ps1 \"($CYAN$GIT_AUTHOR_NAME$LIGHT_CYAN)[%s]\")\ | |
$BLACK \ | |
\n\ | |
$RED\$ $BLACK" | |
PS2='> ' | |
PS4='+ ' | |
} | |
export PROMPT_COMMAND="proml; " | |
export BUNDLER_EDITOR="subl" | |
export EDITOR='subl -w' | |
export GEM_EDITOR='subl' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment