소스 검색

fix bookmarks plugin on empty output (#762)

* fix bookmarks plugin on empty output

* fix indentation

* remove redundant new line
master
Placido Fernandez GitHub 4 년 전
부모
커밋
d38bed58b2
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. +5
    -1
      plugins/bookmarks

+ 5
- 1
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


불러오는 중...
취소
저장