close
之前一直困擾著如何修改預設的shell環境,
後來終於找到這個 Changing your default shell
以下摘要他的步驟:p
- Do a cat on /etc/shells. The output will show you the location of the binaries for all the shells installed on your system. IT IS EXTREMELY IMPORTANT THAT YOU KNOW EXACTLY WHERE THE SHELL YOU WANT TO USE IS!:
cat /etc/shells - Now use the chsh command to change your default shell. On Free and OpenBSD the command to change your default shell to bash is (this may differ if your on another *nix variant so read your man page for chsh):
chsh -s /path/to/bash - If you don't know what variant you are using do this to find out:
uname -a
全站熱搜