nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit ed53c54ba2788b17d9c02a398a1b34ab1f4dd1a5
parent 1b1842c354889d08cab7752fe9d4e7881541e0c8
Author: Placido Fernandez <9625282+fdplacido@users.noreply.github.com>
Date:   Tue, 13 Oct 2020 12:20:28 +0000

fix fzf bookmarks plugin environment variable (#756)

* fix fzf bookmarks plugin environment variable

* fix for POSIX
Diffstat:
Mplugins/bookmarks | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/plugins/bookmarks b/plugins/bookmarks @@ -25,7 +25,9 @@ # Shell: POSIX compliant # Author: Todd Yamakawa -BOOKMARKS_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/nnn/bookmarks" +if [ -z "$BOOKMARKS_DIR" ]; then + BOOKMARKS_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/nnn/bookmarks" +fi # Check if NNN_PIPE is set if [ -z "$NNN_PIPE" ]; then