X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/38d438278a7459868dc4dc4690bff0d482c0f003..0a4c364e0a06e4ed4d6afa678e01b596be2964d3:/Microsoft.PowerShell_profile.ps1 diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 762f12b..e0c2494 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -16,6 +16,7 @@ $env:PSModulePath = $env:PSModulePath.Replace("\\ad.uillinois.edu\techsvc\home\$ $ENV:PATH +=":/home/delaport/development/flutter/bin" # Flutter in Kali under WSL # Some Paths that are annoying to find/restore if the installer fails +$IsWindows = ($env:OS -eq "Windows_NT") if($IsWindows){ $ENV:PATH+=";C:\Program Files\Microsoft VS Code\bin" # One Editor to rule them all $ENV:PATH+=";C:\Program Files\Python38\Scripts\;C:\Program Files\Python38\" # Python latest as of 2019 December @@ -53,7 +54,12 @@ function Export-VSCodeExtensions { } -# Aliases for Minion -New-Alias mn ~/src/minion/mn.ps1 -New-Alias today "/usr/bin/vim $(mn -today)" +# 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 + +. C:\src\minion\minion_ps_alias.ps1 + +cd c:\src