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>$
Open the workspace and then the project folder. Then run the Terminal application, type “cd” into the terminal window. “cd” is the command to change directory (or folder).
In computing, the working directory of a process is a directory of a hierarchical file system, if any, dynamically associated with each process. It is sometimes called the current working directory (CWD), e.g. the BSD getcwd function, or just current directory.
From the Preferences -> Terminal -> "Local Terminal" configuration screen, you could chose ${project_loc}
as initial working directory.
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
It's September of 2021, running Eclipse 2021-06 and I still see "Variable references empty", and I get ../Eclipse.app/Contents/MacOS as my initial directory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With