Created
April 9, 2013 16:52
-
-
Save gustavoguichard/5347356 to your computer and use it in GitHub Desktop.
My Alias
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
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" | |
parse_git_branch() { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ →\ \1/' | |
} | |
# export PS1="\[\e[0;31m\][\u] \W\n$ " | |
export PS1='\[\e[1;37m\]\W\[\e[1;36m\]$(parse_git_branch)\[\e[0;39m\]\n$ ' | |
export PROMPT_COMMAND='echo -ne "\033]0;${PWD}\007"' | |
export GREP_OPTIONS="--color=auto" | |
export GREP_COLOR="4;33" | |
export CLICOLOR="auto" | |
# COMMANDS | |
alias ls="ls -G" | |
alias editBash="sudo subl ~/.bash_profile" | |
alias hideDesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder" | |
alias showDesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder" | |
alias desk="cd ~/Desktop/" | |
alias ..="cd ../" | |
alias ...="cd ../../" | |
alias server="open http://localhost:8000 && python -m SimpleHTTPServer" | |
alias ~="cd ~/" | |
alias clean="purge" | |
alias on="foreman start" | |
alias brake="bundle exec rake" | |
alias hrake="heroku run rake" | |
alias hrails="heroku run rails" | |
alias ropen="open http://localhost:3000" | |
alias be="bundle exec" | |
alias iPhone="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator" | |
# NODE | |
alias snpm="sudo npm" | |
# GIT | |
alias gc="git commit -am" | |
alias gs="git status" | |
alias ga="git add ." | |
alias gb="git branch" | |
alias gp="git push" | |
alias gpp="git push production" | |
alias gmaster="git checkout master" | |
alias gck="git checkout" | |
alias deploy="git push heroku master" | |
alias apc="RAILS_ENV=production bundle exec rake assets:precompile" | |
# ZEUS | |
alias zst="zeus start" | |
alias zs="zeus server" | |
alias zr="zeus rspec" | |
alias zc="zeus console" | |
alias zcc="zeus cucumber" | |
# PROJECTS | |
alias sites="cd ~/Sites/" | |
alias engage="cd ~/Sites/engage/" | |
alias mineo="cd ~/Sites/engage/mineo/" | |
# alias fbb="cd ~/Sites/facebookapps/Bilheteria/" | |
alias fdi="cd ~/Sites/engage/festivaldeideias/" | |
# alias nosvc="cd ~/Sites/engage/nosvc/" | |
alias lbm="cd ~/Sites/engage/littlebigmoney/" | |
alias rlf="cd ~/Sites/rlf_rails/" | |
alias qrs="cd ~/Sites/qrshirts/" | |
alias ggg="cd ~/Sites/gustavoguichard/" | |
alias gisele="cd ~/Sites/giseledemenezes/" | |
PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment