cmder
Portable console emulator for Windows.
Download and install
- Head over to the cmder website and download the full version.
- Extract the zip directly into your
C:/so that the path resemblesc:/cmder
cmder in Visual Studio Code
- In Visual Studio Code press
ctrl+,, in the top left click the JSON icon - Paste at the end of your config:
json
"terminal.integrated.defaultProfile.windows": "Cmder",
"terminal.integrated.profiles.windows": {
"Cmder": {
"args": [
"/k",
"C:\\cmder\\vendor\\bin\\vscode_init.cmd"
],
"path": "${env:windir}\\System32\\cmd.exe"
}
}Autosuggestions with updated Clink
To activate autosuggestions in the CLI we need to update the version of clink bundled with cmder to a fork.
- Download the clink fork from the website (make sure to get the first zip not the setup exe)
- Close cmder and Visual Studio Code instances running cmder
- Extract the files from the zip into your cmder bin folder
C:\cmder\vendor\clink - Start cmder and run
clink set autosuggest.enable true
Now when you begin to type you should have autocomplete suggestions, press the right arrow to accept the suggestion. For suggestion completion type the beginning of a command and press ctrl+space
Agnoster-like theme installation
- Head over to the instructions site
- Download the AnonymousPro font and install
- Download the LUA files for cmder here
- Extract the files inside
c:/cmder/config - Go to cmder Settings > Main
- Choose Main console font to be what you prefer, I like Fira code
- Choose Alternative Font to be Anonymice Powerline
- Modify the value of Unicode ranges to add :
E0A0; E0B0; - Save settings
Using cmder in Windows terminal
- Download Windows terminal
- In a separate powershell or cmdline type the
New-Guidcommand and copy the result - Open windows terminal up and right click the task bar > settings > Open JSON file
- Under
profileslistsPaste
json
{
"commandline": "cmd.exe /k %CMDER_ROOT%\\vendor\\init.bat",
"font":
{
"face": "Fira Code"
},
"guid": "[paste the guid generated earlier]",
"icon": "%CMDER_ROOT%\\icons\\cmder.ico",
"name": "Cmder",
"startingDirectory": "[your projects folder]",
"useAcrylic": true
}- Then the
defaultProfileproperty we change to the GUID given to cmder
json
{
"defaultProfile": "[paste the guid generated earlier]"
}