fix: macchina & starship install

This commit is contained in:
Peter 2023-12-21 15:21:05 +01:00
parent 87d1b84cb8
commit 0c400a67ec
Signed by: prskr
GPG key ID: F56BED6903BC5E37
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ brew install macchina
{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}mkdir -p /usr/local/bin {{ if ne .chezmoi.uid "0" }} sudo {{ end -}}mkdir -p /usr/local/bin
{{- if eq .chezmoi.arch "amd64" }} {{- 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 {{ 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 {{ 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 }} {{- end }}
{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}chmod +x /usr/local/bin/macchina {{ if ne .chezmoi.uid "0" }} sudo {{ end -}}chmod +x /usr/local/bin/macchina

View file

@ -1,5 +1,5 @@
{{ if (lookPath "starship" | not)}} {{ if (lookPath "starship" | not)}}
#!/bin/bash #!/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}} {{ end}}