diff --git a/Documents/WindowsPowerShell/profile.ps1 b/Documents/WindowsPowerShell/profile.ps1 index 8c67d6d..95a98a6 100644 --- a/Documents/WindowsPowerShell/profile.ps1 +++ b/Documents/WindowsPowerShell/profile.ps1 @@ -1,9 +1,18 @@ +# Disable the annoying bell Set-PSReadlineOption -BellStyle None + +# Quit terminal with Ctrl+D Set-PSReadlineKeyHandler -Key Ctrl+d -Function DeleteCharOrExit -Import-Module posh-git -Import-Module pure-pwsh +# Use PSReadline for history +Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward +Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward +# Aliases New-Alias dc docker-compose New-Alias la Get-ChildItem New-Alias which Get-Command + +# Modules +Import-Module posh-git +Import-Module pure-pwsh