]> us-delaporte.pagekite.me Git - dotfiles.git/blobdiff - Microsoft.PowerShell_profile.ps1
Script to install Minion
[dotfiles.git] / Microsoft.PowerShell_profile.ps1
index 762f12bc78f94f3fe26303a073033bf7a9db1ce3..e0c2494cff86d3ff19180b9abde1fbcec9d12bf6 100644 (file)
@@ -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