source <(ecctl generate completions) is not working
- Dominant language
- Go
- Stars
- 58
- Forks
- 61
- PR merge metrics
- No merged PRs in 30d
Description
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.
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](https://github.com/apache/openwhisk/issues/2924)
```
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.
`$ ecctl generate completions > /Users/surfer/Dropbox/Mackup/ecctl.completion`
- my environment
```
[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:~]$
```
Contributor guide
Assessment
This issue has not been assessed yet.