wslのデフォルトシェルをzshに変更する
chsh で変更する
zsh を install する.
sudo apt install zsh
chsh で変更する.
chsh -s $(which zsh)
oh my zsh を導入する場合
- ohmyzsh/ohmyzsh を使う.
Method | Command |
---|---|
curl | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
wget | sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
fetch | sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |