-
Setup:
#!{{ lookPath "sh" }}
{{- if not (eq (lookPath "fish") (env "SHELL")) }}
{{- if lookPath "chsh" }}
chsh -s {{ lookPath "fish" }}
{{- if .superuserAccess }}
{{ .superuserAccess }} chsh -s {{ lookPath "fish" }}
{{- end }}
{{- else }}
{{- /* todo */}}
{{- end }}
{{- end }}
{{- if lookPath "brew" }}
brew bundle install
{{- end }} I'd like to use this script to set up my env e.g. shell thus it only needs to run once. #!/bin/sh
brew bundle install Help would be much appreciated! |
Beta Was this translation helpful? Give feedback.
Answered by
twpayne
May 16, 2025
Replies: 1 comment 1 reply
-
The name needs to be longer. It needs to start with |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
j-lakeman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The name needs to be longer. It needs to start with
run_once_
. Notice the extra_
afteronce
.