Ho do you change default terminal location when opening.
-
I have my sites hosted outside the base www folder. How can I tell the cmder terminal to open in that directory by default?
-
@edster : cmder remembers last dir for next time you open Terminal.
-
There should be this option available. Is it available now??
Regards
-
- open cmder settings (Win+Alt+P)
- go to Startup > Tasks and inside Predefined tasks (command groups) click on 2 {cmd::Cmder}
- inside one of the box on bottom right you will see below code
cmd /k ""%ConEmuDir%\..\init.bat" "
put your cursor at the beginning before cmd
- click on Startup dir button and choose your preferred directory.
For your reference, my code when I want open root drive D by default:
-new_console:d:D:\ cmd /k ""%ConEmuDir%\..\init.bat" "
If you want to open new tab with different directory by default, you can insert new line and follow steps that I have mention above. Please refer to below code for reference
cmd /k ""%ConEmuDir%\..\init.bat" " -new_console:d:D:\ cmd /k ""%ConEmuDir%\..\init.bat" "
- click on Save settings and restart cmder