Browse code

further refactorings

James Cox authored on 22/09/2009 at 23:49:00
Showing 5 changed files
... ...
@@ -1,3 +1,3 @@
1
+locals.zsh
1 2
 log/.zsh_history
2
-
3 3
 projects.zsh
... ...
@@ -19,7 +19,7 @@ zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:
19 19
 zstyle ':completion:*' list-colors ''
20 20
 zstyle ':completion:*' hosts $( sed 's/[, ].*$//' $HOME/.ssh/known_hosts )
21 21
 
22
-#unsetopt MENU_COMPLETE
22
+unsetopt MENU_COMPLETE
23 23
 #setopt AUTO_MENU
24 24
 
25 25
 # should this be in keybindings?
... ...
@@ -31,3 +31,10 @@ zstyle ':completion:*:*:*:*:*' menu yes select
31 31
 zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
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
+
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
34 41
\ No newline at end of file
... ...
@@ -1,5 +1,5 @@
1 1
 # Changing/making/removing directory
2
-
2
+setopt auto_name_dirs
3 3
 
4 4
 alias ..='cd ..'
5 5
 alias cd..='cd ..'
... ...
@@ -1,6 +1,8 @@
1 1
 # TODO: Explain what some of this does..
2 2
 autoload -U compinit
3 3
 compinit
4
+
5
+bindkey -e
4 6
 bindkey '\ew' kill-region
5 7
 bindkey -s '\el' "ls\n"
6 8
 bindkey -s '\e.' "..\n"
... ...
@@ -1,19 +1,12 @@
1 1
 export PAGER=less
2 2
 export LC_CTYPE=en_US.UTF-8
3 3
 
4
-bindkey -e
4
+# speed stuff.
5 5
 
6
-# Directory stuff.
7
-setopt AUTO_NAME_DIRS
8
-
9
-# Speed stuff.
10
-
11
-#setopt NO_BEEP
12
-setopt AUTO_CD
13
-setopt MULTIOS
14
-setopt CDABLEVARS
15
-
16
-bindkey -e
6
+#setopt no_beep
7
+setopt auto_cd
8
+setopt multios
9
+setopt cdablevarS
17 10
 
18 11
 if [[ x$WINDOW != x ]]
19 12
 then