{"id":192,"date":"2019-09-03T09:44:46","date_gmt":"2019-09-03T09:44:46","guid":{"rendered":"http:\/\/www.unordnung.net\/?p=192"},"modified":"2019-09-03T09:44:46","modified_gmt":"2019-09-03T09:44:46","slug":"smart-auto-complete","status":"publish","type":"post","link":"https:\/\/unordnung.net\/misc\/2019\/09\/smart-auto-complete\/","title":{"rendered":"Smart auto complete"},"content":{"rendered":"\n<p>It seems that sometimes smart bash completion is turned off by default so second commands and such as in apt install packagename are not auto completed. To activate it, in <code>\/etc\/bash.bashrc<\/code> file uncomment the following lines:<br \/><code><br \/> #if [ -f \/etc\/bash_completion ]; then<br \/> #    . \/etc\/bash_completion<br \/> #fi<\/code><\/p>\n\n\n<figure class=\"wp-block-embed is-type-link is-provider-ubuntu-blog\"><div class=\"wp-block-embed__wrapper\">\n<a href=\"https:\/\/embraceubuntu.com\/2006\/01\/28\/turn-on-bash-smart-completion\/\">Turn on Bash Smart&nbsp;Completion<\/a>\n<\/div><figcaption>taken from https:\/\/embraceubuntu.com\/2006\/01\/28\/turn-on-bash-smart-completion\/<\/figcaption><\/figure>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It seems that sometimes smart bash completion is turned off by default so second commands and such as in apt install packagename are not auto completed. To activate it, in \/etc\/bash.bashrc file uncomment the following lines: #if [ -f \/etc\/bash_completion ]; then # . \/etc\/bash_completion #fi<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[11,14,46],"class_list":["post-192","post","type-post","status-publish","format-standard","hentry","category-to_remember","tag-bash","tag-config","tag-linux"],"_links":{"self":[{"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/posts\/192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/comments?post=192"}],"version-history":[{"count":0,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/posts\/192\/revisions"}],"wp:attachment":[{"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/media?parent=192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/categories?post=192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unordnung.net\/misc\/wp-json\/wp\/v2\/tags?post=192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}