Просмотр исходного кода

feat: prefer mise shims for dev tools if available

Kyle P Davis 8 месяцев назад
Родитель
Сommit
1a46afeb8d
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      .profile

+ 3 - 0
.profile

@@ -78,6 +78,9 @@ else
 	setopt HIST_IGNORE_SPACE # ignore if leading space
 fi
 
+# Enable auto-switching by adding mise-aware tool shims to PATH (which resolves tool versions lazily and avoids issues caused by other approaches)
+! has_bin mise  ||  export PATH="$HOME/.local/share/mise/shims:$PATH"
+
 # Custom shell aliases
 if [ "$OS" = "Darwin" ]; then
 	export CLICOLOR=1