Skip to content

Commit 890d608

Browse files
committed
[FIX] trying to fix a problem with mise under bash and zsh #2
1 parent ba68d8f commit 890d608

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/mise/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "mise",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"name": "Mise - mise-en-place version manager",
55
"description": "Installs mise-en-place version manager."
66
}

src/mise/install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ elif [ -n "\$BASH_VERSION" ]; then
3838
fi
3939
EOF
4040
}
41-
cat >> /home/$USERNAME/.bashrc << EOF
41+
chmod a+x /etc/profile.d/mise.sh
42+
cat >> $_REMOTE_USER_HOME/.bashrc << EOF
4243
eval "\$(mise activate bash)"
4344
EOF
44-
cat >> /home/$USERNAME/.zshrc << EOF
45+
cat >> $_REMOTE_USER_HOME/.zshrc << EOF
4546
eval "\$(mise activate zsh)"
4647
EOF
4748

0 commit comments

Comments
 (0)