From e149102ce91a06eb54873a466b5e820d5a7363e6 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Wed, 19 Jul 2023 15:11:07 +0200 Subject: [PATCH] Zsh cleaning. --- _cli/zsh/.zshenv | 3 +++ _cli/zsh/.zshrc | 12 +++--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/_cli/zsh/.zshenv b/_cli/zsh/.zshenv index a8072f1..ae63a98 100644 --- a/_cli/zsh/.zshenv +++ b/_cli/zsh/.zshenv @@ -3,3 +3,6 @@ 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 HISTSIZE=10000 +export SAVEHIST=$HISTSIZE +export HISTFILE=$XDG_DATA_HOME/zsh/history diff --git a/_cli/zsh/.zshrc b/_cli/zsh/.zshrc index ae20c12..53f1cb5 100644 --- a/_cli/zsh/.zshrc +++ b/_cli/zsh/.zshrc @@ -1,21 +1,15 @@ # prepare directories -if [[ -L $XDG_CACHE_HOME ]]; then - rm -rf $XDG_CACHE_HOME - mkdir -p $XDG_CACHE_HOME -fi -mkdir -p $XDG_DATA_HOME/zsh mkdir -p $XDG_CACHE_HOME/zsh +mkdir -p $XDG_DATA_HOME/zsh # global exports and options -export HISTSIZE=10000 -export SAVEHIST=$HISTSIZE -export HISTFILE=$XDG_DATA_HOME/zsh/history setopt HIST_IGNORE_ALL_DUPS setopt HIST_SAVE_NO_DUPS setopt HIST_REDUCE_BLANKS setopt SHARE_HISTORY setopt INC_APPEND_HISTORY +# set path path=(~/.local/bin "$path[@]") # source configuration @@ -30,7 +24,7 @@ source $XDG_DATA_HOME/repos/zsh_modules/fast-syntax-highlighting/fast-syntax-hig source $XDG_DATA_HOME/repos/zsh_modules/wd/wd.plugin.zsh export WD_CONFIG=$XDG_CONFIG_HOME/wd_list -# set path +# set fpath fpath=($XDG_DATA_HOME/repos/zsh_modules/wd $fpath) # theme and colors