Catalogue
Let's Use zsh on macOS X!

Let's Use zsh on macOS X!

🌐 日本語で読む

Benefits

  • Adds completion features in the terminal
  • Completes commands and file paths, even handling case conversion between uppercase and lowercase

Steps

Check whether zsh is available

1
2
3
4
$ cat /etc/shells
...

/etc/zsh

If it isn’t, install it with brew

1
2
$ brew install zsh
$ sudo sh -c 'echo $(which zsh) >> /etc/shells'

Switch your shell to zsh

1
2
$ chpass -s /bin/zsh
Password: (enter your password)

Default shell setting

1
$ chsh -s /bin/zsh

I use the following personal .zshrc settings.

https://github.com/kenzo0107/dotfiles

Download the above and place
.zshrc
in your home directory (~/).

Since it’s managed with git, it’s also fine to create a link like this.

1
$ ln .zshrc ~/.zshrc

Load the zsh configuration file

1
$ source .zshrc

When you restart the terminal, you can confirm that the settings have been applied, as shown below.

Author

Kenzo Tanaka

Posted on

2015-04-24

Licensed under