aliases.zsh 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #!/bin/zsh
  2. # Push and pop directories on directory stack
  3. alias pu='pushd'
  4. alias po='popd'
  5. alias ss='thin --stats "/thin/stats" start'
  6. alias sg='ruby script/generate'
  7. alias sd='ruby script/destroy'
  8. alias sp='ruby script/plugin'
  9. alias ssp='ruby script/spec'
  10. alias rdbm='rake db:migrate'
  11. alias sc='ruby script/console'
  12. alias sd='ruby script/server --debugger'
  13. alias devlog='tail -f log/development.log'
  14. # Basic directory operations
  15. alias .='pwd'
  16. alias ...='cd ../..'
  17. alias -- -='cd -'
  18. # Super user
  19. alias _='sudo'
  20. alias ss='sudo su -'
  21. #alias g='grep -in'
  22. # Show history
  23. alias history='fc -l 1'
  24. # List direcory contents
  25. alias lsa='ls -lah'
  26. alias l='ls -la'
  27. alias ll='ls -alr'
  28. alias sl=ls # often screw this up
  29. alias sgem='sudo gem'
  30. # Find ruby file
  31. alias rfind='find . -name *.rb | xargs grep -n'
  32. alias afind='ack-grep -il'
  33. # Git and svn mix
  34. alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
  35. # TextMate
  36. alias et='mate . &'
  37. alias ett='mate app config lib db public spec test Rakefile Capfile Todo &'
  38. alias etp='mate app config lib db public spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'
  39. alias etts='mate app config lib db public script spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'
  40. # Editor Ruby file in TextMate
  41. alias mr='mate CHANGELOG app config db lib public script spec test'