win11配置

262 阅读1分钟

命令预测补全

  1. shell安装Install-Module -Name PSReadLine完成 Get-PSReadLineOption查看选项
  2. 终端输入if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }存在 True
  3. 终端输入code $PROFILE 会打开一个文件C:\Users\user\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
  4. 输入内容 Set-PSReadLineOption -PredictionSource History 保存即可

右键目录展开

  1. 在终端输入regedit打开注册表
  2. 计算机\HKEY_CURRENT_USER\Software\Classes\CLSID目录下右键新建项名称{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}在此目录下新建InprocServer32目录下会有个默认文件
  3. 重启文件管理器