Windows terminal

169 阅读1分钟

default setting file

  • Terminal (stable / general release): %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json
  • Terminal (preview release): %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\LocalState\settings.json
  • Terminal (unpackaged: Scoop, Chocolately, etc): %LOCALAPPDATA%\Microsoft\Windows Terminal\settings.json

add nushell profile to setting.json

in Windows Terminal (opens new window)you can set nu as your default shell by adding:

{
  "guid": "{2b372ca1-1ee2-403d-a839-6d63077ad871}",
  "hidden": false,
  "name": "Nu Shell",
  "commandline": "nu.exe"
}

to "profiles" in your Terminal Settings (JSON-file). The last thing to do is to change the "defaultProfile" to:

"defaultProfile": "{2b372ca1-1ee2-403d-a839-6d63077ad871}",

Now, nu should load on startup of the Windows Terminal.