Skip to content

Cmder Cheatsheet#

Setup#

  • set CMDER environment variables
Batchfile
setx CMDER_ROOT         C:/tools/cmdermini
setx ConEmuDir          C:/tools/cmdermini/vendor/conemu-maximus5
setx CMDER_USER_CONFIG  "%USERPROFILE%/cmder_config"
  • user_profile.cmd: add utf8 support
Batchfile
chcp 65001 
  • check unicode
Batchfile
ConEmuC -CheckUnicode
cmd /c %ConEmuDir%/ConEmu/Addons/utf-8-test.cmd
  • git status is abysmal on windows; disable the cmder from using it by adding to git config
INI
[cmder]
status    = false  # Opt out of Git status for 'ALL' Cmder supported shells.
cmdstatus = false  # Opt out of Git status for 'Cmd.exe' shells.
psstatus  = false  # Opt out of Git status for 'Powershell.exe and 'Pwsh.exe' shells.
shstatus  = false  # Opt out of Git status for 'bash.exe' shells.

VSCode#

  • vscode_init_args.cmd: user profile script to configure vscode terminal
  • called by cmdermini\vendor\bin\vscode_init.cmd which looks in %cmder_user_bin%\vscode_init_args.cmd or %CMDER_ROOT%\bin\vscode_init_args.cmd