From 057ad82849d044f9f0b9e1b66745a768b61c9a20 Mon Sep 17 00:00:00 2001 From: listout Date: Sat, 15 May 2021 22:01:36 +0530 Subject: check if .cache/zsh folder exists, if not then create --- .config/zsh/history_search.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/zsh/history_search.zsh b/.config/zsh/history_search.zsh index 5a0c3d7..3ea7df9 100644 --- a/.config/zsh/history_search.zsh +++ b/.config/zsh/history_search.zsh @@ -1,4 +1,10 @@ # History search + +dir=$HOME'/.cache/zsh' +if [[ ! -e $dir ]]; then + mkdir -p $dir +fi + HISTFILE=~/.cache/zsh/zsh_history HISTSIZE=90000 SAVEHIST=90000 -- cgit v1.2.3