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
28ee5846
Commit
28ee5846
authored
Sep 04, 2020
by
Marc Cornellà
Browse files
init: define $ZSH if not defined
Closes #9223
parent
87edf16e
Changes
1
Hide whitespace changes
Inline
Side-by-side
oh-my-zsh.sh
View file @
28ee5846
# If ZSH is not defined, use the current script's directory.
[[
-z
"
$ZSH
"
]]
&&
export
ZSH
=
"
${${
(%)
:-
%x
}
:a:h
}
"
# Set ZSH_CACHE_DIR to the path where cache files should be created
# or else we will use the default cache/
if
[[
-z
"
$ZSH_CACHE_DIR
"
]]
;
then
...
...
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