From a92243688a46e3a719e52f5b2edb347df00f3516 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 9 Sep 2022 12:40:34 -0400 Subject: [PATCH] Add basic powershell profile --- .../Microsoft.PowerShell_profile.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 diff --git a/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 b/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 new file mode 100644 index 0000000..98214e9 --- /dev/null +++ b/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 @@ -0,0 +1,11 @@ +Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete +Set-PSReadLineOption -EditMode Emacs + +Function ecn { emacsclient -c -n @args } +New-Alias et ecn + +# Chocolatey profile +$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" +if (Test-Path($ChocolateyProfile)) { + Import-Module "$ChocolateyProfile" +}