想改造下 Terminal 的外观,又不想太重比方下载个 iterm2 然后研究个一天,于是网上找了两个链接,都是很老的文章,但是够用了:
修改命令提示符:https://osxdaily.com/2006/12/11/how-to-customize-your-terminal-prompt/
修改颜色:https://osxdaily.com/2013/02/05/improve-terminal-appearance-mac-os-x/
设置:
cd ~
nano .bash_profile
这是我的:
export PS1="🤔\[\033[33;1m\]\h:\[\033[36;1m\]\w \[\033[31m\]\$\[\033[m\] "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
🖖🏼have fun~