Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Evalcache
Commits
9dbdabf9
Unverified
Commit
9dbdabf9
authored
Apr 05, 2019
by
Ethan Mills
Committed by
GitHub
Apr 05, 2019
Browse files
Inline variable
parent
d160bee9
Changes
1
Hide whitespace changes
Inline
Side-by-side
evalcache.plugin.zsh
View file @
9dbdabf9
...
@@ -7,8 +7,7 @@
...
@@ -7,8 +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
()
{
BINARY
=
$1
local
cacheFile
=
"
$ZSH_EVALCACHE_DIR
/init-
${
1
##*/
}
.sh"
local
cacheFile
=
"
$ZSH_EVALCACHE_DIR
/init-
${
BINARY
##*/
}
.sh"
if
[
"
$ZSH_EVALCACHE_DISABLE
"
=
"true"
]
;
then
if
[
"
$ZSH_EVALCACHE_DISABLE
"
=
"true"
]
;
then
eval
"
$(
"
$@
"
)
"
eval
"
$(
"
$@
"
)
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment