macos bash zsh 切換 設置環境變量

1,macos bash zsh 切換 設置環境變量

  • 查看shell
╰─➤  cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.

/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh

2,shell切換

  • 切換到zsh
chsh -s /bin/zsh
  • 切換到bash
chsh -s /bin/bash

3,zsh環境變量

  • vim .zshrc

參考:

  1. Mac終端神器zsh
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章