Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

oh-my-posh autosuggestions

    ##
    # PSReadLine, see https://github.com/PowerShell/PSReadLine
    ##

    ## behaviour of Tab key autocomplete
    Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
    ## From docs:
    ## With these bindings, up arrow/down arrow will work like PowerShell/cmd if the
    ## current command line is blank. If you've entered some text though, it will
    ## search the history for commands that start with the currently entered text.
    ##
    ## Like zsh completion.
    Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
    Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
Source by news.ycombinator.com #
 
PREVIOUS NEXT
Tagged: #autosuggestions
ADD COMMENT
Topic
Name
3+6 =