Re:ZSH Aliases
by diarrhea on Tuesday May 26, 2020 @08:33AM
(#23310299)
This can get you a part of the way, extracted from my PowerShell profile:
These will allow you to autocomplete previous commands from the tidpids you already types, so it no longer searches linearly through the history.
I also use:
[ Parent
| on HN ]
Re:ZSH Aliases
by PhilippGille on Tuesday May 26, 2020 @05:34PM
(#23316681)
Do you happen to have your PowerShell profile in a GitHub Gist or so?
No, but mostly because it is not much longer than the above! Only got started using PowerShell more seriously (thanks to Windows Terminal and WSL) a couple of months ago.
Here is the other content:
# For Agnoster theme, "user@host" will be hidden if user==DefaultUser
$DefaultUser = "<YOUR USERNAME>"
function vim ($File){
bash -c "vim $File"
}
New-Alias pi ipython
# git diff output uses less; it will be buggy without utf8
$env:LESSCHARSET='UTF-8'
# console output, e.g, when writing git diff output to file using pipe: | Out-File
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8