From 9b9d75acc43501e823be8f665c10e9bbea2c2601 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 23 Dec 2015 02:19:03 -0500 Subject: [PATCH] Shell-specific caches --- .common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.common.sh b/.common.sh index 067144b4..c96019b5 100644 --- a/.common.sh +++ b/.common.sh @@ -20,7 +20,7 @@ cache() { [[ ! -d "$CACHE_DIR" ]] && mkdir -p "$CACHE_DIR" is-callable "$1" || return 1 - local cache="${CACHE_DIR}/$1" + local cache="${CACHE_DIR}/$1-$(basename $SHELL)" if ! [[ -f "$cache" && -s "$cache" ]]; then echo "Caching $1" $@ > "$cache" 2> /dev/null