소스 검색

zsh: fix ctrl+w over pipe, hist_ignore_all_dups

raylu 7 년 전
부모
커밋
03ba937e27
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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