{"id":4,"date":"2016-08-08T15:34:48","date_gmt":"2016-08-08T19:34:48","guid":{"rendered":"https:\/\/fs.wp.odu.edu\/sobrien\/?p=4"},"modified":"2016-08-16T12:30:00","modified_gmt":"2016-08-16T16:30:00","slug":"gotta-mac-wanna-more-current-bash-shell","status":"publish","type":"post","link":"https:\/\/fs.wp.odu.edu\/sobrien\/2016\/08\/08\/gotta-mac-wanna-more-current-bash-shell\/","title":{"rendered":"Gotta Mac? Wanna (more) current bash shell?"},"content":{"rendered":"<p>Mmmk. So I got this groovy new iMac and was excited to try out Terminal app, which is indeed cool, but for some bizarre reason the default system shell is a generation old. Meh.<\/p>\n<p class=\"p1\"><a href=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.40.39-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-5\" src=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.40.39-PM-300x40.png\" alt=\"Screen Shot 2016-08-08 at 2.40.39 PM\" width=\"300\" height=\"40\" srcset=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.40.39-PM-300x40.png 300w, https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.40.39-PM-600x80.png 600w, https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.40.39-PM.png 850w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p class=\"p1\">WTH? Ubuntu&#8217;s at 4.3.36!<\/p>\n<p class=\"p1\">Time for <a href=\"https:\/\/www.macports.org\/install.php\">MacPorts<\/a>! Go there, install the correct package for your version of OS X, and do a<\/p>\n<p><code>$ xcode-select --install<br \/>\n$ sudo port install bash<\/code><\/p>\n<p class=\"p1\"><a href=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.50.22-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-6\" src=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.50.22-PM-300x240.png\" alt=\"Screen Shot 2016-08-08 at 2.50.22 PM\" width=\"300\" height=\"240\" srcset=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.50.22-PM-300x240.png 300w, https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.50.22-PM-1024x819.png 1024w, https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.50.22-PM-945x756.png 945w, https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.50.22-PM-600x480.png 600w, https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.50.22-PM.png 1726w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p class=\"p1\">Ok, cool, so yeah now you\u00a0<em>have\u00a0<\/em>it, but you want it to be your default shell.<\/p>\n<p class=\"p1\">I suppose you could symlink \/bin\/bash to the Mac ports version, but that seems a little hardcore.<\/p>\n<p class=\"p1\">Let&#8217;s do it the &#8220;right&#8221; way:<\/p>\n<p><code>$ sudo echo '\/opt\/local\/bin\/bash' &gt;&gt; \/etc\/shells<\/code><br \/>\nThat adds the newer bash from Mac ports to the system.<\/p>\n<p class=\"p1\">To make it your default shell:<\/p>\n<p><code>chsh -s \/opt\/local\/bin\/bash<\/code><\/p>\n<p class=\"p1\">Exit and restart terminal and you should see:<\/p>\n<p class=\"p1\"><a href=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.59.53-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-7\" src=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.59.53-PM-300x77.png\" alt=\"Screen Shot 2016-08-08 at 2.59.53 PM\" width=\"300\" height=\"77\" srcset=\"https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.59.53-PM-300x77.png 300w, https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.59.53-PM-1024x264.png 1024w, https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.59.53-PM-945x244.png 945w, https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.59.53-PM-600x155.png 600w, https:\/\/fs.wp.odu.edu\/sobrien\/wp-content\/uploads\/sites\/1816\/2016\/08\/Screen-Shot-2016-08-08-at-2.59.53-PM.png 1148w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p class=\"p1\">Whooohoooo!<\/p>\n<p class=\"p1\">Make sure to keep things current by periodically running a:<\/p>\n<pre class=\"programlisting\">$ sudo port selfupdate<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Mmmk. So I got this groovy new iMac and was excited to try out Terminal app, which is indeed cool, but for some bizarre reason the default system shell is a generation old. Meh. WTH? Ubuntu&#8217;s at 4.3.36! Time for MacPorts! Go there, install the correct package for your version of OS X, and do [&hellip;]<\/p>\n","protected":false},"author":3412,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","wds_primary_category":0},"categories":[4,2,3],"tags":[],"_links":{"self":[{"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/posts\/4"}],"collection":[{"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/users\/3412"}],"replies":[{"embeddable":true,"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/comments?post=4"}],"version-history":[{"count":5,"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/posts\/4\/revisions"}],"predecessor-version":[{"id":70,"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/posts\/4\/revisions\/70"}],"wp:attachment":[{"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/media?parent=4"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/categories?post=4"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fs.wp.odu.edu\/sobrien\/wp-json\/wp\/v2\/tags?post=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}