Unverified Commit d160bee9 authored by Ethan Mills's avatar Ethan Mills Committed by GitHub
Browse files

Strip path from binary in first arg

This allows passing a binary with filepath, so long as there is no other cache with the same name
parent 7f1a22de
......@@ -7,7 +7,8 @@
export ZSH_EVALCACHE_DIR=${ZSH_EVALCACHE_DIR:-"$HOME/.zsh-evalcache"}
function _evalcache () {
local cacheFile="$ZSH_EVALCACHE_DIR/init-$1.sh"
BINARY=$1
local cacheFile="$ZSH_EVALCACHE_DIR/init-${BINARY##*/}.sh"
if [ "$ZSH_EVALCACHE_DISABLE" = "true" ]; then
eval "$("$@")"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment