From e4d224785d3b368c39de0cf6dce6c1f31a4d3e1d Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Wed, 11 Oct 2023 08:28:12 +0200 Subject: [PATCH] fix: install Go --- .chezmoiignore.tmpl | 4 ++++ .chezmoiscripts/run_install_go.sh.tmpl | 2 +- ...fetch.sh.tmpl => run_install_macchina.sh.tmpl} | 4 ++-- .../private_com.knollsoft.Rectangle.plist | Bin 0 -> 710 bytes 4 files changed, 7 insertions(+), 3 deletions(-) rename .chezmoiscripts/{run_install_pfetch.sh.tmpl => run_install_macchina.sh.tmpl} (75%) create mode 100644 private_Library/private_Preferences/private_com.knollsoft.Rectangle.plist diff --git a/.chezmoiignore.tmpl b/.chezmoiignore.tmpl index b3503d3..021e7df 100644 --- a/.chezmoiignore.tmpl +++ b/.chezmoiignore.tmpl @@ -2,4 +2,8 @@ setup.sh {{ if eq .chezmoi.os "darwin" }} */hypr/ +{{ end }} + +{{ if eq .chezmoi.os "linux" }} +*/Library/* {{ end }} \ No newline at end of file diff --git a/.chezmoiscripts/run_install_go.sh.tmpl b/.chezmoiscripts/run_install_go.sh.tmpl index 856e005..fe11752 100644 --- a/.chezmoiscripts/run_install_go.sh.tmpl +++ b/.chezmoiscripts/run_install_go.sh.tmpl @@ -3,6 +3,6 @@ {{- if eq .chezmoi.os "darwin" }} brew install go {{- else if eq .chezmoi.os "linux" }} -{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}rm -rf /usr/local/go || {{ if ne .chezmoi.uid "0" }} sudo {{ end -}}mkdir -p /usr/local/go && curl -L https://go.dev/dl/{{ (gitHubLatestTag "golang/go").Name }}.linux-{{ .chezmoi.arch }}.tar.gz | {{ if ne .chezmoi.uid "0" }} sudo {{ end -}}tar -xz -C /usr/local/ +{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}rm -rf /usr/local/go || {{ if ne .chezmoi.uid "0" }} sudo {{ end -}}mkdir -p /usr/local/go && curl -L https://go.dev/dl/$(curl "https://go.dev/VERSION?m=text" | head -n 1).linux-{{ .chezmoi.arch }}.tar.gz | {{ if ne .chezmoi.uid "0" }} sudo {{ end -}}tar -xz -C /usr/local/ {{- end }} {{- end }} \ No newline at end of file diff --git a/.chezmoiscripts/run_install_pfetch.sh.tmpl b/.chezmoiscripts/run_install_macchina.sh.tmpl similarity index 75% rename from .chezmoiscripts/run_install_pfetch.sh.tmpl rename to .chezmoiscripts/run_install_macchina.sh.tmpl index b8adef5..95cc4f0 100644 --- a/.chezmoiscripts/run_install_pfetch.sh.tmpl +++ b/.chezmoiscripts/run_install_macchina.sh.tmpl @@ -5,9 +5,9 @@ brew install macchina {{- else if eq .chezmoi.os "linux" }} {{- 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/v{{ (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" }} -{{ if ne .chezmoi.uid "0" }} sudo {{ end -}}curl -LO /usr/local/bin/macchina https://github.com/Macchina-CLI/macchina/releases/download/v{{ (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 }} chmod +x /usr/local/bin/macchina {{- end }} diff --git a/private_Library/private_Preferences/private_com.knollsoft.Rectangle.plist b/private_Library/private_Preferences/private_com.knollsoft.Rectangle.plist new file mode 100644 index 0000000000000000000000000000000000000000..6649e35056c56a3826ecc45cf76588ac154d939f GIT binary patch literal 710 zcmZ9H-)<5?6vk(Uwt}s?ZmozCL^SnJ7lrbtjdv8OZA9C+twsph47+Dx?XrV2v$1M6 z>9tSc6Zin$d*=n=1^OVy#D#LPVQx---#K&6_jQM^BV?g)t|*wq78aK-#S@p8SFT*W zrd+?7ynQE~&fI&DUVr>#LuBkn7xJj@aI0m4CxP!#*EST@rJf~BIt1OL z!x{%F3}yX|u1hL?u`gkeJ>*~m=U`Y>~jFw3zW;JYsE31v}5D+rCo>aEn;Tq|ZMXYGpiEl17C&fN1-InYWGE>;7r z9N|(i(25Z*RsyXW zXCFSAm-C~yTU7;*P#kTbDypF-qUbyNfqtT2=r=k?fAJDlaRzVW9sCj>;0`vhg#mxW ur}!)WM+k|L1(G01k|G(Rk*DMtDUb@OlLpx(`{WgxK7ubQ%FpVokmi2`-qXSW literal 0 HcmV?d00001