From 7a68b0c2d2ab99a569fed01186db1e3a34968706 Mon Sep 17 00:00:00 2001 From: Terminator X Date: Sun, 25 Jul 2021 06:54:13 +0530 Subject: [PATCH] Updated Basic use cases (markdown) --- Basic-use-cases.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: