mirror of
https://github.com/jarun/nnn.git
synced 2024-11-23 19:31:28 +00:00
Updated Basic use cases (markdown)
parent
d8620c8f53
commit
7a68b0c2d2
|
@ -53,11 +53,11 @@ The current directory is marked automatically when
|
||||||
|
|
||||||
Pick the appropriate file for your shell from [`misc/quitcd`](https://github.com/jarun/nnn/tree/master/misc/quitcd) and add the contents to your shell's rc file. You'll need to spawn a new shell for the change to take effect. You should start `nnn` as `n` (or your preferred function name/alias).
|
Pick the appropriate file for your shell from [`misc/quitcd`](https://github.com/jarun/nnn/tree/master/misc/quitcd) and add the contents to your shell's rc file. You'll need to spawn a new shell for the change to take effect. You should start `nnn` as `n` (or your preferred function name/alias).
|
||||||
|
|
||||||
If opted, `nnn` writes the last working directory to
|
By default, when <kbd>^G</kbd> is pressed, `nnn` writes the last working directory to
|
||||||
|
|
||||||
${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
|
${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd
|
||||||
|
|
||||||
By default `nnn` will cd on quit if the environment variable `NNN_TMPFILE` is set (it's exported in the sample quitcd scriptlets accordingly). To cd on quit only when <kbd>^G</kbd> is pressed (and return to start directory using other quit options), do not export `NNN_TMPFILE` in the rc file, use it as a local variable.
|
To cd on quit _always_, export the environment variable `NNN_TMPFILE` set to your preferred file path.
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue