-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PWD environment variable doesn't change when changing directory in a shx shell #31
Comments
Hi! There's a builtin command |
This is the problem. Fwiw, i use ksh. Regards |
Ah, this is because the builtin shell (from shell.el) has directory tracking that is not always 100% accurate. It can lose track for example if you use unconventional commands to change directories. There's a builtin function One example of this is I use Hopefully that helps, but let me know! |
I missed the part where you wrote this:
If you want to run this command it's bound by default to M-return or M-x shell-resync-dirs -- |
When changing directory, i ran the command
:eval (getenv "PWD")
and it returns the original directory at shell creation.
How can i get the current directory when in shx mode?
The text was updated successfully, but these errors were encountered: