Sunday, January 15, 2017

Upgrading my bash on MacOSX and simple tips found on the internet.

I find my self doing lots of work in the terminal lately, I have to admit I was not that type of guy or an expert, but over the years I needed to step my bash/cmd/terminal game up. 

So I just red yesterday this very short and simple article, and I was like , wait a minute I've done some of these mistakes in the past.  Master Bash and Terminal. Worth your time. I guess any bash / linux wizards already knows all of these simple trics. It was funny because in the examples the author claims that he searches a lot his bash history for previous executions of 'kubectl', I was like, Yes i do this a lot every day.

After reading this article I ended up to this simple guide on how to upgrade your default 'bash' version on MacOSX, from version 3.2.x to 4.4.x .

$ brew install bash
$ chsh -s /usr/local/bin/bash
And then make sure on iTerm to add this, so that it starts as a login terminal. (/usr/local/bin/bash --login)

ps) I have tried to switch to 'fish' some time ago, but still some incompatibilies and extra tricks you need to do, in order to have the very same experience with bash - i was not ready for this.