Created
February 3, 2009 07:29
-
-
Save hackedunit/57377 to your computer and use it in GitHub Desktop.
Bash 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
| export PS1="\[\033[00m\]\u@\h\[\033[00m\]:\[\033[00m\]\w\[\033[00m\] \`ruby -e \"print (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').gsub(/^\* (.+)$/, '[\1] ')\"\`\[\033[00m\]$\[\033[00m\] " | |
| export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" | |
| export SVN_EDITOR='/usr/bin/mate -w' | |
| export HGEDITOR='/usr/bin/mate -w' | |
| # System | |
| alias ll='ls -alhG' | |
| alias cvps='cd ~/Projects/Rails/vps-net' | |
| alias cbil='cd ~/Projects/Rails/billings' | |
| alias mysql='/usr/local/mysql/bin/mysql' | |
| alias mysqladmin='/usr/local/mysql/bin/mysqladmin' | |
| alias mysqlstop='sudo launchctl unload -w /Library/LaunchDaemons/com.mysql.mysqld.plist' | |
| alias mysqlrestart='sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysqld.plist' | |
| alias rst='sudo apachectl graceful' | |
| alias today='things --database /Users/Tinu/Dropbox/Cultured\ Code/Things/Database.xml --all today' | |
| alias svps='ssh -A vps' | |
| # Heroku | |
| alias h='heroku' | |
| alias hpom='heroku push origin master' | |
| alias hrst='heroku restart' | |
| alias hlog='heroku logs' | |
| alias hcon='heroku config' | |
| alias hrdb='heroku rake db:migrate' | |
| # TextMate as editor | |
| alias e='mate' | |
| # Subversion | |
| alias sup='svn update' | |
| alias sci='svn commit' | |
| alias sst='svn status' | |
| alias sdf='svn diff | mate' | |
| alias sin='svn info' | |
| alias slg='svn log --stop-on-copy' | |
| # Git | |
| alias g='git' | |
| alias gst='git status' | |
| alias gba='git branch -a' | |
| alias gbl='git branch -l' | |
| alias gbr='git branch -r' | |
| alias gc='git checkout' | |
| alias gcm='git checkout master' | |
| alias gp='git pull' | |
| alias gmm='git merge master' | |
| alias gcb='git-create-branch' | |
| # GitX | |
| alias gx='gitx' | |
| alias gxc='gitx -c' | |
| alias gxme='gitx --author=Tinu' | |
| alias gxm='gitx origin/master..' | |
| alias gxlrm='gitx --left-right origin/master...HEAD' | |
| alias gdf='git diff | gitx' | |
| alias gdfm='git diff master | gitx' | |
| alias gdfh='git diff HEAD | gitx' | |
| # Mercurial | |
| alias hgst='hg st' | |
| alias hgdf='hg diff | mate' | |
| alias hgin='hg incoming' | |
| alias hgout='hg outgoing' | |
| # Ruby on Rails | |
| alias ss='script/server' | |
| alias sss='script/server -e staging' | |
| alias sc='script/console' | |
| alias scs='script/console staging' | |
| alias sgm='script/generate migration' | |
| alias rdb='rake db:migrate RAILS_ENV=development' | |
| alias rdbr='rake db:rollback RAILS_ENV=development' | |
| alias rdbrs='rake db:rollback RAILS_ENV=staging' | |
| alias rdbs='rake db:migrate RAILS_ENV=staging' | |
| alias rtl='rake db:test:load' | |
| alias rtp='rake db:test:prepare' | |
| alias rtu='rake test:units' | |
| alias rtf='rake test:functionals' | |
| alias rti='rake test:integration' | |
| alias rr='rake routes' | |
| alias er='mate app config db lib public test vendor/plugins' | |
| alias rfb='rake facebooker:tunnel:start' | |
| alias tld='tail -f log/development.log' | |
| alias tls='tail -f log/staging.log' | |
| alias tlt='tail -f log/test.log' | |
| alias ttr='touch tmp/restart.txt' | |
| alias rtr='rm tmp/restart.txt' | |
| alias att='autotest' | |
| alias rcv='rcov --rails --text-summary --exclude "gems/*" -o /Users/Tinu/Sites/rcov/ test/unit/*.rb test/functional/*.rb' | |
| #XCode | |
| alias xcb='xcodebuild' | |
| alias xcc='xcodebuild clean' | |
| alias xch='~/Library/checker/scan-build -k -V xcodebuild' | |
| #Git auto-complete | |
| source ~/.bash_scripts/git-completion.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment