Skip to content

Commit 4cdcf47

Browse files
run bootstrap mise install and init in an interactive login shell
1 parent 9425e96 commit 4cdcf47

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dotfiles/.bootstrap.zsh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,23 @@
11
#!/usr/bin/env zsh
22

3+
# Hint to commands that they should keep their output simple.
34
export TERM=dumb
5+
6+
# Share mise cache with the host.
47
mkdir -p /mnt/home/.cache/mise
58
rm -rf $HOME/.cache/mise
69
ln -s -t ~/.cache /mnt/home/.cache/mise
10+
11+
# Trust the mise configs in the dev container.
712
mise trust --yes --all
13+
14+
# Install tools and run init tasks inside an interactive login shell.
15+
zsh -l -i -c '
816
mise use --yes --global usage
917
mise install --yes
1018
mise run --continue-on-error --no-cache "init:**"
19+
'
20+
21+
# This script should always succeed, even if the last command exits with a
22+
# non-zero status code.
1123
true

0 commit comments

Comments
 (0)