From 511cc4cf54cee6570227f57a54f85e6f447409f5 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Fri, 26 Jan 2024 10:44:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E6=98=AFMenuComplete=20=E5=A5=BD?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PowerShell/Microsoft.PowerShell_profile.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerShell/Microsoft.PowerShell_profile.ps1 b/PowerShell/Microsoft.PowerShell_profile.ps1 index 58da524..143545e 100644 --- a/PowerShell/Microsoft.PowerShell_profile.ps1 +++ b/PowerShell/Microsoft.PowerShell_profile.ps1 @@ -8,11 +8,11 @@ Set-PSReadLineOption -EditMode Windows Set-PSReadLineOption -PredictionViewStyle ListView Set-PSReadLineOption -BellStyle None # 设置 Tab 键补全 -Set-PSReadlineKeyHandler -Key Tab -Function Complete +Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete # 设置 Ctrl+z 为撤销 Set-PSReadLineKeyHandler -Key "Ctrl+z" -Function Undo # 设置 Ctrl+d 为菜单补全和 Intellisense -Set-PSReadLineKeyHandler -Key "Ctrl+d" -Function MenuComplete +# Set-PSReadLineKeyHandler -Key "Ctrl+d" -Function MenuComplete # 设置向上键为后向搜索历史记录 Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward # 设置向下键为前向搜索历史纪录