17

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?

1
  • Is there a tabbed console app? Preferably with ctrl-tab or some other shortcut for switching between them? Windows really needs something like virtual tty's. I've seen some that have transparent windows and stuff, but that's a fluff feature that doesn't help. Edit: ok, I was thinking of conemu, which cmder appears to use. Oct 27, 2015 at 13:26

2 Answers 2

19

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%
5
  • 1
    Not sure what version it changed, but now it seems to be cmder\vendor\init.bat.
    – Ludwik
    Dec 5, 2015 at 12:19
  • 1
    No, init.bat gets overwritten. Thats why its placed in the vendor folder.
    – d0x
    Feb 2, 2016 at 10:30
  • Seems like you're right.
    – Ludwik
    Mar 6, 2016 at 18:41
  • Do you know why this is happening to me? call does not source a .cmd file correctly: stackoverflow.com/questions/53523506/…
    – nephewtom
    Nov 28, 2018 at 17:23
  • Doesn't work when you rerun the terminal after close it Jan 10, 2023 at 20:24
0

Alternatively, you can set them on startup under Settings -> Startup -> Environment and add

set PATH=<path_of_your_item>;%PATH%`.

Screenshot Example

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .