Browse Source

Move zsh_history to cache directory

master
Riyyi 6 years ago
parent
commit
fa570b808a
  1. 7
      .config/zsh/.zshrc

7
.config/zsh/.zshrc

@ -5,6 +5,7 @@ export PATH="$PATH:$HOME/.scripts"
export XDG_CACHE_HOME="$HOME/.cache" export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config" export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share" export XDG_DATA_HOME="$HOME/.local/share"
mkdir -p "$XDG_CACHE_HOME/zsh"
# Files # Files
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc" export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
@ -65,9 +66,9 @@ zstyle ':vcs_info:*' unstagedstr "%F{red}M%f"
zstyle ':vcs_info:*' formats '%F{cyan}(%F{red}%b%F{cyan})%f %c%u' zstyle ':vcs_info:*' formats '%F{cyan}(%F{red}%b%F{cyan})%f %c%u'
# Autocompletion # Autocompletion
compinit -d $XDG_CACHE_HOME/zcompdump compinit -d "$XDG_CACHE_HOME/zsh/zcompdump"
zstyle ':completion::complete:*' use-cache 1 zstyle ':completion::complete:*' use-cache 1
zstyle ':completion::complete:*' cache-path $XDG_CACHE_HOME/zcache zstyle ':completion::complete:*' cache-path "$XDG_CACHE_HOME/zsh/zcompcache"
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*' zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*' list-colors '' zstyle ':completion:*' list-colors ''
zstyle ':completion:*' menu select zstyle ':completion:*' menu select
@ -93,7 +94,7 @@ setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_DUPS setopt HIST_IGNORE_DUPS
setopt HIST_REDUCE_BLANKS setopt HIST_REDUCE_BLANKS
setopt HIST_SAVE_NO_DUPS setopt HIST_SAVE_NO_DUPS
HISTFILE=$ZDOTDIR/.zsh_history HISTFILE="$XDG_CACHE_HOME/zsh/zsh_history"
HISTSIZE=10000 HISTSIZE=10000
SAVEHIST=10000 SAVEHIST=10000

Loading…
Cancel
Save