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"