Skip to content

Commit ba68d8f

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

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
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.3",
3+
"version": "1.0.4",
44
"name": "Mise - mise-en-place version manager",
55
"description": "Installs mise-en-place version manager."
66
}

src/mise/install.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ REQUIRED_PACKAGES="curl sudo ca-certificates"
55
RUBY_BUILD_DEPENDENCIES="autoconf patch build-essential rustc libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libgmp-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev uuid-dev libffi-dev"
66
PYTHON_BUILD_DEPENDENCIES="build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl git libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev"
77

8+
USERNAME="${USERNAME:-"${_REMOTE_USER:-"automatic"}"}"
9+
810
apt_get_update()
911
{
1012
if [ "$(find /var/lib/apt/lists/* | wc -l)" = "0" ]; then
@@ -36,6 +38,12 @@ elif [ -n "\$BASH_VERSION" ]; then
3638
fi
3739
EOF
3840
}
41+
cat >> /home/$USERNAME/.bashrc << EOF
42+
eval "\$(mise activate bash)"
43+
EOF
44+
cat >> /home/$USERNAME/.zshrc << EOF
45+
eval "\$(mise activate zsh)"
46+
EOF
3947

4048
echo "(*) Installing mise-en-place..."
4149

0 commit comments

Comments
 (0)