use official heroku autocomplete

This commit is contained in:
Jeff Dickey 2018-06-14 15:42:03 -07:00
commit 36d8789ead
No known key found for this signature in database
GPG key ID: B271233D0FCDE4EA
2 changed files with 9 additions and 199 deletions

View file

@ -0,0 +1,9 @@
HEROKU_AC_CACHE_DIR="$HOME/.cache"
if [ "$(uname -s)" = "Darwin" ]; then
HEROKU_AC_CACHE_DIR="$HOME/Library/Caches"
fi
if [ ! -z "$XDG_CACHE_HOME" ]; then
HEROKU_AC_CACHE_DIR="$XDG_CACHE_DIR"
fi
HEROKU_AC_ZSH_SETUP_PATH=$HEROKU_AC_CACHE_DIR/heroku/autocomplete/zsh_setup
[ -f $HEROKU_AC_ZSH_SETUP_PATH ] && source $HEROKU_AC_ZSH_SETUP_PATH