Skip to content

Commit 1f3d3c3

Browse files
committed
Run bootstrap in an isolated zsh environment
1 parent 9a484f6 commit 1f3d3c3

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

mise.toml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ tap_to_click = true
1717
[bootstrap.user]
1818
login_shell = "/opt/homebrew/bin/zsh"
1919

20-
[env]
21-
_.path = ["/opt/homebrew/bin", "/opt/homebrew/sbin", "./bin"]
22-
2320
[tools]
2421
"github:afadesigns/zshellcheck" = "1.7.1"
2522
"github:goss-org/goss" = "0.4.9"
@@ -34,7 +31,16 @@ zizmor = "1.26.1"
3431

3532
[tasks.bootstrap]
3633
run = [
37-
"chezmoi apply",
34+
'''
35+
env -i \
36+
HOME="$HOME" \
37+
HOMEBREW_PREFIX="${HOMEBREW_PREFIX:-/opt/homebrew}" \
38+
GITHUB_ACTIONS="${GITHUB_ACTIONS:-}" \
39+
/bin/zsh --no-rcs -s -- "$@" << 'EOF'
40+
eval "$(/usr/libexec/path_helper -s)"
41+
path=("$HOMEBREW_PREFIX/bin"(N-/) "$HOMEBREW_PREFIX/sbin"(N-/) $path)
42+
chezmoi apply --verbose
43+
''',
3844
]
3945

4046
[tasks.zsh-bench]

0 commit comments

Comments
 (0)