Procházet zdrojové kódy

feat: prefer mise shims for dev tools if available

Kyle P Davis před 6 měsíci
rodič
revize
1a46afeb8d
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  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