Browse Source

autopushd, push-line

raylu 13 years ago
parent
commit
15970fc341
1 changed files with 4 additions and 1 deletions
  1. 4 1
      zshrc

+ 4 - 1
zshrc

@@ -29,14 +29,17 @@ setopt hist_ignore_dups
 setopt hist_ignore_space
 setopt extended_history
 setopt promptsubst
+setopt autopushd
+setopt pushdignoredups
 
 autoload -U edit-command-line
 zle -N edit-command-line
 bindkey -e
 bindkey '^[[3~' delete-char
-bindkey '\C-v' edit-command-line
 bindkey '^[[1;5C' forward-word
 bindkey '^[[1;5D' backward-word
+bindkey '\C-v' edit-command-line
+bindkey '\Ea' push-line
 local WORDCHARS=${WORDCHARS//\//}
 
 autoload colors