From 18e44cc51d2660ed738af2ff6c1b1820679e64e7 Mon Sep 17 00:00:00 2001 From: shenjack-mac <3695888@qq.com> Date: Sat, 21 Oct 2023 01:23:11 +0800 Subject: [PATCH] add ctrl+d to PSreadline --- PowerShell/Microsoft.PowerShell_profile.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PowerShell/Microsoft.PowerShell_profile.ps1 b/PowerShell/Microsoft.PowerShell_profile.ps1 index 21a83b2..f205fa3 100644 --- a/PowerShell/Microsoft.PowerShell_profile.ps1 +++ b/PowerShell/Microsoft.PowerShell_profile.ps1 @@ -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 # 设置向下键为前向搜索历史纪录