diff options
-rwxr-xr-x | plugins/bookmarks | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/bookmarks b/plugins/bookmarks index b25e8e5..9bf491e 100755 --- a/plugins/bookmarks +++ b/plugins/bookmarks @@ -44,7 +44,11 @@ get_links() { [ -d "$entry" ] || continue printf "%20s -> %s\n" "$(basename "$entry")" "$(readlink -f "$entry")" - done | fzf | awk 'END { print "'"$BOOKMARKS_DIR"'/"$1 }' + done | fzf | + awk 'END { + if (length($1) == 0) { print "'"$PWD"'" } + else { print "'"$BOOKMARKS_DIR"'/"$1 } + }' } # Choose symlink with fzf |