Use zsh as default login shell

Zsh is a shell with rich features. Comparing with bash, zsh is more suitable for interactive use. But most linux distributions use bash as the default login shell. If you don’t want to type zsh every time in bash prompt, it’s time to change the default shell to zsh.

We can simplely use command chsh (means ‘change shell’) to achieve the goal. Use the following command to detect where zsh located in and change default shell one-step.

chsh -s $(which zsh)

Or you can specify the chsh argument for -s option explicitly if you know the path of zsh.

chsh -s /usr/bin/zsh  # change the path to your actual zsh path

Also chsh provide an interactive mode. Type chsh then Enter, the shells will be listed. You can choose which one to use default.

So all above not only apply for zsh, but also many other shells. Maybe fish shell, or whatever. Have a try!

Update WSL2 kernel to a newer version

[Vim Tips]设置Windows Terminal内vim的光标