Skip to content

Commit

Permalink
profile: load mise shim for IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
yous committed Nov 7, 2024
1 parent cfb999b commit fb80ac3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions profile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,21 @@ if [ -d "$HOME/.cargo" ]; then
add_to_path_once "$HOME/.cargo/bin"
fi

# Load mise
if command -v mise >/dev/null; then
if [ -n "$BASH_VERSION" ]; then
eval "$(mise activate bash --shims)"
elif [ -n "$ZSH_VERSION" ]; then
eval "$(mise activate zsh --shims)"
fi
elif [ -e "$HOME/.local/bin/mise" ]; then
if [ -n "$BASH_VERSION" ]; then
eval "$("$HOME/.local/bin/mise" activate bash --shims)"
elif [ -n "$ZSH_VERSION" ]; then
eval "$("$HOME/.local/bin/mise" activate zsh --shims)"
fi
fi

# Load rbenv
if [ -e "$HOME/.rbenv" ]; then
add_to_path_once "$HOME/.rbenv/bin"
Expand Down

0 comments on commit fb80ac3

Please sign in to comment.