Unverified Commit c51beee6 authored by Matthew Rothenberg's avatar Matthew Rothenberg Committed by GitHub
Browse files

Merge pull request #2 from millsyman/master (fixes #1)

Strip path from binary in first arg
parents 7f1a22de 9dbdabf9
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
export ZSH_EVALCACHE_DIR=${ZSH_EVALCACHE_DIR:-"$HOME/.zsh-evalcache"} export ZSH_EVALCACHE_DIR=${ZSH_EVALCACHE_DIR:-"$HOME/.zsh-evalcache"}
function _evalcache () { function _evalcache () {
local cacheFile="$ZSH_EVALCACHE_DIR/init-$1.sh" local cacheFile="$ZSH_EVALCACHE_DIR/init-${1##*/}.sh"
if [ "$ZSH_EVALCACHE_DISABLE" = "true" ]; then if [ "$ZSH_EVALCACHE_DISABLE" = "true" ]; then
eval "$("$@")" 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