From f231c35ef90b5e2124e94a79fe784be97d442d16 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 30 Nov 2019 02:21:59 +0530 Subject: Update docs --- misc/quitcd/quitcd.bash | 1 + misc/quitcd/quitcd.csh | 1 + misc/quitcd/quitcd.fish | 1 + misc/quitcd/quitcd.zsh | 1 + 4 files changed, 4 insertions(+) (limited to 'misc/quitcd') diff --git a/misc/quitcd/quitcd.bash b/misc/quitcd/quitcd.bash index 5ea82c4..43908db 100644 --- a/misc/quitcd/quitcd.bash +++ b/misc/quitcd/quitcd.bash @@ -8,6 +8,7 @@ n () # The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set) # To cd on quit only on ^G, export NNN_TMPFILE after the call to nnn + # NOTE: NNN_TMPFILE is fixed, should not be modified export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd" # Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn diff --git a/misc/quitcd/quitcd.csh b/misc/quitcd/quitcd.csh index 9806cef..5341b19 100644 --- a/misc/quitcd/quitcd.csh +++ b/misc/quitcd/quitcd.csh @@ -2,6 +2,7 @@ # The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set) # To cd on quit only on ^G, export NNN_TMPFILE after the call to nnn +# NOTE: NNN_TMPFILE is fixed, should not be modified set NNN_TMPFILE=~/.config/nnn/.lastd # Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn diff --git a/misc/quitcd/quitcd.fish b/misc/quitcd/quitcd.fish index 3053656..5b9cd62 100644 --- a/misc/quitcd/quitcd.fish +++ b/misc/quitcd/quitcd.fish @@ -11,6 +11,7 @@ function n --description 'support nnn quit and change directory' # The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set) # To cd on quit only on ^G, export NNN_TMPFILE after the call to nnn + # NOTE: NNN_TMPFILE is fixed, should not be modified if test -n "$XDG_CONFIG_HOME" set -x NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd" else diff --git a/misc/quitcd/quitcd.zsh b/misc/quitcd/quitcd.zsh index 5ea82c4..43908db 100644 --- a/misc/quitcd/quitcd.zsh +++ b/misc/quitcd/quitcd.zsh @@ -8,6 +8,7 @@ n () # The default behaviour is to cd on quit (nnn checks if NNN_TMPFILE is set) # To cd on quit only on ^G, export NNN_TMPFILE after the call to nnn + # NOTE: NNN_TMPFILE is fixed, should not be modified export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd" # Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn -- cgit v1.2.3-70-g09d2