pwsh7 tab键下拉菜单智能提示

时间:2021-09-05 17:43:22   收藏:0   阅读:17
技术分享图片 技术分享图片 技术分享图片

基于PSReadLine 得智能提示, tab健下拉菜单
下载依赖
Install-Module -Name GuiCompletion
注册tab按键
Install-GuiCompletion -Key Tab
或者自定义按键
Set-PSReadlineKeyHandler -Key Alt+Spacebar -ScriptBlock { Invoke-GuiCompletion }

更改$profile里的$GuiCompletionConfig调整弹窗样式

$GuiCompletionConfig

Colors                : @{TextColor=DarkMagenta;
                        BackColor=White;
                        SelectedTextColor=White;
                        SelectedBackColor=DarkMagenta;
                        BorderTextColor=DarkMagenta;
                        BorderBackColor=White;
                        BorderColor=DarkMagenta;
                        FilterColor=DarkMagenta}
DoubleBorder          : True
MinimumTextWidth      : 25
FastScrollItemCount   : 10
AutoReturnSingle      : True
ScrollDisplayDown     : False
DotComplete           : True
AutoExpandOnDot       : True
BackSlashComplete     : True
AutoExpandOnBackSlash : True
CustomComplete        : True
CustomCompletionChars :  ()[]:


原文:https://www.cnblogs.com/whiter001/p/15226132.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!