Skip to content

Instantly share code, notes, and snippets.

@olibob
Created December 8, 2012 11:49
Show Gist options
  • Save olibob/4239958 to your computer and use it in GitHub Desktop.
Save olibob/4239958 to your computer and use it in GitHub Desktop.
osx: bash profile
# Colored ls
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
# Java crap
export JAVA_HOME=/Library/Java/Home
export CATALINA_HOME=/usr/local/tomcat
# Aliases
alias ll='ls -lhF'
alias l='ls -ltr'
alias grep='grep --colour'
alias tomcat='cd $CATALINA_HOME'
alias hgrep='history | grep -i'
alias rub='cd ~/Documents/Dev/Ruby/'
alias rrb='cd ~/Documents/Dev/Rails/'
#alias vi='/Applications/MacVim.app/Contents/MacOS/Vim'
alias sp='open ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/'
# SVN Editor
export SVN_EDITOR=/usr/bin/vi
export EDITOR=vi
# Git bash completion
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
# Source bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# RVM (Ruby Version Manager)
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# Prompt colors
BLUE="\[\033[0;34m\]"
RED="\[\033[0;31m\]"
GREEN="\[\033[0;32m\]"
RESETC="\[\033[0m\]"
# Prompt
#PS1="$BLUE\h$RESETC:$RED\u$RESETC \w > "
. ~/.bash/gitprompt.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment