<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><docs>https://blogs.law.harvard.edu/tech/rss</docs><title>Mac on tkalp.dev</title><link>https://tkalp.dev/tags/mac/</link><description>Recent content in Mac on tkalp.dev</description><image><title>Mac on tkalp.dev</title><link>https://tkalp.dev/tags/mac/</link><url>https://source.unsplash.com/collection/983219/2000x1322</url></image><ttl>1440</ttl><generator>After Dark 10.1.0 (Hugo 0.163.1)</generator><language>en-US</language><copyright>Copyright &copy; blacksamsays. Licensed under CC-BY-ND-4.0.</copyright><lastBuildDate>Thu, 06 Aug 2026 11:09:49 UT</lastBuildDate><atom:link href="https://tkalp.dev/tags/mac/index.xml" rel="self" type="application/rss+xml"/><item><title>Bash on Mac</title><link>https://tkalp.dev/post/bash-on-mac/</link><pubDate>Sun, 13 Mar 2022 00:00:00 UT</pubDate><guid>https://tkalp.dev/post/bash-on-mac/</guid><description>The problem Since macOS Catalina and later Apple has changed the default shell terminal to zsh. Most of your scripts based on bash will have incompatibility issues with zsh. You can switch to bash but the version that comes with macOS is pretty old. Let’s change that.</description><category domain="https://tkalp.dev/categories/tech">Tech</category><content:encoded><![CDATA[The problem Since macOS Catalina and later Apple has changed the default shell terminal to zsh. Most of your scripts based on bash will have incompatibility issues with zsh. You can switch to bash but the version that comes with macOS is pretty old. Let’s change that.
Assumptions You are on a mac device running macOS 10.15 and later. Install brew /bin/bash -c &#34;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&#34; Install the latest Bash and make it your default login shell # install latest bash brew install bash # install newer bash completions brew install bash-completion@2 # Add /usr/local/bin/bash to the list of allowed login shells echo /usr/local/bin/bash | sudo tee -a /etc/shells # Change the default shell for your Mac terminal chsh -s /usr/local/bin/bash # Change the login shell for your user sudo chpass -s /usr/local/bin/bash your_username Append to your ~/.bash_profile # Git functions git_branch() { git branch 2&gt;/dev/null | sed -e &#39;/^[^*]/d&#39; -e &#39;s/* \(.*\)/ (\1)/&#39; } # Terminal prompt PS1=&#34;\[\e[0;93m\]\u\[\e[m\]@&#34; # username PS1+=&#34;\[\e[0;92m\]\h\[\e[m\]&#34; # hostname PS1+=&#34; &#34; # space PS1+=&#34;\[\e[0;95m\]\W\[\e[m\]&#34; # current directory PS1+=&#34;\[\e[0;92m\]\$(git_branch)\[\e[m\]&#34; # current branch PS1+=&#34; &#34; # space PS1+=&#34;$ &#34; # end prompt export PS1 export CLICOLOR=1 export LSCOLORS=GxFxCxDxBxegedabagaced export PATH=&#34;$HOME/bin:/usr/local/bin:/usr/local/opt/python/libexec/bin:$HOME/.local/bin:$PATH&#34; # Bash v5 completions [[ -r &#34;/usr/local/etc/profile.d/bash_completion.sh&#34; ]] &amp;&amp; . &#34;/usr/local/etc/profile.d/bash_completion.sh&#34; # Get rid of Apple&#39;s Bash deprecation warning export BASH_SILENCE_DEPRECATION_WARNING=1 ]]></content:encoded></item></channel></rss>