From 1fd5633a459f2132fdac9e86cd3e0c2ad5429033 Mon Sep 17 00:00:00 2001 From: "Tom \"Ravi\" Hale" Date: Mon, 22 Jan 2024 22:29:02 +0700 Subject: [PATCH] bashrc: fix mise shell detection --- bash/.config/bash/bashrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bash/.config/bash/bashrc b/bash/.config/bash/bashrc index d55c56e..515d95f 100644 --- a/bash/.config/bash/bashrc +++ b/bash/.config/bash/bashrc @@ -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