Skip to content

Real-time command-line editor for Windows Terminal settings

License

Notifications You must be signed in to change notification settings

BlackPhlox/wt-editor-cli

Repository files navigation

What is wt-editor-cli?

A command line editor for realtime updating of Windows Terminal settings

wt-editor-cli-showcase

Info
Build release
GitHub GitHub version
NPM npm version
Downloads npm
Twitter Twitter Follow

Related repositories

Prerequisites

  • Running Windows 1903 (build >= 10.0.18362.0) or later
  • Have the latest version of Windows Terminal (Preview) installed
  • Have Node.js 12 installed or later
  • Have npm (Comes with Node.js)

Setup

  • Clone this repo git clone https://github.com/BlackPhlox/wt-editor-cli.git or
    using npm install -g wt-editor-cli
  • (Important) If you already have configured your settings.json, I highly recommend you backup your file, just in case. The file can be found here: %appdata%\..\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\
  • Go into the downloaded folder cd wt-editor-cli if via git and %appdata%\npm\node_modules\wt-editor-cli if via npm
  • Run setup.bat
  • Run wte

Additionally step

  • If you are running using the Linux-Subsystem you can add alias wte='cmd.exe /c wte' in your ~/.bashrc file.

Configuration

When setup.bat has run, a config.json file has been generated. There is currently only 3 properties you can change: assetPath(cli-explorer-selector's default path), questionColor and errorColor (Both is parsed using chalk):

{ 
   "jsonPath":"(Your appdata path)/../Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState/settings.json", 
   "assetPath":"(Your appdata path)/../Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/RoamingState", 
   "questionColor":"lightgray", 
   "errorColor":"red" 
} 

Contribution

Any contribution is appreciated, their are no formalities, just create a pull request.

Creating Pull Requests

Push your commit to get it back up to your fork: git push origin HEAD Visit Github, click handy “Pull request” button that it will make upon noticing your new branch.