dotfiles/.chezmoiscripts/run_install_starship.sh.tmpl

5 lines
No EOL
218 B
Cheetah
Executable file

{{ if (lookPath "starship" | not)}}
#!/bin/bash
mkdir -p $HOME/.local/bin && curl -sS https://starship.rs/install.sh | {{ if ne .chezmoi.uid "0" }} sudo -E {{ end -}} sh -s -- --yes --bin-dir $HOME/.local/bin
{{ end}}