Browse code

Added some comment

To1ne authored on 12/10/2009 at 19:17:36
Showing 2 changed files
... ...
@@ -1,19 +1,23 @@
1
+#!/bin/zsh
2
+
3
+# Push and pop directories on directory stack
1 4
 alias pu='pushd'
2 5
 alias po='popd'
3 6
 
4
-alias sc='ruby script/console'
5
-alias sd='ruby script/server --debugger'
7
+# Ruby related
6 8
 alias ss='thin --stats "/thin/stats" start'
7 9
 
8
-alias mr='mate CHANGELOG app config db lib public script spec test'
10
+# Basic directory operations
9 11
 alias .='pwd'
10 12
 alias ...='cd ../..'
11 13
 
14
+# Super user
12 15
 alias _='sudo'
13 16
 alias ss='sudo su -'
14 17
 
15 18
 #alias g='grep -in'
16 19
 
20
+# Git related
17 21
 alias g='git'
18 22
 alias gst='git status'
19 23
 alias gl='git pull'
... ...
@@ -24,24 +28,36 @@ alias gca='git commit -v -a'
24 24
 alias gb='git branch'
25 25
 alias gba='git branch -a'
26 26
 
27
+# Show history
27 28
 alias history='fc -l 1'
28 29
 
29
-alias ls='ls -F'
30
+# List direcory contents
31
+#alias ls='ls -F' # This messes up colors on my linux system
32
+alias l='ls -la'
30 33
 alias ll='ls -alr'
31
-alias l='ls'
32
-alias ll='ls -l'
33 34
 alias sl=ls # often screw this up
34 35
 
35 36
 alias sgem='sudo gem'
36 37
 
38
+# Find ruby file
37 39
 alias rfind='find . -name *.rb | xargs grep -n'
38 40
 
41
+# Git and svn mix
39 42
 alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
40 43
 
44
+# TextMate
41 45
 alias et='mate . &'
42 46
 alias ett='mate app config lib db public spec test Rakefile Capfile Todo &'
43 47
 alias etp='mate app config lib db public spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'
44 48
 alias etts='mate app config lib db public script spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'
45 49
 
50
+## Ruby related
51
+# Ruby scripts
52
+alias sc='ruby script/console'
53
+alias sd='ruby script/server --debugger'
54
+
55
+# Editor Ruby file in TextMate
56
+alias mr='mate CHANGELOG app config db lib public script spec test'
57
+
46 58
 
47 59
 
... ...
@@ -14,7 +14,7 @@ compinit
14 14
 zmodload -i zsh/complist
15 15
 
16 16
 ## case-insensitive (all),partial-word and then substring completion
17
-zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
17
+#zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
18 18
 
19 19
 zstyle ':completion:*' list-colors ''
20 20
 zstyle ':completion:*' hosts $( sed 's/[, ].*$//' $HOME/.ssh/known_hosts )
... ...
@@ -32,8 +32,7 @@ zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-
32 32
 zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
33 33
 zstyle ':completion:*:*:(ssh|scp):*:*' hosts `sed 's/^\([^ ,]*\).*$/\1/' ~/.ssh/known_hosts`
34 34
 
35
-
36
-#complete on history
35
+# Complete on history
37 36
 # zstyle ':completion:*:history-words' stop yes
38 37
 # zstyle ':completion:*:history-words' remove-all-dups yes
39 38
 # zstyle ':completion:*:history-words' list false