Skip to content
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

Question: Is Midnight Commander supported? #48

Closed
aik099 opened this issue Feb 13, 2019 · 2 comments
Closed

Question: Is Midnight Commander supported? #48

aik099 opened this issue Feb 13, 2019 · 2 comments

Comments

@aik099
Copy link

aik099 commented Feb 13, 2019

In Midnight Commander:

  • current directory logically changes when you switch from one panel into another and back, but I'm not sure if Bash is able to detect that
  • PROMPT_COMMAND (that is changed by McFly) is also invoked

Have you checked that commands executed from Midnight Commander command line are tracked against proper directory?

@cantino
Copy link
Owner

cantino commented Feb 13, 2019

I've never used Midnight Commander. McFly uses the PWD environment variable to determine directory.

@aik099
Copy link
Author

aik099 commented Feb 13, 2019

I've checked that PWD environment variable changes, when I switch active panel. For unknown reasons .bash_profile isn't used at 100% by Midnight Commander, because Ctrl+R doesn't seem to be remapped (when panels are opened it changes hints of Midnight Commander above command prompt, but when panels are closed it uses native Ctrl+R).

Maybe there is a trick to get McFly working inside Midnight Commander. If I'll have an urgent need I'll investigate.

Thank you.

@aik099 aik099 closed this as completed Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants