Skip to content

Instantly share code, notes, and snippets.

@yrgoldteeth
Created April 26, 2011 16:11
Show Gist options
  • Save yrgoldteeth/942560 to your computer and use it in GitHub Desktop.
Save yrgoldteeth/942560 to your computer and use it in GitHub Desktop.
aliases
#directory stuff
alias la='ls -a'
alias ll='ls -l'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'
alias .......='cd ../../../../../..'
alias ~='cd ~'
alias code='cd ~/code'
alias ics='cd ~/code/phase2'
#file stuff
alias cp='cp -v'
alias mv='mv -v'
#apt-get stuff
alias agu='sudo apt-get update'
alias agd='sudo apt-get dist-upgrade'
#rails/ruby
alias rdb='rake db:migrate'
alias rdbp='rake db:migrate:plugins'
alias rdbtp='rake db:test:prepare'
alias rsc='ruby script/console'
alias rss='ruby script/server'
alias ss='script/server -u'
alias ss1='ss -p3001'
alias ss2='ss -p3002'
alias ss3='ss -p3003'
alias ss15='ss -p3015'
alias sc='script/console --debugger'
alias icstestdb='rake db:test:prepare;mysqldump -uroot -pisotope --routines --no-data --quick --opt phase_2_insight_card_services_development > ~/tmp/mysql.sql;cat ~/tmp/mysql.sql|mysql -uroot -pisotope phase_2_insight_card_services_test'
#git
alias gplom="git pull origin master"
alias gpsom="git push origin master"
alias gcow='git checkout work'
alias gcom='git checkout master'
alias gmw='git merge work'
alias gmm='git merge master'
alias gs='git status'
#grep stuff
alias grep='grep --color '
alias pgrep='pgrep -l '
alias pru='rvm 1.9.2 exec pru'
#misc
alias bashrc='. ~/.bashrc'
alias xclip='xclip -selection c.'
alias lck='gnome-screensaver-command -l'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment