{"action":"created","issue":{"url":"https://api.github.com/repos/ahmetb/kubectl-aliases/issues/21","repository_url":"https://api.github.com/repos/ahmetb/kubectl-aliases","labels_url":"https://api.github.com/repos/ahmetb/kubectl-aliases/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/ahmetb/kubectl-aliases/issues/21/comments","events_url":"https://api.github.com/repos/ahmetb/kubectl-aliases/issues/21/events","html_url":"https://github.com/ahmetb/kubectl-aliases/issues/21","id":405712853,"node_id":"MDU6SXNzdWU0MDU3MTI4NTM=","number":21,"title":"Completion not working with Bash","user":{"login":"weibeld","id":2396208,"node_id":"MDQ6VXNlcjIzOTYyMDg=","avatar_url":"https://avatars1.githubusercontent.com/u/2396208?v=4","gravatar_id":"","url":"https://api.github.com/users/weibeld","html_url":"https://github.com/weibeld","followers_url":"https://api.github.com/users/weibeld/followers","following_url":"https://api.github.com/users/weibeld/following{/other_user}","gists_url":"https://api.github.com/users/weibeld/gists{/gist_id}","starred_url":"https://api.github.com/users/weibeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weibeld/subscriptions","organizations_url":"https://api.github.com/users/weibeld/orgs","repos_url":"https://api.github.com/users/weibeld/repos","events_url":"https://api.github.com/users/weibeld/events{/privacy}","received_events_url":"https://api.github.com/users/weibeld/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-02-01T13:58:32Z","updated_at":"2019-02-04T10:43:41Z","closed_at":"2019-02-01T18:18:00Z","author_association":"NONE","body":"With zsh, programmable completion works with the aliases as it would with the full commands. \r\n\r\nFor example:\r\n\r\n~~~bash\r\n# Displays all sub-commands of kubectl\r\nk [tab]\r\n# Displays all resource objects\r\nkg [tab]\r\n# Displays all pods\r\nkgpo [tab]\r\n~~~\r\n\r\nHowever, this doesn't work with Bash. If you do the same in Bash, there is no programmable completion invoked at all for the aliases.\r\n\r\nI use Bash 5.0 on macOS with [bash-completion 2.8](https://github.com/scop/bash-completion) installed.\r\n\r\nDo you have any ideas on this? Is this the normal behaviour of Bash, or can it be fixed somehow?"},"comment":{"url":"https://api.github.com/repos/ahmetb/kubectl-aliases/issues/comments/460202252","html_url":"https://github.com/ahmetb/kubectl-aliases/issues/21#issuecomment-460202252","issue_url":"https://api.github.com/repos/ahmetb/kubectl-aliases/issues/21","id":460202252,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2MDIwMjI1Mg==","user":{"login":"weibeld","id":2396208,"node_id":"MDQ6VXNlcjIzOTYyMDg=","avatar_url":"https://avatars1.githubusercontent.com/u/2396208?v=4","gravatar_id":"","url":"https://api.github.com/users/weibeld","html_url":"https://github.com/weibeld","followers_url":"https://api.github.com/users/weibeld/followers","following_url":"https://api.github.com/users/weibeld/following{/other_user}","gists_url":"https://api.github.com/users/weibeld/gists{/gist_id}","starred_url":"https://api.github.com/users/weibeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weibeld/subscriptions","organizations_url":"https://api.github.com/users/weibeld/orgs","repos_url":"https://api.github.com/users/weibeld/repos","events_url":"https://api.github.com/users/weibeld/events{/privacy}","received_events_url":"https://api.github.com/users/weibeld/received_events","type":"User","site_admin":false},"created_at":"2019-02-04T10:43:41Z","updated_at":"2019-02-04T10:43:41Z","author_association":"NONE","body":"It is a Bash issue. I just asked because you mention in your [post](https://ahmet.im/blog/kubectl-aliases/) that `kubectl` completion keeps working with the aliases. So, in that case, this only holds for Zsh, but not for Bash."}}
{"actor":{"display_login":"weibeld"}}