{"id":25,"date":"2007-02-24T02:41:39","date_gmt":"2007-02-24T01:41:39","guid":{"rendered":"http:\/\/schuerig.de\/michael\/blog\/index.php\/2007\/02\/24\/gem-bash-completion\/"},"modified":"2021-11-24T09:20:09","modified_gmt":"2021-11-24T08:20:09","slug":"gem-bash-completion","status":"publish","type":"post","link":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/2007\/02\/24\/gem-bash-completion\/","title":{"rendered":"Bash Completion for the gem Command"},"content":{"rendered":"<p>The <a href=\"http:\/\/rubygems.org\/read\/book\/2\"><code>gem<\/code><\/a> command is the command line user interface to the <a href=\"http:\/\/rubygems.org\/\">RubyGems<\/a> system for managing Ruby packages.<\/p>\n<p>This command has a few sub-commands itself and a long list of options that differ per sub-command. Remembering and typing them can be tedious, but thankfully, if you are using the <code>bash<\/code> command shell, it can help with this task. It only has to be told <em>how<\/em>.<\/p>\n<p>I&#8217;ve packaged the <em>how<\/em> in <a href=\"http:\/\/www.schuerig.de\/michael\/ruby\/gem.bash_completion.old\">this file<\/a>. Copy it to <code>\/etc\/bash_completion.d<\/code> and hope that your <code>bash<\/code> installation picks it up the next time you start a shell.<\/p>\n<p>On Debian\/Linux system that&#8217;s just how it works. If this does not work on your particular version of Linux or Unix, you&#8217;ll have to look up how completions are handled on your system.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The gem command is the command line user interface to the RubyGems system for managing Ruby packages. This command has a few sub-commands itself and a long list of options that differ per sub-command. Remembering and typing them can be &hellip; <a href=\"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/2007\/02\/24\/gem-bash-completion\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4,3],"tags":[],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-linux","category-ruby","category-shell"],"_links":{"self":[{"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":1,"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"predecessor-version":[{"id":141,"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/posts\/25\/revisions\/141"}],"wp:attachment":[{"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.schuerig.de\/michael\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}