{"action":"created","issue":{"url":"https://api.github.com/repos/sloria/ped/issues/3","labels_url":"https://api.github.com/repos/sloria/ped/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/sloria/ped/issues/3/comments","events_url":"https://api.github.com/repos/sloria/ped/issues/3/events","html_url":"https://github.com/sloria/ped/pull/3","id":105386764,"number":3,"title":"Tab completion support in bash","user":{"login":"takluyver","id":327925,"avatar_url":"https://avatars.githubusercontent.com/u/327925?v=3","gravatar_id":"","url":"https://api.github.com/users/takluyver","html_url":"https://github.com/takluyver","followers_url":"https://api.github.com/users/takluyver/followers","following_url":"https://api.github.com/users/takluyver/following{/other_user}","gists_url":"https://api.github.com/users/takluyver/gists{/gist_id}","starred_url":"https://api.github.com/users/takluyver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takluyver/subscriptions","organizations_url":"https://api.github.com/users/takluyver/orgs","repos_url":"https://api.github.com/users/takluyver/repos","events_url":"https://api.github.com/users/takluyver/events{/privacy}","received_events_url":"https://api.github.com/users/takluyver/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-08T13:56:30Z","updated_at":"2015-09-09T12:42:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sloria/ped/pulls/3","html_url":"https://github.com/sloria/ped/pull/3","diff_url":"https://github.com/sloria/ped/pull/3.diff","patch_url":"https://github.com/sloria/ped/pull/3.patch"},"body":"This is a rough go at implementing tab completion of module names in bash.\r\n\r\nTo test it out, `source ped_bash_completion.sh` and then try completing ped commands in the same shell. To make it permanent, copy that file into `/etc/bash_completions.d/`\r\n\r\nIf you're happy with this approach, I'll ensure that the file is packaged and installed with ped, and make an easy way to install it to the correct location."},"comment":{"url":"https://api.github.com/repos/sloria/ped/issues/comments/138896949","html_url":"https://github.com/sloria/ped/pull/3#issuecomment-138896949","issue_url":"https://api.github.com/repos/sloria/ped/issues/3","id":138896949,"user":{"login":"sloria","id":2379650,"avatar_url":"https://avatars.githubusercontent.com/u/2379650?v=3","gravatar_id":"","url":"https://api.github.com/users/sloria","html_url":"https://github.com/sloria","followers_url":"https://api.github.com/users/sloria/followers","following_url":"https://api.github.com/users/sloria/following{/other_user}","gists_url":"https://api.github.com/users/sloria/gists{/gist_id}","starred_url":"https://api.github.com/users/sloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloria/subscriptions","organizations_url":"https://api.github.com/users/sloria/orgs","repos_url":"https://api.github.com/users/sloria/repos","events_url":"https://api.github.com/users/sloria/events{/privacy}","received_events_url":"https://api.github.com/users/sloria/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T12:42:23Z","updated_at":"2015-09-09T12:42:23Z","body":"Btw, I made a mostly-working zsh completion file in this gist: https://gist.github.com/sloria/795686a107c0f9698152 .\r\n\r\nIn order to support bash and zsh, I imagine the following interface:\r\n\r\n```\r\npython -m ped.install_completion --bash /etc/bash_completions.d/ --zsh /etc/zsh_completions.d/\r\n```\r\n\r\nIf you want, you can go ahead and make this change. Otherwise I can do it myself later today."}}