(JitHub: LeCoupa / awesome-cheatsheets)[https://github.com/LeCoupa/awesome-cheatsheets/blob/master/languages/bash.sh]
# list shells
cat /etc/shells
# To change to bash shell
chsh -s /bin/bash
# Relaunch Terminal or iTerm
# To swap back to zsh shell
chsh -s /bin/zsh
# Relaunch Terminal or iTermbrew install tree# bash
cat ~/.bash_history
cat ~/.bash_profile
cat /etc/bashrc
# zsh
cat ~/.zsh_history
cat ~/.zshrc
cat /etc/zshrc # main
cat /etc/zshrc_Apple_Terminal # main
# zsh colors: \033, bash colors: \e
SH=$( echo $SHELL )
[ "/bin/zsh" = "$SH" ] && WB='\e' || WB='\033'
export Black="${WB}[0;30m" # Black
export Red="${WB}[0;31m" # Red
export Green="${WB}[0;32m" # Green
export Yellow="${WB}[0;33m" # Yellow
export Blue="${WB}[0;34m" # Blue
export Purple="${WB}[0;35m" # Purple
export Magenta="${WB}[0;35m" # Magenta
export Cyan="${WB}[0;36m" # Cyan
export White="${WB}[0;37m" # White
echo -e "${Red}Test${NC}"nano .bash_profile
export SP1='\u@\h \W %'
source .bash_profile