Tom McKenzie 7 лет назад
Родитель
Сommit
a3f4a72611
3 измененных файлов с 27 добавлено и 15 удалено
  1. 27 0
      .zshrc.d/history.zsh
  2. 0 2
      .zshrc.d/zgen.zsh
  3. 0 13
      .zshrc.d/zopt.zsh

+ 27 - 0
.zshrc.d/history.zsh

@@ -0,0 +1,27 @@
+HISTFILE=~/.zsh_history
+HISTSIZE=30000
+SAVEHIST=25000
+
+# ignore sequential duplicates
+setopt hist_ignore_dups
+
+setopt hist_reduce_blanks
+
+# shared history across shells
+setopt APPEND_HISTORY
+setopt INC_APPEND_HISTORY
+
+# list choices on ambiguous completion
+# use BASH_AUTO_LIST to require a second keypress
+setopt AUTO_LIST
+
+# don't list on unambiguous prefix
+setopt LIST_AMBIGUOUS
+
+# share history between terminals
+setopt share_history
+
+# bind to zsh-history-substring-search
+bindkey '^[[A' history-substring-search-up
+bindkey '^[[B' history-substring-search-down
+

+ 0 - 2
.zshrc.d/zgen.zsh

@@ -58,8 +58,6 @@ prompt_sfz_git_dirty() {
 # customise zsh-history-substring-search
 HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="underline"
 HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND="none"
-bindkey '^[[A' history-substring-search-up
-bindkey '^[[B' history-substring-search-down
 
 # customise zsh-syntax-highlighting
 ZSH_HIGHLIGHT_STYLES[unknown-token]='none'

+ 0 - 13
.zshrc.d/zopt.zsh

@@ -1,13 +0,0 @@
-
-# ignore sequential duplicates
-setopt hist_ignore_dups
-
-# shared history across shells
-setopt INC_APPEND_HISTORY
-
-# list choices on ambiguous completion
-# use BASH_AUTO_LIST to require a second keypress
-setopt AUTO_LIST
-
-# don't list on unambiguous prefix
-setopt LIST_AMBIGUOUS