It is really confusing when you open a terminal inside an IDE, for example VSCode and the directory is not the current project, or opening a terminal from a GUI file explorer.
Maybe add a config variable (dangerous_disable_cd_on_start or something) and/or check the presence of some environment variable in the relevant if query
I am happy to submit a PR, if you decide on the names of the variables.
It is really confusing when you open a terminal inside an IDE, for example VSCode and the directory is not the current project, or opening a terminal from a GUI file explorer.
Maybe add a config variable (dangerous_disable_cd_on_start or something) and/or check the presence of some environment variable in the relevant if query
I am happy to submit a PR, if you decide on the names of the variables.