Skip to content

Instantly share code, notes, and snippets.

@GabeDuarteM
Last active June 10, 2019 14:02
Show Gist options
  • Save GabeDuarteM/8273976ab0b7c5ff267b1c60ca79889b to your computer and use it in GitHub Desktop.
Save GabeDuarteM/8273976ab0b7c5ff267b1c60ca79889b to your computer and use it in GitHub Desktop.
Integrating cmder

Cmder config

Create a file named initInExternalTerminal.bat on cmder's root, containing the following:

@echo off
REM The following CMDER_ROOT must have the complete path to the cmder folder, 
REM like "C:\Users\gabriel\Documents\Cmder"
SET CMDER_ROOT=PATH/TO/THE/CMDER/FOLDER
"%CMDER_ROOT%\vendor\init.bat"

Hyper config

Open hyper's settings (ctrl+,) and put the following configs:

shell: "",
// for setting shell arguments (i.e. for using interactive shellArgs: ['-i'])
// by default ['--login'] will be used
shellArgs: [
  "/K",
  "PATH/TO/THE/initInExternalTerminal.bat/FILE"
],

Remember to replace "PATH/TO/THE/initInExternalTerminal.bat/FILE" with the file created at the Cmder config step.

There it is, just open hyper's terminal, and you should see cmder's shell, instead of the default cmd.

Cmder config

Create a file named initInExternalTerminal.bat on cmder's root, containing the following:

@echo off
REM The following CMDER_ROOT must have the complete path to the cmder folder, 
REM like "C:\Users\gabriel\Documents\Cmder"
SET CMDER_ROOT=PATH/TO/THE/CMDER/FOLDER
"%CMDER_ROOT%\vendor\init.bat"

VSCode config

Open vscode's settings (ctrl+,) and put the following configs:

"terminal.integrated.shell.windows": "C:\\WINDOWS\\sysnative\\cmd.exe",
  "terminal.integrated.shellArgs.windows": [
    "/K",
    "PATH/TO/THE/initInExternalTerminal.bat/FILE"
  ],

Remember to replace "PATH/TO/THE/initInExternalTerminal.bat/FILE" with the file created at the Cmder config step.

There it is, just open vscode's terminal, and you should see cmder's shell, instead of the default cmd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment