diff options
-rwxr-xr-x | plugins/bookmarks | 4 |
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 |