0
点赞
收藏
分享

微信扫一扫

[MAC]如何安装starship


参考: ​​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

[MAC]如何安装starship_macos

然后在Terminal下,输入code ~/.config/.starship.toml即可打开

 

安装fish

brew install fish

配置fish config

​​https://fishshell.com/docs/current/tutorial.html​​

​fish​​​ starts by executing commands in ​​~/.config/fish/config.fish​​. You can create it if it does not exist.

刚装好没有config文件,需要手动touch创建

 

结合starship shell

在 ​​~/.config/fish/config.fish​​ 的最后,添加以下内容:

# ~/.config/fish/config.fish

starship init fish | source

然后在starship下输入fish启动即可

 

 

 

举报

相关推荐

0 条评论