Replies: 1 comment 3 replies
-
The last path is output to
This is, I repeat, not possible. A child process (the wrapper script) cannot change the working directory of the parent process (the interactive shell). |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The feature "cd on quit" is useful for but AFAIK it's only possible to use this by running nnn in a wrapper shell function. This seems like an arbitrary requirement given that nnn is lightweight, extensible, and runs in a limited environment. How about supporting the feature natively?
Or at least e.g. an option to output the last path on exit, so that you can do `cd "$(nnn)" in the shell. I run nnn in an nnn wrapper script--I would rather not load the entire setup in shell config (prefer to keep it light and non-application-specific) and which could technically affect shell startup (not a real concern).
Beta Was this translation helpful? Give feedback.
All reactions