参考: https://github.com/starship/starship
安装:
brew install starship
macos下:
open .bash_profile
把
eval "$(starship init bash)"
复制到最低
source .bash_profile
刷新bash即可
配置
mkdir -p ~/.config && touch ~/.config/starship.toml
vscode 打开startship.toml配置:
参考: https://stackoverflow.com/questions/29963617/how-to-call-vs-code-editor-from-terminal-command-line
macos下, 打开vscode,按F1开启命令行, 输入shell command
然后在Terminal下,输入code ~/.config/.starship.toml即