From ffc4d6fbb26f0a711f0891ef1e661cf890f4e355 Mon Sep 17 00:00:00 2001 From: Christopher Pfohl Date: Thu, 8 Aug 2024 15:36:49 -0400 Subject: [PATCH] Add .dotnet tools to PATH When using `dotnet` with installed global tools this enables users to use any installed tools (`dotnet-trace` for instance) without having to manage the PATH. --- plugins/dotnet/dotnet.plugin.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/dotnet/dotnet.plugin.zsh b/plugins/dotnet/dotnet.plugin.zsh index ed7c55024..5d7397355 100644 --- a/plugins/dotnet/dotnet.plugin.zsh +++ b/plugins/dotnet/dotnet.plugin.zsh @@ -1,4 +1,7 @@ -# This scripts is copied from (MIT License): +# Enable usage of global dotnet tools. +export PATH="$PATH:$HOME/.dotnet/tools/" + +# This script is copied from (MIT License): # https://raw.githubusercontent.com/dotnet/sdk/main/scripts/register-completions.zsh #compdef dotnet