Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
b7fb0a55
Unverified
Commit
b7fb0a55
authored
Dec 17, 2021
by
smac89
Committed by
GitHub
Dec 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(heroku): fix XDG cache directory name and code style (#10436)
parent
52a46ec3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
heroku.plugin.zsh
plugins/heroku/heroku.plugin.zsh
+8
-8
No files found.
plugins/heroku/heroku.plugin.zsh
View file @
b7fb0a55
HEROKU_AC_CACHE_DIR
=
"
$HOME
/.cache"
if
[[
"
$OSTYPE
"
=
darwin
*
]]
;
then
if
[
"
$(
uname
-s
)
"
=
"Darwin"
]
;
then
cache_dir
=
"
${
HOME
}
/Library/Caches"
HEROKU_AC_CACHE_DIR
=
"
$HOME
/Library/Caches"
else
cache_dir
=
"
${
XDG_CACHE_HOME
:-
"
${
HOME
}
/.cache"
}
"
fi
fi
if
[
!
-z
"
$XDG_CACHE_HOME
"
]
;
then
HEROKU_AC_CACHE_DIR
=
"
$XDG_CACHE_DIR
"
setup_path
=
"
${
cache_dir
}
/heroku/autocomplete/zsh_setup"
fi
[[
-f
"
$setup_path
"
]]
&&
source
$setup_path
HEROKU_AC_ZSH_SETUP_PATH
=
$HEROKU_AC_CACHE_DIR
/heroku/autocomplete/zsh_setup
unset
cache_dir setup_path
[
-f
$HEROKU_AC_ZSH_SETUP_PATH
]
&&
source
$HEROKU_AC_ZSH_SETUP_PATH
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