Look for system dotnet directory
This commit is contained in:
parent
79c6675978
commit
5dc0957ed1
2 changed files with 9 additions and 1 deletions
|
@ -96,6 +96,8 @@ $OutputEncoding = [System.Text.Encoding]::UTF8
|
|||
|
||||
Set-PSReadLineOption -BellStyle None
|
||||
Set-PSReadLineOption -EditMode Emacs
|
||||
Set-PSReadLineOption -HistorySaveStyle SaveNothing
|
||||
|
||||
Set-PSReadLineKeyHandler -Key Tab -Function Complete
|
||||
Set-PSReadLineKeyHandler -Key UpArrow -ScriptBlock {
|
||||
[Microsoft.PowerShell.PSConsoleReadLine]::HistorySearchBackward()
|
||||
|
|
|
@ -38,7 +38,6 @@ export ANSIBLE_NOCOWS=1
|
|||
export BLOCKSIZE=K
|
||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
export DOTNET_NOLOGO=1
|
||||
export DOTNET_ROOT="$HOME/.dotnet" # https://aka.ms/dotnet/download
|
||||
export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
|
||||
export ENV="$HOME/.shrc"
|
||||
export FOSSIL_USER=${USER:-${LOGNAME:-${USERNAME:-root}}}
|
||||
|
@ -51,6 +50,13 @@ export POWERSHELL_UPDATE_CHECK=LTS
|
|||
export PYTHONWARNINGS=ignore::UserWarning
|
||||
export VIRSH_DEFAULT_CONNECT_URI=qemu:///session
|
||||
|
||||
if [ -d /usr/lib64/dotnet ]
|
||||
then
|
||||
export DOTNET_ROOT="/usr/lib64/dotnet" # DNF package
|
||||
else
|
||||
export DOTNET_ROOT="$HOME/.dotnet" # https://aka.ms/dotnet/download
|
||||
fi
|
||||
|
||||
if ! [ -x "$HOME/data" ]
|
||||
then
|
||||
install -d -m 0700 "$HOME/data"
|
||||
|
|
Loading…
Reference in a new issue