<!DOCTYPE html>

使用zsh替换bash

使用zsh替换bash
Friday, July 22, 2016
3:19 PM

使用zsh替换bash

yum install zsh


Changing your default shell

After installing one the above shells, you can execute that shell inside of your current shell, by just running its executable. If you want to be served that shell when you login however, you will need to change your default shell.

To list all installed shells, run:


$ chsh -l

And to set one as default for your user do:


$ chsh -s full-path-to-shell

where full-path-to-shell is the full path as given by chsh -l.

If you now log out and log in again, you will be greeted by the other shell.

 
已使用 Microsoft OneNote 2016 创建。