Переглянути джерело

fix history setting conflict with /etc/zshrc

Josh Bicking 3 днів тому
батько
коміт
60d6da3a42
2 змінених файлів з 18 додано та 19 видалено
  1. 0 19
      zsh/.zshenv
  2. 18 0
      zsh/.zshrc.pre

+ 0 - 19
zsh/.zshenv

@@ -49,22 +49,3 @@ fi
 
 bindkey '^ ' autosuggest-accept
 
-
-### History ###
-
-export HISTFILE=~/.histfile
-HISTSIZE=999999999
-SAVEHIST=$HISTSIZE
-
-setopt EXTENDED_HISTORY          # Write the history file in the ":start:elapsed;command" format.
-setopt INC_APPEND_HISTORY        # Write to the history file immediately, not when the shell exits.
-setopt SHARE_HISTORY             # Share history between all sessions.
-setopt HIST_EXPIRE_DUPS_FIRST    # Expire duplicate entries first when trimming history.
-setopt HIST_IGNORE_DUPS          # Don\'t record an entry that was just recorded again.
-setopt HIST_IGNORE_ALL_DUPS      # Delete old recorded entry if new entry is a duplicate.
-setopt HIST_FIND_NO_DUPS         # Do not display a line previously found.
-setopt HIST_IGNORE_SPACE         # Don\'t record an entry starting with a space.
-setopt HIST_SAVE_NO_DUPS         # Don\'t write duplicate entries in the history file.
-setopt HIST_REDUCE_BLANKS        # Remove superfluous blanks before recording entry.
-
-

+ 18 - 0
zsh/.zshrc.pre

@@ -0,0 +1,18 @@
+# .zshrc.pre
+#
+# Sourced by grml before its own defaults, and after /etc/zshrc.
+
+### History ###
+
+export HISTFILE=~/.histfile
+HISTSIZE=999999999
+SAVEHIST=$HISTSIZE
+
+setopt EXTENDED_HISTORY          # Write the history file in the ":start:elapsed;command" format.
+setopt SHARE_HISTORY             # Share history between all sessions.
+setopt HIST_IGNORE_DUPS          # Don\'t record an entry that was just recorded again.
+setopt HIST_IGNORE_ALL_DUPS      # Delete old recorded entry if new entry is a duplicate.
+setopt HIST_FIND_NO_DUPS         # Do not display a line previously found.
+setopt HIST_IGNORE_SPACE         # Don\'t record an entry starting with a space.
+setopt HIST_SAVE_NO_DUPS         # Don\'t write duplicate entries in the history file.
+setopt HIST_REDUCE_BLANKS        # Remove superfluous blanks before recording entry.