$ sh -c "$(curl -fsSL https://starship.rs/install.sh)"$ echo -e 'eval "$(starship init bash)"' >> ~/.bashrc# $ echo -e 'eval "$(starship init zsh)"' >> ~/.zshrc
对于 Nu Shell,使用 config path 找到配置文件,添加以下内容:
startup = ["mkdir ~/.cache/starship","starship init nu | save ~/.cache/starship/init.nu","source ~/.cache/starship/init.nu"]prompt = "starship_prompt"
