{"id":1214,"date":"2021-02-03T20:18:20","date_gmt":"2021-02-04T05:18:20","guid":{"rendered":"https:\/\/accretiondisc.com\/blog\/?p=1214"},"modified":"2021-02-03T20:18:20","modified_gmt":"2021-02-04T05:18:20","slug":"bash-zsh-customization","status":"publish","type":"post","link":"https:\/\/accretiondisc.com\/blog\/2021\/02\/03\/bash-zsh-customization\/","title":{"rendered":"Bash \/ Zsh customization"},"content":{"rendered":"\n<p>AAPL changed the default shell from bash to zsh in either Mojave or Catalina. I ignored that, since nothing they&#8217;ve done lately <a href=\"https:\/\/accretiondisc.com\/blog\/2020\/05\/24\/itunes-misbehavior-part-934\/\">betrays any understanding of Unix<\/a>. But even after I moved back to bash using <em>chsh<\/em>, my Mac keeps reminding me that I&#8217;m doing it wrong. So I thought to myself: what if I did migrate to zsh? Or, rather, what&#8217;s keeping me from doing it? (Aside from AAPL being the ones to recommend it, I mean.)<\/p>\n\n\n\n<p>Well, I know bash syntax pretty well, and I&#8217;ve got a bunch of shell scripts I wouldn&#8217;t want to find the bash-isms in. But OSX still includes bash, so running a shell script in bash is as simple as putting the right shebang up top. Assuming you have shell initialization working.<\/p>\n\n\n\n<p>I do have it working. I think. I never know for sure. It&#8217;s a baling wire and chewing gum contraption, I admit.<\/p>\n\n\n\n<p>The problem is that <a href=\"http:\/\/meta.ath0.com\/2007\/10\/23\/cleaning-up-bash-customizations\/\">bash initialization is impossible to figure out<\/a>. And even if you do figure it out, then you have to figure out what \/etc\/profile and \/etc\/bashrc and who-knows-what are invoking and in what order.<\/p>\n\n\n\n<p>But if I don&#8217;t figure it out, I&#8217;ll always be to afraid to find out if zsh is worth using. Fortunately, I have a handy <a href=\"https:\/\/shreevatsa.wordpress.com\/2008\/03\/30\/zshbash-startup-files-loading-order-bashrc-zshrc-etc\/\">guide I can use to get a zsh initialization<\/a> working.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AAPL changed the default shell from bash to zsh in either Mojave or Catalina. I ignored that, since nothing they&#8217;ve done lately betrays any understanding of Unix. But even after I moved back to bash using chsh, my Mac keeps reminding me that I&#8217;m doing it wrong. So I thought to myself: what if I [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[52],"tags":[783,469,1115],"class_list":["post-1214","post","type-post","status-publish","format-standard","hentry","category-technology","tag-initialization","tag-shell","tag-zsh"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paRqpr-jA","_links":{"self":[{"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/posts\/1214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/comments?post=1214"}],"version-history":[{"count":0,"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/posts\/1214\/revisions"}],"wp:attachment":[{"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/media?parent=1214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/categories?post=1214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/accretiondisc.com\/blog\/wp-json\/wp\/v2\/tags?post=1214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}