mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
fix bookmarks plugin on empty output (#762)
* fix bookmarks plugin on empty output * fix indentation * remove redundant new line
This commit is contained in:
parent
dbf12ed031
commit
d38bed58b2
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue