X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/blobdiff_plain/784979f247fc98fbcaf561a4f98785a8dc9d8fb4..f338ccb2d9d53c127649a34c8ae73b9365a58d2f:/Microsoft.PowerShell_profile.ps1 diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 index 12bb500..64fd37c 100644 --- a/Microsoft.PowerShell_profile.ps1 +++ b/Microsoft.PowerShell_profile.ps1 @@ -16,7 +16,10 @@ $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 -eq "") { + # Bootstrap for older PowerShell + $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 @@ -54,22 +57,12 @@ function Export-VSCodeExtensions { } -# Aliases for Minion -if($IsWindows){ - New-Alias mn c:\src\minion\mn.ps1 -}else{ - New-Alias mn ~/src/minion/mn.ps1 -} - -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 +. C:\src\minion\minion_ps_alias.ps1 +cd c:\src