「Windows」- CMD, PowerShell, Terminal

  CREATED BY JENKINSBOT

修改 Windows Terminal 配置

默认 cmd.exe 终端

Is there a way to change the default shell in Windows Terminal? – Super User

在设置中,将提示编辑 .json 配置文件,修改配置文件的 defaultProfile 字段为 “{0caa0dad-35be-5f56-a8ff-afceeeaa6101}” 参数(这是 profiles[].guid 的值,正是 cmd 配置)。最后,重启 Windows Terminal 程序。

恢复默认配置

Enhance your Console Experience with Windows Terminal

我们启用最大化焦点,导致无法显示设置。我们不知道其他设置方法,只能通过重置配置。

%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json
C:\Users\Administrator\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json

命令行启动程序(cmd)

How to Run an EXE File From Command Prompt: 10 Steps

start "C:\Program Files (x86)\Foxit Software\Foxit Reader" FoxitReader.exe

命令自动补全

Windows Terminal/Powershell Intellisense – Stack Overflow

PowerShell

Install-Module -Name PSReadLine -RequiredVersion 2.1.0