News for hackers. Stuff that matters.
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...