Sunday, December 12, 2010

How to Update Bash Version on MAC

Hi,

Another post, just share some experience. Forthose whom a bit extreme users. Here how to update your bash version. Here we go...

This is all what you need:
1. Apple XCode, you can download by yourself from apple website.
2. Bash 4.1

This is how to do
01. tar -xzvf bash-4.1.tar.gz
02. 'su -' or 'sudo -s' -> you must have root previlage
03. cd bash-4.1
04. ./configure && make && make install
05. chsh -s /usr/local/bin/bash user_name
06. sudo bash -c "echo /usr/local/bin/bash >> /private/etc/shells"
07. Close your terminal & open it again
08. type in 'help' it should have the bash version on the top if it's already 4.1
09. 'su -' or 'sudo -s'
10. cd /bin
11. mv bash bash_old
12. ln -s /usr/local/bin/bash bash

Enjoy your new Bash..

Regards,
феникс