diff --git a/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 b/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 index 0d106f8..3bb4443 100644 --- a/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 +++ b/roles/home-cli/files/Microsoft.PowerShell_profile.ps1 @@ -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() diff --git a/roles/home-cli/files/profile b/roles/home-cli/files/profile index 74aaa1e..83a70a2 100644 --- a/roles/home-cli/files/profile +++ b/roles/home-cli/files/profile @@ -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"