Unverified Commit b7fb0a55 authored by smac89's avatar smac89 Committed by GitHub

fix(heroku): fix XDG cache directory name and code style (#10436)

parent 52a46ec3
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
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