How to configure environment variables in cmder

cmder

I'm using cmder (https://github.com/cmderdev/cmder), and would like to be able to:

  • Configure entries to be automatically added the PATH when I start cmder
  • Configure environment variables that will be automatically set when I start cmder

How do I do this?

Best Answer

There is a user startup script in cmder\config\user-profile.cmd. To add items to your PATH, you can do the following;

@set PATH=<path_of_your_item>;%PATH%
Related Question