aliases.zsh 1.3 KB
Newer Older
To1ne's avatar
To1ne committed
1
2
3
#!/bin/zsh

# Push and pop directories on directory stack
4
5
alias pu='pushd'
alias po='popd'
6

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
alias sc='ruby script/console'
alias sd='ruby script/server --debugger'
15
alias devlog='tail -f log/development.log'
16

To1ne's avatar
To1ne committed
17
# Basic directory operations
18
19
alias .='pwd'
alias ...='cd ../..'
20
alias -- -='cd -'
21

To1ne's avatar
To1ne committed
22
# Super user
23
24
alias _='sudo'

Geoff Garside's avatar
Geoff Garside committed
25
#alias g='grep -in'
26

To1ne's avatar
To1ne committed
27
# Show history
28
29
alias history='fc -l 1'

To1ne's avatar
To1ne committed
30
# List direcory contents
31
alias lsa='ls -lah'
To1ne's avatar
To1ne committed
32
alias l='ls -la'
33
34
alias ll='ls -alr'
alias sl=ls # often screw this up
35
36
37

alias sgem='sudo gem'

To1ne's avatar
To1ne committed
38
# Find ruby file
39
alias rfind='find . -name *.rb | xargs grep -n'
Gerhard Lazu's avatar
Gerhard Lazu committed
40
alias afind='ack-grep -il'
41

To1ne's avatar
To1ne committed
42
# Git and svn mix
43
44
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'

To1ne's avatar
To1ne committed
45
# TextMate
Geoff Garside's avatar
Geoff Garside committed
46
47
48
49
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 &'
To1ne's avatar
To1ne committed
50
51

# Editor Ruby file in TextMate
52
alias mr='mate CHANGELOG app config db lib public script spec test'