Reputation: 7891
When I open a Terminal in Eclipse, it's by default positioned at
$> /home/myUserName>$
I'm looking to configure it to be positioned at the same location as the current opened project.
When I open the project "my-project-1" which is located at "/home/userName/path/to/my/personal/projects" then I open the Terminal, it'll be shown as this:
$> /home/userName/home/userName/path/to/my/personal/projects/my-project-1>$
When I open the project "my-project-2" which is located at "/home/userName/path/to/my/personal/projects" then I open the Terminal, it'll be shown as this:
$> /home/userName/home/userName/path/to/my/personal/projects/my-project-2>$
Upvotes: 11
Views: 3017
Reputation: 123
You cannot do this for "the currently opened project", but you can get close enough by choosing a specific project.
Preferences -> Terminal -> Local Terminal. Select "Variables..."
You then choose ${project_loc}
, then click on "Configure" in the Argument box, start typing your chosen project name, and select it
Upvotes: 2
Reputation: 21
From the Preferences -> Terminal -> "Local Terminal" configuration screen, you could chose ${project_loc}
as initial working directory.
Upvotes: 2