Skip to content

Instantly share code, notes, and snippets.

@jjsub
Created April 4, 2018 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjsub/12bb1dd0838665556953ca388631d399 to your computer and use it in GitHub Desktop.
Save jjsub/12bb1dd0838665556953ca388631d399 to your computer and use it in GitHub Desktop.
txtblk='[\e[0;30m]' # Black
txtred='\[\e[0;31m\]' # Red
txtgrn='\[\e[0;32m\]' # Green
txtylw='\[\e[0;33m\]' # Yellow
txtblu='\[\e[0;34m\]' # Blue
txtpur='\[\e[0;35m\]' # Purple
txtcyn='\[\e[0;36m\]' # Cyan
txtwht='\[\e[0;37m\]' # White
txtrst='\[\e[0m\]' # Text Reset
export GIT_HOME=/usr/local/git/bin
export NODE_HOME=/usr/local/node/bin
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=$GIT_HOME:$NODE_HOME:$PATH
export EDITOR=vim
export SHELL=/bin/bash
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
alias ll='ls -lahp'
alias l='ls -a'
alias b='cd ..'
alias codef='cd ~/Documents/code'
alias c='clear'
branch()
{
git branch 2> /dev/null | awk '/\*/ {print "#" $2;}'
}
status()
{
git status --porcelain 2> /dev/null | wc | awk '{if($1 > 0)print"+";}'
}
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
export PS1="$txtcyn\u$txtred@$txtcyn\h $txtred\w $txtylw\$(status)$txtgrn\$(branch)$txtcyn:$txtrst"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment