diff options
author | listout <listout@protonmail.com> | 2021-05-15 22:01:36 +0530 |
---|---|---|
committer | listout <listout@protonmail.com> | 2021-05-15 22:01:36 +0530 |
commit | 057ad82849d044f9f0b9e1b66745a768b61c9a20 (patch) | |
tree | 5442775f7d7503f45d8feeb1fc0c0b2fa4afae57 /.config/zsh | |
parent | 0d6f3fddc75df3d674f2b0cf0596b28a89b4cf5f (diff) |
check if .cache/zsh folder exists, if not then create
Diffstat (limited to '.config/zsh')
-rw-r--r-- | .config/zsh/history_search.zsh | 6 |
1 files changed, 6 insertions, 0 deletions
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 |