diff --git a/plugins/bookmarks b/plugins/bookmarks index b25e8e5f..9bf491ee 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