Skip to content

Commit

Permalink
bashrc: fix mise shell detection
Browse files Browse the repository at this point in the history
  • Loading branch information
HaleTom committed Jan 22, 2024
1 parent 4776531 commit 1fd5633
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bash/.config/bash/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,12 @@ else
[[ "$-" == *i* ]] && printf "Can't find keychain or ssh-agent/ssh-add in path\n" >&2
fi

# Activate mise https://mise.jdx.dev/getting-started.html
# Activate mise - https://mise.jdx.dev/getting-started.html
# Some IDEs may need $XDG_DATA_HOME/mise/shims in $PATH.
command -v /usr/bin/mise &> /dev/null && eval "$(mise activate "${SHELL##*/}")"
if command -v /usr/bin/mise &> /dev/null; then
sh_is_bash && eval "$(mise activate bash)"
sh_is_zsh && eval "$(mise activate zsh )"
fi

# Install fzf shell files if required
if [[ ! -d $XDG_CONFIG_HOME/fzf ]]; then
Expand Down

0 comments on commit 1fd5633

Please sign in to comment.