News for hackers. Stuff that matters.
Re:Ask HN: Windows Dev Setup? by eatonphil on Wednesday April 20, 2022 @07:21AM (#31095283)
Powershell, Windows Terminal and oh-my-posh get you pretty close to zsh on Linux. I'll comment back with a few more tweaks I had to make to powershell to get closest to the Linux experience.

But my biggest gripe is not having tmux. There are some window/tab/pane management shortcuts in Windows Terminal but they're not as good as tmux (yet).

Re:Ask HN: Windows Dev Setup? by eatonphil on Wednesday April 20, 2022 @08:58AM (#31096203)
Here's my $PROFILE:

    Import-Module PSReadLine
    Set-PSReadLineOption -EditMode Emacs
    Set-PSReadLineOption -HistorySearchCursorMovesToEnd
    Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
    Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
    Set-PSReadLineKeyHandler -Key Tab -Function Complete

    Import-Module posh-git
    Import-Module oh-my-posh
    Set-PoshPrompt -Theme material

    function e { emacs -nw $args }
    function gs { git status $args }
    del alias:gc -Force
    function gc { git commit $args }
    del alias:gp -Force
    function gp { git push -u origin $(git branch --show-current) }
    function python { python3 $args }
Re:Ask HN: Windows Dev Setup? by beart on Wednesday April 20, 2022 @09:42AM (#31096819)
You can also enable predictive intellisense with PSReadLine 2.1+

https://devblogs.microsoft.com/powershell/announcing-psreadl...