add ctrl+d to PSreadline

This commit is contained in:
shenjack-mac 2023-10-21 01:23:11 +08:00
parent 8005536fcc
commit 18e44cc51d

View File

@ -12,6 +12,8 @@ Set-PSReadLineOption -BellStyle None
Set-PSReadlineKeyHandler -Key Tab -Function Complete
# 设置 Ctrl+z 为撤销
Set-PSReadLineKeyHandler -Key "Ctrl+z" -Function Undo
# 设置 Ctrl+d 为菜单补全和 Intellisense
Set-PSReadLineKeyHandler -Key "Ctrl+d" -Function MenuComplete
# 设置向上键为后向搜索历史记录
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
# 设置向下键为前向搜索历史纪录