From 784979f247fc98fbcaf561a4f98785a8dc9d8fb4 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Thu, 28 Jan 2021 11:37:03 -0600 Subject: [PATCH] Profile updates - mainly --- .gitignore | 3 ++- Microsoft.PowerShell_profile.ps1 | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 81ad23c..efb16e9 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ DONE.md env/* *.json OneTrust.ipynb -*.conf \ No newline at end of file +*.conf +*.*~ diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 18c7f9a..12bb500 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -62,6 +62,14 @@ if($IsWindows){ } function New-JournalToday() { + # gvim "$(mn -today)" vim "$(mn -today)" } New-Alias today New-JournalToday + +# Linux-like up/down in shell +Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward +Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward +Set-PSReadlineOption -HistorySavePath c:\temp\PSHistory.log + + -- 2.47.3