From 3ecd987437fa10eb71dbf42fb04903e027b1437a Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sun, 19 Sep 2021 23:26:12 +0200 Subject: [PATCH] config/shell/arch: separate yas cache by user --- .config/shell/arch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/shell/arch b/.config/shell/arch index 00a1b6a..3bb6fee 100644 --- a/.config/shell/arch +++ b/.config/shell/arch @@ -22,8 +22,8 @@ yzf() { # print -s adds a shell history entry yas() { - cache_dir="/tmp/yas" - test "$1" = "-y" && rm -r "$cache_dir" && shift + cache_dir="/tmp/yas-$USER" + test "$1" = "-y" && rm -rf "$cache_dir" && shift mkdir -p "$cache_dir" preview_cache="$cache_dir/preview_{2}" list_cache="$cache_dir/list"