commit eb00153d969950d32731fbee14923298924f497a
parent b4bab1fba63bde138e2b15a384e7b0cc27b4a6b4
Author: Riaz <riaz@riazj.com>
Date: Sat, 4 Oct 2025 22:54:28 -0700
Change location of zsh history
Diffstat:
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/.config/zsh/.zshenv b/.config/zsh/.zshenv
@@ -1,9 +1,9 @@
-export SEARCH_DIRS=(data notes repos .config .local /usr/share/doc/artix /usr/share/doc/arch-wiki/html/en)
+export SEARCH_DIRS=(data school notes repos .config .local)
export PATH="$HOME/.local/bin:$PATH"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
-export XDG_STATE_HOME="$HOME/.local/state"
+export XDG_STATE_HOME="$XDG_DATA_HOME"
export PULSE_COOKIE="$XDG_CACHE_HOME/pulse"
export PARALLEL_HOME="$XDG_CACHE_HOME/parallel"
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
@@ -13,9 +13,10 @@ export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export ASPELL_CONF="home-dir $XDG_DATA_HOME/aspell"
export XINITRC="$XDG_CONFIG_HOME/xinitrc"
export W3M_DIR="$XDG_CONFIG_HOME/w3m"
-export HISTFILE="$XDG_STATE_HOME/zsh"
+export HISTFILE="$XDG_DATA_HOME/zsh"
export HISTSIZE=500
export SAVEHIST=500
+export SDCV_PAGER=less
export LESSHISTFILE=-
export LESS="-ciR"
export EDITOR="vis"
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
@@ -9,7 +9,7 @@ alias dot="git --git-dir=$HOME/repos/dotfiles/.git --work-tree=$HOME"
autoload -U compinit
[ -d "$XDG_CACHE_HOME/zsh" ] || mkdir -p "$XDG_CACHE_HOME/zsh"
-[ -d "$XDG_STATE_HOME" ] || mkdir -p "$XDG_STATE_HOME"
+[ -d "$XDG_DATA_HOME" ] || mkdir -p "$XDG_DATA_HOME"
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path "$XDG_CACHE_HOME/zsh/zcompcache"
compinit -d "$XDG_CACHE_HOME/zsh/zcompdump-$ZSH_VERSION"