-
|
I have seen https://github.com/devonfw/IDEasy/blob/main/cli/src/main/java/com/devonfw/tools/ide/context/IdeContext.java#L686 but I am not clear yet on whether this will change also the cwd of the user's console or simply the cwd of the context to program against. If so, is there any prepared programmatic option to change the cwd of the user's console by your prepared framework? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
It is technically impossible to set CWD or environment variables of a running terminal session (like In order to provide advanced support when changing directories we provide a command callled If you are curious for the feature you found in our Java code that you linked... |
Beta Was this translation helpful? Give feedback.
It is technically impossible to set CWD or environment variables of a running terminal session (like
bashorzsh) from a sub-process (a program likeideasycalled from your shell).E.g. if you type
cd ..in yourbashyou do not execute a programcdthat changes your CWD but instead call a build-in function of bash.This is why we had to come up with some smart tricks to make IDEasy work in the way we want to have it for UX.
Compared to
devonfw-idewe improved that a lot going fromaliastofunctionthat has various advantages.In order to provide advanced support when changing directories we provide a command callled
icdthat just likeideis technically afunctionand not aprogram. You …