pwsh7 tab键下拉菜单智能提示

pwsh7 tab键下拉菜单智能提示 pwsh7 tab键下拉菜单智能提示 pwsh7 tab键下拉菜单智能提示

基于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 :  ()[]:


上一篇:并发编程——多个线程交替打印


下一篇:effective C++——限制类所能产生的对象数量