diff --git a/Basic-use-cases.md b/Basic-use-cases.md index 5cccc15..30e9f5e 100644 --- a/Basic-use-cases.md +++ b/Basic-use-cases.md @@ -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). -If opted, `nnn` writes the last working directory to +By default, when ^G is pressed, `nnn` writes the last working directory to ${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 ^G 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: