]> Sergey Matveev's repositories - nnn.git/commitdiff
fix fzf bookmarks plugin environment variable (#756)
authorPlacido Fernandez <9625282+fdplacido@users.noreply.github.com>
Tue, 13 Oct 2020 12:20:28 +0000 (12:20 +0000)
committerGitHub <noreply@github.com>
Tue, 13 Oct 2020 12:20:28 +0000 (17:50 +0530)
* fix fzf bookmarks plugin environment variable

* fix for POSIX

plugins/bookmarks

index 614b20f268d9958ded661385bdd1aa2e4f1070b4..65670cd5c4f8d9d5d7924911690566476f56e9ff 100755 (executable)
@@ -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