1. $ sh -c "$(curl -fsSL https://starship.rs/install.sh)"
    2. $ echo -e 'eval "$(starship init bash)"' >> ~/.bashrc
    3. # $ echo -e 'eval "$(starship init zsh)"' >> ~/.zshrc

    对于 Nu Shell,使用 config path 找到配置文件,添加以下内容:

    1. startup = [
    2. "mkdir ~/.cache/starship",
    3. "starship init nu | save ~/.cache/starship/init.nu",
    4. "source ~/.cache/starship/init.nu"
    5. ]
    6. prompt = "starship_prompt"