Install Heroku + Setup Bash Completion:
$ brew install bash-completions@2
$ brew install heroku/brew/heroku
$ heroku update
$ heroku autocomplete bash
$ ln -s ~/Library/Caches/heroku/autocomplete/bash_setup /usr/local/etc/bash_completion.d
$ echo '. /usr/local/share/bash-completion/bash_completion' >> ~/.bash_profile
$ . ~/.bash_profile
Try autocomplete examples (TABTAB):
$ heroku ^[[01;31m^[[K
$ heroku apps:info --
First displays odd characters, second does nothing and seems to hang when using DEBUG.
Heroku: 7.18.4
Bash: 4.4.23(1)
Mac OS Mojave 10.14
NOTE: It used to work, I noticed the issue shortly after upgrading to Mojave. Other bash completions are working.
Thanks, for the heads-up @JBallin! We'll investigate.
cc @RasPhilCo
Greetings here @elbandito @RasPhilCo !
I am experiencing a similar issue with completion now.
Also, I have to say, CLI got unbelievably slow.
But all this happens only when I am inside a Heroku dyno in python shell:
heroku run bash
python
>>> ^[[A
It was working with Mac OS Mojave 10.14.1 for me (with autocompletion and fast).
It just broke recently with one of the recent Heroku CLI updates, we should check what happened there.
P.S. Reinstalling CLI and heroku autocomplete --refresh-cache did not help.
P.P.S I've got feedback from a couple of my colleagues having the same issue.
I have the same issue on Ubuntu 18.04.1 LTS.
Hey there,
This seems not related to the system where the shell_plus is invoked from.
I tried on the console you are providing in the heroku interface, and it is the same broken behaviour.
See screenshot:

Help would be very appreciated.
best regards
Try this load order:
$ rm /usr/local/etc/bash_completion.d/heroku
$ printf "$(heroku autocomplete:script bash)" >> ~/.bash_profile; source ~/.bash_profile
Just added the autocomplete and can confirm the same issue. @RasPhilCo heroku does not exist in /usr/local/etc/bash_completion.d/ on my system.
Most helpful comment
Greetings here @elbandito @RasPhilCo !
I am experiencing a similar issue with completion now.
Also, I have to say, CLI got unbelievably slow.
But all this happens only when I am inside a Heroku dyno in python shell:
It was working with Mac OS Mojave 10.14.1 for me (with autocompletion and fast).
It just broke recently with one of the recent Heroku CLI updates, we should check what happened there.
P.S. Reinstalling CLI and
heroku autocomplete --refresh-cachedid not help.P.P.S I've got feedback from a couple of my colleagues having the same issue.