Configuring Cmder.exe

Aliases

Use $t to chain multiple commands in an alias.

The below alias changes the current directory to the desktop and forces into C: partition if required

alias desktop=cd C:\Users\<USER>\Desktop $t C:

Use $* for args

Also accepts $1, $2 etc.

alias ls=ls --color $*

Cmder.exe & VS Code

As of 2021, use the below settings:

"terminal.integrated.profiles.windows": {
    "Cmder": {
      "path": "${env:windir}\\System32\\cmd.exe",
      "args": ["/k", "C:\\cmder\\vendor\\bin\\vscode_init.cmd"]
    }
  },
  "terminal.integrated.defaultProfile.windows": "Cmder",

source: stackoverflow

Other

Note: add %CMDER_ROOT% to environment variables, value = path add %ConEmuDir%, C:\tools\Cmder\vendor\conemu-maximus5

alias hs=hugo serve -D

Related