Browse Source

zsh: fix ctrl+w over pipe, hist_ignore_all_dups

raylu 7 năm trước cách đây
mục cha
commit
03ba937e27
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      zshrc

+ 2 - 2
zshrc

@@ -25,7 +25,7 @@ setopt complete_in_word
 setopt no_auto_menu
 setopt no_always_last_prompt
 setopt share_history
-setopt hist_ignore_dups
+setopt hist_ignore_all_dups
 setopt hist_ignore_space
 setopt extended_history
 setopt promptsubst
@@ -41,7 +41,7 @@ bindkey '^[[1;5C' forward-word
 bindkey '^[[1;5D' backward-word
 bindkey '\C-v' edit-command-line
 bindkey '\Ea' push-line
-local WORDCHARS=${WORDCHARS//\//}
+local WORDCHARS=${WORDCHARS//\//}\| # remove forward slash, add pipe
 
 autoload colors
 colors