mirror of https://github.com/sayanarijit/xplr
CLI for a better "cd on quit"
Use `--print-pwd-as-result` to print the last working directory instead of the focused or selected nodes, when you quit using the `PrintResultAndQuit` message (i.e. by pressing `enter`). This helps with implementing the "cd on quit" functionality using a plain shell alias. Example: ``` alias xcd='cd "$(xplr --print-pwd-as-result)"' ``` With this alias set, you can navigate directories using xplr by entering `xcd` command, and when you quit by pressing enter, you will enter the directory. You can of course, quit with plain `Quit` (i.e. by pressing `esc`) to gracefully cancel "cd on quit".pull/438/head
parent
7da7c54e86
commit
bb65870ee0
Loading…
Reference in New Issue