Open TomonoriSoejima opened 3 years ago
I ran into this weird issue and hopefully, someone may find it useful in case your .bash_profile is messy like mine 😅
so when I added source <(ecctl generate completions) into my .bash_profile and typed ecctl in my terminal, I was getting no suggestions.
source <(ecctl generate completions)
ecctl
Thus I ended up like this as a workaround like this.
In my .bash_profile I added extra block below because I ran into this issue
if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion fi # source <(ecctl generate completions) . /Users/surfer/Dropbox/Mackup/ecctl.completion
/Users/surfer/Dropbox/Mackup/ecctl.completion is created like this.
/Users/surfer/Dropbox/Mackup/ecctl.completion
$ ecctl generate completions > /Users/surfer/Dropbox/Mackup/ecctl.completion
[nami:~]$ uname -a Darwin nami.local 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64 i386 MacBookPro16,1 Darwin [nami:~]$
Related: The next cobra release will provide a fully functional completion command. We should keep this in mind when upgrading
completion
I ran into this weird issue and hopefully, someone may find it useful in case your .bash_profile is messy like mine 😅
so when I added
source <(ecctl generate completions)
into my .bash_profile and typedecctl
in my terminal, I was getting no suggestions.Thus I ended up like this as a workaround like this.
In my .bash_profile I added extra block below because I ran into this issue
/Users/surfer/Dropbox/Mackup/ecctl.completion
is created like this.$ ecctl generate completions > /Users/surfer/Dropbox/Mackup/ecctl.completion