Browse code

merge upstream

James Cox authored on 23/09/2009 at 15:14:04
Showing 25 changed files
... ...
@@ -1,3 +1,5 @@
1 1
 locals.zsh
2 2
 log/.zsh_history
3 3
 projects.zsh
4
+custom/*.zsh
5
+!custom/example.zsh
4 6
\ No newline at end of file
... ...
@@ -43,8 +43,13 @@ TODO: Update this..
43 43
 * much much more..
44 44
 
45 45
 h2. Useful
46
+
46 47
 the "refcard":http://www.bash2zsh.com/zsh_refcard/refcard.pdf is pretty tasty for tips.
47 48
 
49
+h3. Customization
50
+
51
+If you want to override any of the default behavior, just add a new file (ending in @.zsh@) into the @custom/@ directory.
52
+
48 53
 h3. Uninstalling
49 54
 
50 55
 If you want to uninstall it, just run @uninstall_oh_my_zsh@ from the command line and it'll remove itself and revert you to bash (or your previous zsh config).
51 56
deleted file mode 100644
... ...
@@ -1,47 +0,0 @@
1
-alias pu='pushd'
2
-alias po='popd'
3
-
4
-alias sc='ruby script/console'
5
-alias sd='ruby script/server --debugger'
6
-alias ss='thin --stats "/thin/stats" start'
7
-
8
-alias mr='mate CHANGELOG app config db lib public script spec test'
9
-alias .='pwd'
10
-alias ...='cd ../..'
11
-
12
-alias _='sudo'
13
-alias ss='sudo su -'
14
-
15
-#alias g='grep -in'
16
-
17
-alias g='git'
18
-alias gst='git status'
19
-alias gl='git pull'
20
-alias gp='git push'
21
-alias gd='git diff | mate'
22
-alias gc='git commit -v'
23
-alias gca='git commit -v -a'
24
-alias gb='git branch'
25
-alias gba='git branch -a'
26
-
27
-alias history='fc -l 1'
28
-
29
-alias ls='ls -F'
30
-alias ll='ls -alr'
31
-alias l='ls'
32
-alias ll='ls -l'
33
-alias sl=ls # often screw this up
34
-
35
-alias sgem='sudo gem'
36
-
37
-alias rfind='find . -name *.rb | xargs grep -n'
38
-
39
-alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
40
-
41
-alias et='mate . &'
42
-alias ett='mate app config lib db public spec test Rakefile Capfile Todo &'
43
-alias etp='mate app config lib db public spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'
44
-alias etts='mate app config lib db public script spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'
45
-
46
-
47
-
48 1
deleted file mode 100644
... ...
@@ -1,4 +0,0 @@
1
-autoload colors; colors;
2
-
3
-unset LSCOLORS
4
-export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30'
5 1
deleted file mode 100644
... ...
@@ -1,40 +0,0 @@
1
-## fixme - the load process here seems a bit bizarre
2
-
3
-setopt noautomenu
4
-setopt complete_in_word
5
-setopt always_to_end
6
-
7
-unsetopt flowcontrol
8
-
9
-WORDCHARS=''
10
-
11
-autoload -U compinit
12
-compinit
13
-
14
-zmodload -i zsh/complist
15
-
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:|=*'
18
-
19
-zstyle ':completion:*' list-colors ''
20
-zstyle ':completion:*' hosts $( sed 's/[, ].*$//' $HOME/.ssh/known_hosts )
21
-
22
-unsetopt MENU_COMPLETE
23
-#setopt AUTO_MENU
24
-
25
-# should this be in keybindings?
26
-bindkey -M menuselect '^o' accept-and-infer-next-history
27
-
28
-zstyle ':completion:*:*:*:*:*' menu yes select
29
-# zstyle ':completion:*:*:*:*:processes' force-list always
30
-
31
-zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
32
-zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
33
-zstyle ':completion:*:*:(ssh|scp):*:*' hosts `sed 's/^\([^ ,]*\).*$/\1/' ~/.ssh/known_hosts`
34
-
35
-
36
-#complete on history
37
-# zstyle ':completion:*:history-words' stop yes
38
-# zstyle ':completion:*:history-words' remove-all-dups yes
39
-# zstyle ':completion:*:history-words' list false
40
-# zstyle ':completion:*:history-words' menu yes
41 1
\ No newline at end of file
42 2
new file mode 100644
... ...
@@ -0,0 +1,5 @@
0
+# Add yourself some shortcuts to projects you often work on
1
+# Example:
2
+#
3
+# brainstormr=/Users/robbyrussell/Projects/development/planetargon/brainstormr
4
+#
0 5
\ No newline at end of file
1 6
deleted file mode 100644
... ...
@@ -1,60 +0,0 @@
1
-## fixme, i duplicated this in xterms - oops
2
-function title {
3
-  if [[ $TERM == "screen" ]]; then
4
-    # Use these two for GNU Screen:
5
-    print -nR $'\033k'$1$'\033'\\\
6
-
7
-    print -nR $'\033]0;'$2$'\a'
8
-  elif [[ $TERM == "xterm" || $TERM == "rxvt" ]]; then
9
-    # Use this one instead for XTerms:
10
-    print -nR $'\033]0;'$*$'\a'
11
-  fi
12
-}
13
-
14
-function precmd {
15
-  title zsh "$PWD"
16
-}
17
-
18
-function preexec {
19
-  emulate -L zsh
20
-  local -a cmd; cmd=(${(z)1})
21
-  title $cmd[1]:t "$cmd[2,-1]"
22
-}
23
-
24
-function remote_console() {
25
-  /usr/bin/env ssh $1 "( cd $2 && ruby script/console production )"
26
-}
27
-
28
-function zsh_stats() {
29
-  history | awk '{print $2}' | sort | uniq -c | sort -rn | head
30
-}
31
-
32
-function uninstall_oh_my_zsh() {
33
-  /bin/sh $ZSH/tools/uninstall.sh
34
-}
35
-
36
-function upgrade_oh_my_zsh() {
37
-  /bin/sh $ZSH/tools/upgrade.sh
38
-}
39
-
40
-function tab() {
41
-  osascript 2>/dev/null <<EOF
42
-    tell application "System Events"
43
-      tell process "Terminal" to keystroke "t" using command down
44
-    end
45
-    tell application "Terminal"
46
-      activate
47
-      do script with command "cd $PWD; $*" in window 1
48
-    end tell
49
-EOF
50
-}
51
-
52
-function take() {
53
-  mkdir -p $1
54
-  cd $1
55
-}
56
-
57
-function tm() {
58
-  cd $1
59
-  mate $1
60
-}
61 1
deleted file mode 100644
... ...
@@ -1,25 +0,0 @@
1
-# Varables for themeing the git info prompt:
2
-# ZSH_THEME_GIT_PROMPT_PREFIX - Prefix at the very beginning of the prompt, before the branch name
3
-# ZSH_THEME_GIT_PROMPT_SUFFIX - At the very end of the prompt
4
-# ZSH_THEME_GIT_PROMPT_DIRTY  - Text to display if the branch is dirty
5
-# ZSH_THEME_GIT_PROMPT_CLEAN  - Text to display if the branch is clean
6
-
7
-ZSH_THEME_GIT_PROMPT_PREFIX="git:("
8
-ZSH_THEME_GIT_PROMPT_SUFFIX=")"
9
-ZSH_THEME_GIT_PROMPT_DIRTY="*"
10
-ZSH_THEME_GIT_PROMPT_CLEAN=""
11
-
12
-# get the name of the branch we are on
13
-function git_prompt_info() {
14
-  ref=$(git symbolic-ref HEAD 2> /dev/null) || return
15
-  echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX"
16
-}
17
-
18
-parse_git_dirty () {
19
-  if [[ $(git status  | tail -n1) != "nothing to commit (working directory clean)" ]]; then
20
-    echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
21
-  else
22
-    echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
23
-  fi
24
-}
25
-
26 1
deleted file mode 100644
... ...
@@ -1,6 +0,0 @@
1
-#
2
-# Color grep results
3
-# Examples: http://rubyurl.com/ZXv
4
-#
5
-export GREP_OPTIONS='--color=auto'
6
-export GREP_COLOR='1;32'
7 1
\ No newline at end of file
8 2
deleted file mode 100644
... ...
@@ -1,12 +0,0 @@
1
-## Command history configuration
2
-#
3
-HISTFILE=$HOME/.zsh_history
4
-HISTSIZE=5000
5
-SAVEHIST=5000
6
-setopt hist_ignore_dups # ignore duplication command history list
7
-setopt share_history # share command history data
8
-
9
-setopt hist_verify
10
-setopt inc_append_history
11
-setopt extended_history
12
-setopt hist_expire_dups_first
13 1
deleted file mode 100644
... ...
@@ -1,41 +0,0 @@
1
-# TODO: Explain what some of this does..
2
-autoload -U compinit
3
-compinit
4
-
5
-bindkey -e
6
-bindkey '\ew' kill-region
7
-bindkey -s '\el' "ls\n"
8
-bindkey -s '\e.' "..\n"
9
-bindkey '^r' history-incremental-search-backward
10
-bindkey "^[[5~" up-line-or-history
11
-bindkey "^[[6~" down-line-or-history
12
-
13
-# make search up and down work, so partially type and hit up/down to find relevant stuff
14
-bindkey '^[[A' up-line-or-search
15
-bindkey '^[[B' down-line-or-search
16
-
17
-bindkey "^[[H" beginning-of-line
18
-bindkey "^[[1~" beginning-of-line
19
-bindkey "^[[F"  end-of-line
20
-bindkey "^[[4~" end-of-line
21
-bindkey ' ' magic-space    # also do history expansion on space
22
-
23
-
24
-# consider emacs keybindings:
25
-
26
-#bindkey -e  ## emacs key bindings
27
-#
28
-#bindkey '^[[A' up-line-or-search
29
-#bindkey '^[[B' down-line-or-search
30
-#bindkey '^[^[[C' emacs-forward-word
31
-#bindkey '^[^[[D' emacs-backward-word
32
-#
33
-#bindkey -s '^X^Z' '%-^M'
34
-#bindkey '^[e' expand-cmd-path
35
-#bindkey '^[^I' reverse-menu-complete
36
-#bindkey '^X^N' accept-and-infer-next-history
37
-#bindkey '^W' kill-region
38
-#bindkey '^I' complete-word
39
-## Fix weird sequence that rxvt produces
40
-#bindkey -s '^[[Z' '\t'
41
-#
42 1
\ No newline at end of file
43 2
new file mode 100644
... ...
@@ -0,0 +1,47 @@
0
+alias pu='pushd'
1
+alias po='popd'
2
+
3
+alias sc='ruby script/console'
4
+alias sd='ruby script/server --debugger'
5
+alias ss='thin --stats "/thin/stats" start'
6
+
7
+alias mr='mate CHANGELOG app config db lib public script spec test'
8
+alias .='pwd'
9
+alias ...='cd ../..'
10
+
11
+alias _='sudo'
12
+alias ss='sudo su -'
13
+
14
+#alias g='grep -in'
15
+
16
+alias g='git'
17
+alias gst='git status'
18
+alias gl='git pull'
19
+alias gp='git push'
20
+alias gd='git diff | mate'
21
+alias gc='git commit -v'
22
+alias gca='git commit -v -a'
23
+alias gb='git branch'
24
+alias gba='git branch -a'
25
+
26
+alias history='fc -l 1'
27
+
28
+alias ls='ls -F'
29
+alias ll='ls -alr'
30
+alias l='ls'
31
+alias ll='ls -l'
32
+alias sl=ls # often screw this up
33
+
34
+alias sgem='sudo gem'
35
+
36
+alias rfind='find . -name *.rb | xargs grep -n'
37
+
38
+alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
39
+
40
+alias et='mate . &'
41
+alias ett='mate app config lib db public spec test Rakefile Capfile Todo &'
42
+alias etp='mate app config lib db public spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'
43
+alias etts='mate app config lib db public script spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'
44
+
45
+
46
+
0 47
new file mode 100644
... ...
@@ -0,0 +1,4 @@
0
+autoload colors; colors;
1
+
2
+unset LSCOLORS
3
+export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30'
0 4
new file mode 100644
... ...
@@ -0,0 +1,40 @@
0
+## fixme - the load process here seems a bit bizarre
1
+
2
+setopt noautomenu
3
+setopt complete_in_word
4
+setopt always_to_end
5
+
6
+unsetopt flowcontrol
7
+
8
+WORDCHARS=''
9
+
10
+autoload -U compinit
11
+compinit
12
+
13
+zmodload -i zsh/complist
14
+
15
+## case-insensitive (all),partial-word and then substring completion
16
+zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
17
+
18
+zstyle ':completion:*' list-colors ''
19
+zstyle ':completion:*' hosts $( sed 's/[, ].*$//' $HOME/.ssh/known_hosts )
20
+
21
+unsetopt MENU_COMPLETE
22
+#setopt AUTO_MENU
23
+
24
+# should this be in keybindings?
25
+bindkey -M menuselect '^o' accept-and-infer-next-history
26
+
27
+zstyle ':completion:*:*:*:*:*' menu yes select
28
+# zstyle ':completion:*:*:*:*:processes' force-list always
29
+
30
+zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
31
+zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
32
+zstyle ':completion:*:*:(ssh|scp):*:*' hosts `sed 's/^\([^ ,]*\).*$/\1/' ~/.ssh/known_hosts`
33
+
34
+
35
+#complete on history
36
+# zstyle ':completion:*:history-words' stop yes
37
+# zstyle ':completion:*:history-words' remove-all-dups yes
38
+# zstyle ':completion:*:history-words' list false
39
+# zstyle ':completion:*:history-words' menu yes
0 40
\ No newline at end of file
1 41
new file mode 100644
... ...
@@ -0,0 +1,60 @@
0
+## fixme, i duplicated this in xterms - oops
1
+function title {
2
+  if [[ $TERM == "screen" ]]; then
3
+    # Use these two for GNU Screen:
4
+    print -nR $'\033k'$1$'\033'\\\
5
+
6
+    print -nR $'\033]0;'$2$'\a'
7
+  elif [[ $TERM == "xterm" || $TERM == "rxvt" ]]; then
8
+    # Use this one instead for XTerms:
9
+    print -nR $'\033]0;'$*$'\a'
10
+  fi
11
+}
12
+
13
+function precmd {
14
+  title zsh "$PWD"
15
+}
16
+
17
+function preexec {
18
+  emulate -L zsh
19
+  local -a cmd; cmd=(${(z)1})
20
+  title $cmd[1]:t "$cmd[2,-1]"
21
+}
22
+
23
+function remote_console() {
24
+  /usr/bin/env ssh $1 "( cd $2 && ruby script/console production )"
25
+}
26
+
27
+function zsh_stats() {
28
+  history | awk '{print $2}' | sort | uniq -c | sort -rn | head
29
+}
30
+
31
+function uninstall_oh_my_zsh() {
32
+  /bin/sh $ZSH/tools/uninstall.sh
33
+}
34
+
35
+function upgrade_oh_my_zsh() {
36
+  /bin/sh $ZSH/tools/upgrade.sh
37
+}
38
+
39
+function tab() {
40
+  osascript 2>/dev/null <<EOF
41
+    tell application "System Events"
42
+      tell process "Terminal" to keystroke "t" using command down
43
+    end
44
+    tell application "Terminal"
45
+      activate
46
+      do script with command "cd $PWD; $*" in window 1
47
+    end tell
48
+EOF
49
+}
50
+
51
+function take() {
52
+  mkdir -p $1
53
+  cd $1
54
+}
55
+
56
+function tm() {
57
+  cd $1
58
+  mate $1
59
+}
0 60
new file mode 100644
... ...
@@ -0,0 +1,25 @@
0
+# Varables for themeing the git info prompt:
1
+# ZSH_THEME_GIT_PROMPT_PREFIX - Prefix at the very beginning of the prompt, before the branch name
2
+# ZSH_THEME_GIT_PROMPT_SUFFIX - At the very end of the prompt
3
+# ZSH_THEME_GIT_PROMPT_DIRTY  - Text to display if the branch is dirty
4
+# ZSH_THEME_GIT_PROMPT_CLEAN  - Text to display if the branch is clean
5
+
6
+ZSH_THEME_GIT_PROMPT_PREFIX="git:("
7
+ZSH_THEME_GIT_PROMPT_SUFFIX=")"
8
+ZSH_THEME_GIT_PROMPT_DIRTY="*"
9
+ZSH_THEME_GIT_PROMPT_CLEAN=""
10
+
11
+# get the name of the branch we are on
12
+function git_prompt_info() {
13
+  ref=$(git symbolic-ref HEAD 2> /dev/null) || return
14
+  echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX"
15
+}
16
+
17
+parse_git_dirty () {
18
+  if [[ $(git status  | tail -n1) != "nothing to commit (working directory clean)" ]]; then
19
+    echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
20
+  else
21
+    echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
22
+  fi
23
+}
24
+
0 25
new file mode 100644
... ...
@@ -0,0 +1,6 @@
0
+#
1
+# Color grep results
2
+# Examples: http://rubyurl.com/ZXv
3
+#
4
+export GREP_OPTIONS='--color=auto'
5
+export GREP_COLOR='1;32'
0 6
\ No newline at end of file
1 7
new file mode 100644
... ...
@@ -0,0 +1,12 @@
0
+## Command history configuration
1
+HISTFILE=$HOME/.zsh_history
2
+HISTSIZE=10000
3
+SAVEHIST=10000
4
+
5
+setopt hist_ignore_dups # ignore duplication command history list
6
+setopt share_history # share command history data
7
+
8
+setopt hist_verify
9
+setopt inc_append_history
10
+setopt extended_history
11
+setopt hist_expire_dups_first
0 12
new file mode 100644
... ...
@@ -0,0 +1,41 @@
0
+# TODO: Explain what some of this does..
1
+autoload -U compinit
2
+compinit
3
+
4
+bindkey -e
5
+bindkey '\ew' kill-region
6
+bindkey -s '\el' "ls\n"
7
+bindkey -s '\e.' "..\n"
8
+bindkey '^r' history-incremental-search-backward
9
+bindkey "^[[5~" up-line-or-history
10
+bindkey "^[[6~" down-line-or-history
11
+
12
+# make search up and down work, so partially type and hit up/down to find relevant stuff
13
+bindkey '^[[A' up-line-or-search
14
+bindkey '^[[B' down-line-or-search
15
+
16
+bindkey "^[[H" beginning-of-line
17
+bindkey "^[[1~" beginning-of-line
18
+bindkey "^[[F"  end-of-line
19
+bindkey "^[[4~" end-of-line
20
+bindkey ' ' magic-space    # also do history expansion on space
21
+
22
+
23
+# consider emacs keybindings:
24
+
25
+#bindkey -e  ## emacs key bindings
26
+#
27
+#bindkey '^[[A' up-line-or-search
28
+#bindkey '^[[B' down-line-or-search
29
+#bindkey '^[^[[C' emacs-forward-word
30
+#bindkey '^[^[[D' emacs-backward-word
31
+#
32
+#bindkey -s '^X^Z' '%-^M'
33
+#bindkey '^[e' expand-cmd-path
34
+#bindkey '^[^I' reverse-menu-complete
35
+#bindkey '^X^N' accept-and-infer-next-history
36
+#bindkey '^W' kill-region
37
+#bindkey '^I' complete-word
38
+## Fix weird sequence that rxvt produces
39
+#bindkey -s '^[[Z' '\t'
40
+#
0 41
\ No newline at end of file
1 42
new file mode 100644
... ...
@@ -0,0 +1,25 @@
0
+export PAGER=less
1
+export LC_CTYPE=en_US.UTF-8
2
+
3
+# speed stuff.
4
+
5
+#setopt no_beep
6
+setopt auto_cd
7
+setopt multios
8
+setopt cdablevarS
9
+
10
+if [[ x$WINDOW != x ]]
11
+then
12
+    SCREEN_NO="%B$WINDOW%b "
13
+else
14
+    SCREEN_NO=""
15
+fi
16
+
17
+PS1="%n@%m:%~%# "
18
+
19
+# Setup the prompt with pretty colors
20
+setopt prompt_subst
21
+
22
+export LSCOLORS="Gxfxcxdxbxegedabagacad"
23
+
24
+source "$ZSH/themes/$ZSH_THEME.zsh-theme"
0 25
new file mode 100644
... ...
@@ -0,0 +1,42 @@
0
+_rake_does_task_list_need_generating () {
1
+  if [ ! -f .rake_tasks~ ]; then return 0;
2
+  else
3
+    accurate=$(stat -f%m .rake_tasks~)
4
+    changed=$(stat -f%m Rakefile)
5
+    return $(expr $accurate '>=' $changed)
6
+  fi
7
+}
8
+
9
+_rake () {
10
+  if [ -f Rakefile ]; then
11
+    if _rake_does_task_list_need_generating; then
12
+      echo "\nGenerating .rake_tasks~..." > /dev/stderr
13
+      rake --silent --tasks | cut -d " " -f 2 > .rake_tasks~
14
+    fi
15
+    compadd `cat .rake_tasks~`
16
+  fi
17
+}
18
+
19
+compctl -K _rake rake
20
+
21
+function _cap_does_task_list_need_generating () {
22
+  if [ ! -f .cap_tasks~ ]; then return 0;
23
+  else
24
+    accurate=$(stat -f%m .cap_tasks~)
25
+    changed=$(stat -f%m config/deploy.rb)
26
+    return $(expr $accurate '>=' $changed)
27
+  fi
28
+}
29
+
30
+function _cap () {
31
+  if [ -f config/deploy.rb ]; then
32
+    if _cap_does_task_list_need_generating; then
33
+      echo "\nGenerating .cap_tasks~..." > /dev/stderr
34
+      cap show_tasks -q | cut -d " " -f 1 | sed -e '/^ *$/D' -e '1,2D'
35
+> .cap_tasks~
36
+    fi
37
+    compadd `cat .cap_tasks~`
38
+  fi
39
+}
40
+
41
+compctl -K _cap cap
... ...
@@ -2,4 +2,7 @@
2 2
 
3 3
 # Load all of the config files in ~/oh-my-zsh that end in .zsh
4 4
 # TIP: Add files you don't want in git to .gitignore
5
-for config_file ($ZSH/*.zsh) source $config_file
5
+for config_file ($ZSH/lib/*.zsh) source $config_file
6
+
7
+# Load all of your custom configurations from custom/
8
+for config_file ($ZSH/custom/*.zsh) source $config_file
6 9
deleted file mode 100644
... ...
@@ -1,5 +0,0 @@
1
-# Add yourself some shortcuts to projects you often work on
2
-# Example:
3
-#
4
-# brainstormr=/Users/robbyrussell/Projects/development/planetargon/brainstormr
5
-#
6 1
\ No newline at end of file
7 2
deleted file mode 100644
... ...
@@ -1,25 +0,0 @@
1
-export PAGER=less
2
-export LC_CTYPE=en_US.UTF-8
3
-
4
-# speed stuff.
5
-
6
-#setopt no_beep
7
-setopt auto_cd
8
-setopt multios
9
-setopt cdablevarS
10
-
11
-if [[ x$WINDOW != x ]]
12
-then
13
-    SCREEN_NO="%B$WINDOW%b "
14
-else
15
-    SCREEN_NO=""
16
-fi
17
-
18
-PS1="%n@%m:%~%# "
19
-
20
-# Setup the prompt with pretty colors
21
-setopt prompt_subst
22
-
23
-export LSCOLORS="Gxfxcxdxbxegedabagacad"
24
-
25
-source "$ZSH/themes/$ZSH_THEME.zsh-theme"
26 1
deleted file mode 100644
... ...
@@ -1,42 +0,0 @@
1
-_rake_does_task_list_need_generating () {
2
-  if [ ! -f .rake_tasks~ ]; then return 0;
3
-  else
4
-    accurate=$(stat -f%m .rake_tasks~)
5
-    changed=$(stat -f%m Rakefile)
6
-    return $(expr $accurate '>=' $changed)
7
-  fi
8
-}
9
-
10
-_rake () {
11
-  if [ -f Rakefile ]; then
12
-    if _rake_does_task_list_need_generating; then
13
-      echo "\nGenerating .rake_tasks~..." > /dev/stderr
14
-      rake --silent --tasks | cut -d " " -f 2 > .rake_tasks~
15
-    fi
16
-    compadd `cat .rake_tasks~`
17
-  fi
18
-}
19
-
20
-compdef _rake rake
21
-
22
-function _cap_does_task_list_need_generating () {
23
-  if [ ! -f .cap_tasks~ ]; then return 0;
24
-  else
25
-    accurate=$(stat -f%m .cap_tasks~)
26
-    changed=$(stat -f%m config/deploy.rb)
27
-    return $(expr $accurate '>=' $changed)
28
-  fi
29
-}
30
-
31
-function _cap () {
32
-  if [ -f config/deploy.rb ]; then
33
-    if _cap_does_task_list_need_generating; then
34
-      echo "\nGenerating .cap_tasks~..." > /dev/stderr
35
-      cap show_tasks -q | cut -d " " -f 1 | sed -e '/^ *$/D' -e '1,2D'
36
-> .cap_tasks~
37
-    fi
38
-    compadd `cat .cap_tasks~`
39
-  fi
40
-}
41
-
42
-compdef _cap cap