Windows Add Custom Command Line in Windows Terminal
Windows

Add Custom Command Line in Windows Terminal

Add Custom Command Line in Windows Terminal

Through Windows Terminal, Windows is trying to bring all the Command-line based utilities under one UWP shell. This includes Windows Command Prompt as well as Windows PowerShell. But not just that, if someone wishes, they can also add another command-line tool like Anaconda command line, Git Bash, WSL command lines, and so on. Here is an article that will help you add Custom Command Line in Windows Terminal.

Add Custom Command Line in Windows Terminal

Add Custom Command Line in Windows Terminal

For adding a Custom Command Line in Windows terminal, one will have to Configure the JSON File for Windows Terminal Manually.

  • For this, begin with copying the block code which has been highlighted below.
{

            "acrylicOpacity" : 0.5,

            "background" : "#012456",

            "closeOnExit" : true,

            "colorScheme" : "Campbell",

            "commandline" : "<PATH>",

            "cursorColor" : "#FFFFFF",

            "cursorShape" : "bar",

            "fontFace" : "Consolas",

            "fontSize" : 10,

            "guid" : "{GUID IS HERE}",

            "historySize" : 9001,

            "icon" : "ms-appx:///ProfileIcons/{GUID IS HERE}.png",

            "name" : "<NAME>",

            "padding" : "0, 0, 0, 0",

            "snapOnInput" : true,

            "startingDirectory" : "%USERPROFILE%",

            "useAcrylic" : false

        },
  • Then, paste this code in the ‘Profiles’ block in the JSON file that we mentioned earlier.
  • Now create a Custom GUID For your command line.
  • Then create a new GUID for your application here.
  • Next, you will have to copy that newly created GUID in the code snippet that has been given above.
  • Now make some nominal changes like the App name and Icon customization in the code snippet.
  • Then enter the path for the executable file of the new command line in the ‘command line’ element of the code block that you copied from above in the given JSON File and then save the file.
  • Then relaunch the Windows terminal to find the newly added command line all set to launch from the arrow key.

Turbo C++ is the basic and most popular IDE for C++ coding all over the world. This is the improved version of Turbo C because it implements function overloading which was implemented in Turbo C. User can also write C language in Turbo C++.

For more Windows related articles, go to Windows.

Hope the article was useful. Comment down for any sort of queries or doubts. We will be glad to help you all.

Keep Visiting 🙂

About the author

Deshmukh kshitija

Add Comment

Click here to post a comment