Skip to content

Commit

Permalink
feat: Added suport for fish terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
hensou committed Apr 27, 2022
1 parent c9d407f commit 927fb2d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions set-dotnet-env.fish
@@ -0,0 +1,10 @@
function asdf_update_dotnet_home --on-event fish_prompt
set --local dotnet_path (asdf which dotnet)
if test -n "$dotnet_path"
set --local full_path (realpath "$dotnet_path")
set -gx DOTNET_ROOT (dirname "$full_path")
set --local dotnet_version (dotnet --version)
set -gx MSBuildSDKsPath (realpath "$DOTNET_ROOT/sdk/$DOTNET_VERSION/Sdks")
end
end

0 comments on commit 927fb2d

Please sign in to comment.