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