Skip to content

Instantly share code, notes, and snippets.

@seangaffney
Created July 25, 2011 15:24
Show Gist options
  • Save seangaffney/1104382 to your computer and use it in GitHub Desktop.
Save seangaffney/1104382 to your computer and use it in GitHub Desktop.
HAWTEST BASH PROFILE EVAR
alias lls='ls -lha'
alias ~='cd ~'
alias reload="source ~/.bash_profile"
alias pyserver="python -m SimpleHTTPServer"
# Projects
alias cdb1="cd ~/Sites/blah1"
alias cdb2="cd ~/Sites/blah2"
alias cdb3="cd ~/Sites/blah3"
# Rails
alias r="rails"
# PostgreSQL
alias pgstart="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start"
alias pgstop="pg_ctl -D /usr/local/var/postgres stop -s -m fast"
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# Homebrew, dawg
export PATH="/usr/local/bin:/usr/local/sbin:$HOME/bin:$PATH"
source $HOME/.git-completion.sh
source $HOME/.git-flow-completion.sh
# Gotta have those aliaseses
source $HOME/.bash_alias
# DUURRRRTY
export GIT_PS1_SHOWDIRTYSTATE=true
# TextMate 4EVA
export EDITOR='mate -w'
export CLICOLOR=1
export LSCOLORS=gxfxcxdxbxegedabagacad
# Handy dandy shortcuts for lazy people
BLACK=$(tput setaf 0)
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
BLUE=$(tput setaf 4)
MAGENTA=$(tput setaf 5)
CYAN=$(tput setaf 6)
WHITE=$(tput setaf 7)
LIME_YELLOW=$(tput setaf 190)
POWDER_BLUE=$(tput setaf 153)
BRIGHT=$(tput bold)
NORMAL=$(tput sgr0)
BLINK=$(tput blink)
REVERSE=$(tput smso)
UNDERLINE=$(tput smul)
# TEH BEST PS1 IN THE UNIVERSES (BECAUSE OF THE TRIFORCE, OBVI)
PS1='${GREEN}\h${RED}$(__my_rvm_ruby_version) ${CYAN}\w${YELLOW}$(__git_ps1 " (%s)")${WHITE}\n∴ '
# This loads RVM into a shell session. YAY!
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
# This puts a space before the RVM output if there is any, making it behave like the __git_ps1,
# which is way better than the normal, super lame behavior.
function __my_rvm_ruby_version {
local rvm_prompt=$(~/.rvm/bin/rvm-prompt v p g)
[ "$rvm_prompt" != "" ] && echo " $rvm_prompt"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment