Skip to content

Instantly share code, notes, and snippets.

@heartcode
Last active October 10, 2015 15:47
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 heartcode/3713355 to your computer and use it in GitHub Desktop.
Save heartcode/3713355 to your computer and use it in GitHub Desktop.
.bash_profile
export PATH="/usr/local/bin:/usr/local/mysql/bin:/usr/local/etc:/usr/local/sbin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
# [[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion
source ~/.git-completion.sh
ssh-add
function rvm_version {
local gemset=$(echo $GEM_HOME | awk -F'@' '{print $2}')
[ "$gemset" != "" ] && gemset="@$gemset"
local version=$(echo $MY_RUBY_HOME | awk -F'-' '{print $2}')
[ "$version" != "" ] && version="$version"
local full="$version$gemset"
[ "$full" != "" ] && echo "$full "
}
case "$TERM" in
xterm*)
PS1='\[\033[01;32m\]\u@\h \[\033[0;32m\]$(rvm_version)\[\033[00m\]:\[\033[01;36m\]\w\[\033[01;33m\]$(__git_ps1 " (%s)")\[\033[00m\]\$ '
;;
*)
PS1='\u@\h:\w$(__git_ps1 " (%s)")\$ '
;;
esac
alias la='ls -la'
alias gst="git status"
alias gco="git checkout"
alias gcm="git commit -m"
alias gpull="git pull"
alias gp="git push"
alias gpo="git push origin"
alias gpullo="git pull origin"
alias gm="git merge"
alias gr="git rebase"
alias gc="git clone"
alias gpod="git push origin development"
alias gpom="git push origin master"
alias cuke="script/cucumber -r features/ --no-profile"
alias spec="script/spec"
alias ss="script/server"
alias ssd="script/server --debug"
alias ssc="CACHE_CLASSES=true script/server"
alias rserv="rails server"
alias repow="powify server restart"
alias be="bundle exec"
alias redbum="rake db:migrate"
alias redbear="rake db:rollback"
alias redbeetop="rake db:test:prepare"
alias slime='open -a "Sublime Text 2" "$1"'
export EDITOR="subl -w"
export BUNDLE_EDITOR="subl"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment