aliases.zsh 1.39 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

To1ne's avatar
To1ne committed
7
# Ruby related
8
alias ss='thin --stats "/thin/stats" start'
9

To1ne's avatar
To1ne committed
10
# Basic directory operations
11
12
13
alias .='pwd'
alias ...='cd ../..'

To1ne's avatar
To1ne committed
14
# Super user
15
alias _='sudo'
16
alias ss='sudo su -'
17

Geoff Garside's avatar
Geoff Garside committed
18
#alias g='grep -in'
19

To1ne's avatar
To1ne committed
20
# Git related
Geoff Garside's avatar
Geoff Garside committed
21
alias g='git'
22
23
24
25
26
27
28
29
alias gst='git status'
alias gl='git pull'
alias gp='git push'
alias gd='git diff | mate'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch'
alias gba='git branch -a'
30

To1ne's avatar
To1ne committed
31
# Show history
32
33
alias history='fc -l 1'

To1ne's avatar
To1ne committed
34
35
36
# List direcory contents
#alias ls='ls -F' # This messes up colors on my linux system
alias l='ls -la'
37
38
alias ll='ls -alr'
alias sl=ls # often screw this up
39
40
41

alias sgem='sudo gem'

To1ne's avatar
To1ne committed
42
# Find ruby file
43
44
alias rfind='find . -name *.rb | xargs grep -n'

To1ne's avatar
To1ne committed
45
# Git and svn mix
46
47
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'

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

To1ne's avatar
To1ne committed
54
55
56
57
58
59
60
61
## Ruby related
# Ruby scripts
alias sc='ruby script/console'
alias sd='ruby script/server --debugger'

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

62
63