aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Placido Fernandez <9625282+fdplacido@users.noreply.github.com>2020-10-13 12:20:28 +0000
committerGravatar GitHub <noreply@github.com>2020-10-13 17:50:28 +0530
commited53c54ba2788b17d9c02a398a1b34ab1f4dd1a5 (patch)
tree51b54cc874ec78b160697453217b32a1e1eeaf28
parent1b1842c354889d08cab7752fe9d4e7881541e0c8 (diff)
downloadnnn-ed53c54ba2788b17d9c02a398a1b34ab1f4dd1a5.tar.gz
fix fzf bookmarks plugin environment variable (#756)
* fix fzf bookmarks plugin environment variable * fix for POSIX
-rwxr-xr-xplugins/bookmarks4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/bookmarks b/plugins/bookmarks
index 614b20f..65670cd 100755
--- 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