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
Oh My Zsh
Commits
7f232f69
Commit
7f232f69
authored
Jun 02, 2015
by
william
Browse files
Respect $ZSH_CACHE_DIR when creating fasd's cache
parent
9c755511
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/fasd/fasd.plugin.zsh
View file @
7f232f69
if
[
$commands
[
fasd]
]
;
then
# check if fasd is installed
if
[
$commands
[
fasd]
]
;
then
# check if fasd is installed
fasd_cache
=
"
$
HOME
/.
fasd-init-cache"
fasd_cache
=
"
$
{
ZSH_CACHE_DIR
}
/
fasd-init-cache"
if
[
"
$(
command
-v
fasd
)
"
-nt
"
$fasd_cache
"
-o
!
-s
"
$fasd_cache
"
]
;
then
if
[
"
$(
command
-v
fasd
)
"
-nt
"
$fasd_cache
"
-o
!
-s
"
$fasd_cache
"
]
;
then
fasd
--init
auto
>
|
"
$fasd_cache
"
fasd
--init
auto
>
|
"
$fasd_cache
"
fi
fi
...
...
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