官方文档
Windows powershell设置
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope LocalMachine
- 参考官方文档,修改PowerShell 配置文件
将以下内容添加到您 PowerShell 配置文件的末尾(通过运行 $PROFILE 来获取配置文件的路径)
Invoke-Expression (&starship init powershell)
Linux Bash
cd /usr/share/fonts
mkdir nerd-fonts
cd nerd-fonts
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.2.2/3270.zip -O 3270.zip
unzip 3270.zip
cat >> ~/.bashrc <<\EOF
eval "$(starship init bash)"
EOF
usermod -s /bin/bash $USER
curl -sS https://starship.rs/install.sh | sh