mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-07 07:50:40 +01:00
use official heroku autocomplete (#6919)
This commit is contained in:
committed by
Marc Cornellà
parent
850975eb78
commit
0cc371181a
9
plugins/heroku/heroku.plugin.zsh
Normal file
9
plugins/heroku/heroku.plugin.zsh
Normal 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
|
||||
Reference in New Issue
Block a user