diff options
author | Florian Maunier | 2021-05-27 11:36:58 +0200 |
---|---|---|
committer | Florian Maunier | 2021-05-27 11:36:58 +0200 |
commit | 28592b1e2fccac4d64369f1824945555d8ff188e (patch) | |
tree | 128a06812e9b42a3ba0b7c5c045857fbfd46249d /dotnet.sh | |
parent | 3cce7df7fa3d1c1e0b329b8c9f832da50830996c (diff) | |
download | aur-28592b1e2fccac4d64369f1824945555d8ff188e.tar.gz |
Add profile.d script, add completions for bash, fish and zsh
Diffstat (limited to 'dotnet.sh')
-rw-r--r-- | dotnet.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dotnet.sh b/dotnet.sh new file mode 100644 index 000000000000..fcc0bfd11dd4 --- /dev/null +++ b/dotnet.sh @@ -0,0 +1,12 @@ +# Set location for AppHost lookup +[ -z "$DOTNET_ROOT" ] && export DOTNET_ROOT=/usr/share/dotnet + +# Add dotnet tools directory to PATH +DOTNET_TOOLS_PATH="$HOME/.dotnet/tools" +case "$PATH" in + *"$DOTNET_TOOLS_PATH"* ) true ;; + * ) PATH="$PATH:$DOTNET_TOOLS_PATH" ;; +esac + +# Extract self-contained executables under HOME to avoid multi-user issues from using the default '/var/tmp' +[ -z "$DOTNET_BUNDLE_EXTRACT_BASE_DIR" ] && export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME:-"$HOME"/.cache}/dotnet_bundle_extract" |