Change ConEmu's default start directory
Solution 1
In addition to the answer by Bruno Pereira.
1) Another way - create new task with "cmd" in Commands (if not already created) and add following into "Gui args" field of task properties, and choose this task on startup page (radio "Specified named task")
/dir "FullPathToDir"
2) One more example - run shell like (Startup -> Command line)
cmd "-cur_console:d:C:\Users\Maks"
Solution 2
Just edit your startup shortcut adding the /Dir
option as such:
ConEmu /Dir <path to desired directory>
Or on the shortcut properties change the Start in: path to something that fancies you
Solution 3
Open settings:
- Startup/Tasks
- Create new task
- In the first box put a name, e.g.
Console
- In the third box copy this:
C:\Windows\System32\cmd.exe -cur_console:d:D:/
- Go to Startup and select the task from the "specified named task" menu.
Restart
Solution 4
Another solution. Create a task and execute it when ConEmu starts.
Create task, e.g. go to folder D:\exampleDir
You can concatenate commands using &
Execute task on startup:
Solution 5
Another real easy way that worked for me was to open up the Properties of the ConEmu shortcut (in Windows) and then edit the "Start in:" field as shown in the image below.
Related videos on Youtube
Nick Ginanto
Updated on September 18, 2022Comments
-
Nick Ginanto almost 2 years
How do I change ConEmu settings such that always when I open it, it will start the cmd in a directory of my choosing instead of the default ConEmu folder?
-
Dax Fohl over 7 yearsAn alt solution is to put some batch jobs somewhere in your path that just
cd X:\Some\Long\Directory\Name
for dirs that you commonly use. That way you're not limited to one dir, you're not limited to conemu, and you're not limited to just at startup.
-
-
Maximus almost 12 yearsNot true. You may choose any named task for startup on "Startup" page.
-
Nick Ginanto almost 12 yearsI get a command group is empty! error when I add the /dir PATH to task parameters
-
Maximus almost 12 yearsSo? You get a message from program. Why not to make it "not empty"? Add "cmd" to the task command. PS. If message is not clear - suggest your own text.
-
Admin over 11 yearsI don't understand anything. Your app is excellent but you need to improve the english labels and the GUI usability. With Console2 I just need to go to Edit->Settings and edit the "Startup dir" field, that's all. I'm going to upvote the other answer (and if I could I'd downvote yours), in 2 secs I've changed the startup dir, with your steps is IMPOSSIBLE.
-
Nick Ginanto over 11 yearshow do I write a folder path which contains space?
-
Admin over 11 yearshave you tried to quote the path with
"
? -
Maximus over 11 years@GabrielLlamas If you read my steps CAREFULLY and realize them one-by-one - your task will be completed. No changes was made to the answer, just screenshot was added. "Specially for..."
-
Piotr Sobczyk about 11 yearsSecond approach is much better as it's simpler and doesn't open PowerShell!
-
Ian Clark over 10 yearsI wanted to have Git Bash open in a default directory on load, and to be able to open a new tab with those same settings by simply clicking the plus icon. Combining the first part of this answer from Maximus and Bruno Pereira's solution below I was able to achieve this.
-
Fijat Ogur about 10 yearsI don't know why the above one has more upvotes. This is the correct way to change the "default" start directory, as requested. This will apply to all tasks started in that ConEmu instance.
-
Xupicor almost 9 yearsFound the culprit - I was invoking bash with
-login
option, and that would always result in home directory. Now setting up directories with-cur_console
or-new_console
works fine. -
lordhog over 8 yearsFor me, the /dir option didn't work for me, until I released that the option
-new_console:d:"%USERPROFILE%"
was part of the commands thus overriding my /dir selection. -
tibbus about 8 yearsJust to have in mind, that the Task parameters are in the conEmu format, so even if you set it up for bash you need to use the same dir "C:\" syntax
-
MSC about 8 yearsWay more confusing than it should be for such a simple need.