fix: macchina & starship install
This commit is contained in:
parent
87d1b84cb8
commit
0c400a67ec
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ brew install macchina
|
|||
{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}mkdir -p /usr/local/bin
|
||||
{{- if eq .chezmoi.arch "amd64" }}
|
||||
{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}curl -Lo /usr/local/bin/macchina https://github.com/Macchina-CLI/macchina/releases/download/{{ (gitHubLatestRelease "Macchina-CLI/macchina").TagName }}/macchina-linux-x86_64
|
||||
{{- else if .chezmoi.arch "arm64" }}
|
||||
{{- else if eq .chezmoi.arch "arm64" }}
|
||||
{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}curl -Lo /usr/local/bin/macchina https://github.com/Macchina-CLI/macchina/releases/download/{{ (gitHubLatestRelease "Macchina-CLI/macchina").TagName }}/macchina-linux-aarch64
|
||||
{{- end }}
|
||||
{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}chmod +x /usr/local/bin/macchina
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{ 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
|
||||
mkdir -p $HOME/.local/bin && curl -sS https://starship.rs/install.sh | sh -s -- --yes --bin-dir $HOME/.local/bin
|
||||
{{ end}}
|
Loading…
Reference in a new issue