📌  相关文章
📜  oh-my-posh autosuggestions - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:23.287000             🧑  作者: Mango

代码示例1
##
    # 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