I installed heroku cli via snap (sudo snap install heroku --classic
), but the autocomplete does not work throws an error: _heroku:2: HEROKU_AC_ANALYTICS_DIR: parameter not set
, never encountered this before, who knows what could be the problem?
i`m using the zsh command shell
CodePudding user response:
Try this solution: https://devcenter.heroku.com/articles/heroku-cli-autocomplete
heroku update
heroku autocomplete
Worked for me.
CodePudding user response:
You can fix this error by entering just two commands in terminal:
heroku autocomplete
printf "$(heroku autocomplete:script zsh)" >> ~/.zshrc; source ~/.zshrc
After that, the following line will be added to the ~/.zshrc file:
# heroku autocomplete setup
HEROKU_AC_ZSH_SETUP_PATH=/home/USER/.cache/heroku/autocomplete/zsh_setup && test -f $HEROKU_AC_ZSH_SETUP_PATH && source $HEROKU_AC_ZSH_SETUP_PATH;