config/shell/arch: separate yas cache by user

This commit is contained in:
xeruf 2021-09-19 23:26:12 +02:00
parent b6ebff6655
commit 3ecd987437
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@ yzf() {
# print -s adds a shell history entry # print -s adds a shell history entry
yas() { yas() {
cache_dir="/tmp/yas" cache_dir="/tmp/yas-$USER"
test "$1" = "-y" && rm -r "$cache_dir" && shift test "$1" = "-y" && rm -rf "$cache_dir" && shift
mkdir -p "$cache_dir" mkdir -p "$cache_dir"
preview_cache="$cache_dir/preview_{2}" preview_cache="$cache_dir/preview_{2}"
list_cache="$cache_dir/list" list_cache="$cache_dir/list"