aliases.zsh 1.47 KB
Newer Older
1
2
alias pu='pushd'
alias po='popd'
3

4
alias sc='ruby script/console'
5
alias sdb='ruby script/dbconsole'
6
alias ssd='ruby script/server --debugger'
7
alias ss='thin --stats "/thin/stats" start'
8
9
10
11
12
alias sg='ruby script/generate'
alias sd='ruby script/destroy'
alias sp='ruby script/plugin'
alias ssp='ruby script/spec'
alias rdbm='rake db:migrate'
13
14
15
16

alias mr='mate CHANGELOG app config db lib public script spec test'
alias .='pwd'
alias ...='cd ../..'
17
alias -- -='cd -'
18
19

alias _='sudo'
20
alias ss='sudo su -'
21

Geoff Garside's avatar
Geoff Garside committed
22
#alias g='grep -in'
23

Geoff Garside's avatar
Geoff Garside committed
24
alias g='git'
25
26
alias gst='git status'
alias gl='git pull'
27
alias gup='git fetch && git rebase'
28
29
alias gp='git push'
alias gd='git diff | mate'
Gerhard Lazu's avatar
Gerhard Lazu committed
30
alias gdv='git diff -w "$@" | vim -R -'
31
32
33
34
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch'
alias gba='git branch -a'
35
36
alias gdb='git branch -d'
alias gcount='git shortlog -sn'
37
alias gcp='git cherry-pick'
38
39
40

alias history='fc -l 1'

Geoff Garside's avatar
Geoff Garside committed
41
alias ls='ls -F'
42
43
44
45
alias ll='ls -alr'
alias l='ls'
alias ll='ls -l'
alias sl=ls # often screw this up
46
47
48
49

alias sgem='sudo gem'

alias rfind='find . -name *.rb | xargs grep -n'
Gerhard Lazu's avatar
Gerhard Lazu committed
50
alias afind='ack-grep -il'
51
52
53

alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'

Geoff Garside's avatar
Geoff Garside committed
54
55
56
57
alias et='mate . &'
alias ett='mate app config lib db public spec test Rakefile Capfile Todo &'
alias etp='mate app config lib db public spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'
alias etts='mate app config lib db public script spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'