I have recently switched from bash to zsh. zsh has nice command completion and it also suggests command if you mistype. Mac OS-X comes with zsh installed, to switch to zsh go to system preferences -> accounts, right click on the account select advanced options and select zsh for login shell. Also along the way I picked up a new command, its the bang command I would like to share, bare in mind this is not unique to zsh and is also available in bash. Have fun programming :).

 !! - To run last executed command
 !$ - Last argument of previous command
 !* - All arguments
 !!:1 - First argument

References
http://www.zsh.org/
http://vafer.org/blog/20070103101542

2 Comments

  1. Rich says:

    I know it sounds great and all, but I have like 200 shell functions. Last time I checked zsh, it could not read my .bashrc files. If there was a way to preserve all that time invested in bash, I would probably switch.

  2. Anil says:

    This helped me in one of my projects. You rock!

Leave a Reply