3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Mac YosemiteのTerminalのshellをzshにする

Posted at

簡単な小ネタを一つ。

ハマったところ

普通にTerminalを開いてchshで変更しようとしたら、変更できなかった。

chsh: /usr/local/bin/zsh is an invalid shell

とかでやがった。invalidじゃねえよ!

解決方法

2コマンドでOK!

command -v zsh | sudo tee -a /etc/shells
sudo chsh -s "$(command -v zsh)" "${USER}"
3
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?