Created
June 12, 2012 00:27
-
-
Save matthewconstantine/2913623 to your computer and use it in GitHub Desktop.
My bash_profile aliases
This file contains hidden or 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
alias cd..="cd .." | |
alias mspy="lsof | grep '.mp3'" | |
alias bpro="mate ~/.bash_profile" | |
alias reload="source ~/.bash_profile;echo reloaded bash_profile" | |
alias f="open -a Finder ./" | |
alias l="~/settab" | |
alias tree="ls -R | grep ':$' | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'" | |
alias preview="open -a Preview" | |
alias untar="tar xzvf" | |
alias g="git status" | |
alias gst="git status" | |
alias log="git log" | |
alias add="git add" | |
alias gbr="echo '--| Local |-------------';git branch;echo '--| Remote |------------';git branch -r | column" | |
alias gitzip="git-archive --format=zip > archive.zip" | |
alias gcam="git commit -am " | |
alias pushm="git push origin master" | |
alias pullm="git pull origin master" | |
alias gpp="echo '---------------------------------------------------------------------| Pull |-----';gpull;echo;echo;echo '---------------------------------------------------------------------| Push |-----';gpush" | |
alias gd="git diff | mate" | |
alias gdh="git diff HEAD | mate" | |
alias stash="git stash" | |
alias unstash="git stash apply" | |
alias amend="git commit --amend" | |
alias gitme="git log --author=Matt --name-status" | |
alias gco="git checkout" | |
alias master="git checkout master" | |
alias push="git push" | |
alias pull="git pull" | |
alias gc="git commit -m " | |
alias pullr="git pull --rebase origin" | |
alias hosts="sudo mate /etc/hosts" | |
alias lah="ls -lah" | |
alias et="mate . &" | |
alias ett="mate app config lib public test db/migrate db/schema.rb" | |
alias sit="cd ~/Sites" | |
alias z="sit; cd zaarly; l z" | |
alias zapi="z;cd api;l zapi" | |
alias zweb="z;cd web;l web" | |
# alias zgo="zweb;l :zweb;bundle exec unicorn_rails -p3000" | |
# alias zgo="zweb;l :zweb;SKIP_XHR=true rails s" | |
alias apigo="zapi;l :api;bundle exec thin start" | |
alias webgo="zweb;l :web;SKIP_XHR=true bundle exec foreman start" | |
alias dzgo="zweb;l :zweb;rails s --debugger" | |
alias zmon="z; l mongo;mongod" | |
alias zcn="z; cd api; l zconsole; bundle exec ./console" | |
alias cls="clear" | |
alias dir="ls" | |
alias clipjs="pbpaste | js2coffee | pbcopy" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment