mirror of
https://codeberg.org/qwjyh/dotfiles.git
synced 2025-06-27 03:39:20 +09:00
update: pwsh: PSReadLine version & add CompletionPredictor
This commit is contained in:
parent
62e1bff8aa
commit
700fa0ba79
2 changed files with 6 additions and 4 deletions
|
@ -1,11 +1,12 @@
|
|||
# ==============================================================
|
||||
# PSReadLine Settings
|
||||
# ==============================================================
|
||||
Import-Module PSReadLine
|
||||
Set-PSReadLineOption -PredictionSource History
|
||||
Import-Module PSReadLine # >= 2.2.2
|
||||
Import-Module CompletionPredictor
|
||||
Set-PSReadLineOption -PredictionSource HistoryAndPlugin # require PowerShell ≧ 7.2 and PSReadLine ≧ 2.2.2
|
||||
Set-PSReadlineOption -HistoryNoDuplicates
|
||||
Set-PSReadLineOption -DingTone 880 # beep frequency
|
||||
Set-PSReadLineKeyHandler -Chord "Ctrl+f" -Function ForwardWord # like fish
|
||||
Set-PSReadLineKeyHandler -Chord "Ctrl+f" -Function AcceptSuggestion # like fish
|
||||
Set-PSReadLineKeyHandler -Chord "Tab" MenuComplete
|
||||
Set-PSReadLineKeyHandler -Chord "Ctrl+d" DeleteCharOrExit
|
||||
Set-PSReadLineKeyHandler -Chord "Ctrl+g" -ScriptBlock { Invoke-FzfTabCompletion }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue