26

I have Cmder for Windows it has default path c:\Users\ username and I want to change it to any other path I like or want. How do I change it ?

Also cmder can replace cmd.exe meaning is it possible to set cmder as default program insted of cmd.exe

cmder image

  • 2
    Did you tried to find information in docs? conemu.github.io – Maximus Oct 15 '16 at 9:11
  • @ Maximus it is not conemu it is cmder and i tried searching docs but i didnt got it cmder.net – Mandar Sant Oct 15 '16 at 11:51
  • @MandarSant ffs please stop saying this. I have had so many hair pulling experiences with trying to configure conemu with git or the above issue. reading the doc is not enough, because this is not an intended problem ffs – samayo Aug 16 at 23:35
43

As of cmder v1.3.6:

  1. Go to 'settings'

  2. In the settings group 'Startup', click on 'Tasks'

  3. Click the console you want to modify (e.g. cmd::Cmder, cmd::Cmder as Admin, bash::bash etc.)

  4. Click the button that says 'Startup dir...'

  5. Select the directory you want the console to start up in by default

  6. Enjoy

  • 2
    Works for Cmder version 1.3.10 – jdhao Dec 21 '18 at 11:25
  • 1
    Thanks, yes I haven't tested it for lower versions but it should be similar. – Moustache Dec 21 '18 at 15:56
  • 1
    In fact, it is the latest version :) – jdhao Dec 22 '18 at 1:57
  • 1
    Ah yes thanks :) I misread your comment as 1.3.1. – Moustache Dec 22 '18 at 13:04
  • 3
    It should be noted that this solution has side effect that "cmder here" contextual menu does not work anymore. It will always open the startup directory you have set up. See here for more information. sad :( – jdhao Dec 24 '18 at 7:01
8

In the init.bat file in ~/cmder/vendor, before

:: Set home path

add

@cd /d "C:/YOUR_PREFERRED_FOLDER/"
  • i do not want to use cd when ever i open it the path which i have set should remain for ever after closing it also – Mandar Sant Oct 15 '16 at 7:21
  • It will stay. You are adding this to your init.bat to force it set a new home path. – hiiambo Oct 15 '16 at 21:04
  • where is init.bat file – Mandar Sant Oct 16 '16 at 3:36
  • 1
    init.bat is in the ~/cmder/vendor directory. – Moustache Aug 1 '18 at 15:38
2
  1. Create a shortcut to cmdr
  2. Edit the shortcut, change the "Start in" path to the desired path
  3. Profit
2

For those who none of the above solutions worked (Cmder keeps reverting back to old path), here's what I did to fix it:

  1. Do a text search with Notepad++ in your Cmder directory for C:/OLD_FOLDER/
  2. Replace each found instance with your new directory: C:/YOUR_PREFERRED_FOLDER/.

For me, the issue was in ConEmu.xml which was preventing startup folder changes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.