Browse code

Fixing merge

Toon Claes authored on 16/10/2009 at 20:14:43
Showing 7 changed files
... ...
@@ -4,12 +4,17 @@
4 4
 alias pu='pushd'
5 5
 alias po='popd'
6 6
 
7
-# Ruby related
8 7
 alias ss='thin --stats "/thin/stats" start'
8
+alias sg='ruby script/generate'
9
+alias sd='ruby script/destroy'
10
+alias sp='ruby script/plugin'
11
+alias ssp='ruby script/spec'
12
+alias rdbm='rake db:migrate'
9 13
 
10 14
 # Basic directory operations
11 15
 alias .='pwd'
12 16
 alias ...='cd ../..'
17
+alias -- -='cd -'
13 18
 
14 19
 # Super user
15 20
 alias _='sudo'
... ...
@@ -21,12 +26,17 @@ alias ss='sudo su -'
21 21
 alias g='git'
22 22
 alias gst='git status'
23 23
 alias gl='git pull'
24
+alias gup='git fetch && git rebase'
24 25
 alias gp='git push'
25 26
 alias gd='git diff | mate'
27
+alias gdv='git diff -w "$@" | vim -R -'
26 28
 alias gc='git commit -v'
27 29
 alias gca='git commit -v -a'
28 30
 alias gb='git branch'
29 31
 alias gba='git branch -a'
32
+alias gdb='git branch -d'
33
+alias gcount='git shortlog -sn'
34
+alias gcp='git cherry-pick'
30 35
 
31 36
 # Show history
32 37
 alias history='fc -l 1'
... ...
@@ -41,6 +51,7 @@ alias sgem='sudo gem'
41 41
 
42 42
 # Find ruby file
43 43
 alias rfind='find . -name *.rb | xargs grep -n'
44
+alias afind='ack-grep -il'
44 45
 
45 46
 # Git and svn mix
46 47
 alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
... ...
@@ -59,5 +70,3 @@ alias sd='ruby script/server --debugger'
59 59
 # Editor Ruby file in TextMate
60 60
 alias mr='mate CHANGELOG app config db lib public script spec test'
61 61
 
62
-
63
-
... ...
@@ -7,11 +7,3 @@ bindkey "^[m" copy-prev-shell-word
7 7
 
8 8
 ## jobs
9 9
 setopt long_list_jobs
10
-
11
-# Check for updates on initial load...
12
-if [ "$DISABLE_AUTO_UPDATE" = "true" ]
13
-then
14
-  return
15
-else
16
-  /bin/sh $ZSH/tools/check_for_upgrade.sh
17
-fi
... ...
@@ -7,5 +7,10 @@ for config_file ($ZSH/lib/*.zsh) source $config_file
7 7
 # Load all of your custom configurations from custom/
8 8
 for config_file ($ZSH/custom/*.zsh) source $config_file
9 9
 
10
-
11
-export PATH=~/bin:/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/sbin:/opt/local/lib/postgresql83/bin
10
+# Check for updates on initial load...
11
+if [ "$DISABLE_AUTO_UPDATE" = "true" ]
12
+then
13
+  return
14
+else
15
+  /bin/sh $ZSH/tools/check_for_upgrade.sh
16
+fi
12 17
new file mode 100644
... ...
@@ -0,0 +1,4 @@
0
+# Based on evan's prompt
1
+# Shows the exit status of the last command if non-zero
2
+# Uses "#" instead of "»" when running with elevated privileges
3
+PROMPT="%m %{${fg_bold[red]}%}:: %{${fg[green]}%}%3~%(0?. . ${fg[red]}%? )%{${fg[blue]}%}»%{${reset_color}%} "
0 4
new file mode 100644
... ...
@@ -0,0 +1,7 @@
0
+PROMPT='$(git_prompt_info)%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )%{$fg[yellow]%}%#%{$reset_color%} '
1
+RPROMPT='%{$fg[green]%}%~%{$reset_color%}'
2
+
3
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}("
4
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
5
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[red]%}⚡%{$reset_color%}"
6
+ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
0 7
new file mode 100644
... ...
@@ -0,0 +1,6 @@
0
+# user, host, full path, and time/date
1
+# on two lines for easier vgrepping
2
+# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
3
+PROMPT=$'%{\e[0;34m%}%B┌─[%b%{\e[0m%}%{\e[1;32m%}%n%{\e[1;30m%}@%{\e[0m%}%{\e[0;36m%}%m%{\e[0;34m%}%B]%b%{\e[0m%} - %b%{\e[0;34m%}%B[%b%{\e[1;37m%}%~%{\e[0;34m%}%B]%b%{\e[0m%} - %{\e[0;34m%}%B[%b%{\e[0;33m%}'%D{"%a %b %d, %I:%M"}%b$'%{\e[0;34m%}%B]%b%{\e[0m%}
4
+%{\e[0;34m%}%B└─%B[%{\e[1;35m%}$%{\e[0;34m%}%B]>%{\e[0m%}%b '
5
+PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
... ...
@@ -4,7 +4,7 @@ current_epoch=$(($(date +%s) / 60 / 60 / 24))
4 4
 
5 5
 if [ -f ~/.zsh-update ]
6 6
 then
7
-  source ~/.zsh-update
7
+  . ~/.zsh-update
8 8
   epoch_diff=$(($current_epoch - $LAST_EPOCH))
9 9
   if [ $epoch_diff -gt 6 ]
10 10
   then