Starship Shell

官方文档

README.md

Windows powershell设置

  1. 下载Nerd Font字体,并将字体文件复制到C://Windows/Fonts下
  2. 发布页下载 MSI 包来安装Starship最新版。
  3. powershell以管理员运行下列命令,以放开脚本执行
Set-ExecutionPolicy -ExecutionPolicy Unrestricted  -Scope LocalMachine
  1. 参考官方文档,修改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