diff options
author | Yigit Sever | 2021-10-29 09:58:48 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-29 09:58:48 +0300 |
commit | 0d4f98213b7784f965529197c58564dae06c0ca2 (patch) | |
tree | 81eac6bc01a65e0e423eed569b957606246a3a49 /.local/bin/bukuopener | |
parent | e2a1c5380439b2459ba5a6d007bb870fbab07a76 (diff) | |
download | dotfiles-0d4f98213b7784f965529197c58564dae06c0ca2.tar.gz dotfiles-0d4f98213b7784f965529197c58564dae06c0ca2.tar.bz2 dotfiles-0d4f98213b7784f965529197c58564dae06c0ca2.zip |
bukuopener: handle multiple links
Diffstat (limited to '.local/bin/bukuopener')
-rwxr-xr-x | .local/bin/bukuopener | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/bukuopener b/.local/bin/bukuopener index aceacd2..c466789 100755 --- a/.local/bin/bukuopener +++ b/.local/bin/bukuopener | |||
@@ -3,5 +3,5 @@ | |||
3 | url=$(buku -p -f4 | fzf -m --reverse --preview "buku --nostdin -p {1}" --preview-window=wrap | cut -f2) | 3 | url=$(buku -p -f4 | fzf -m --reverse --preview "buku --nostdin -p {1}" --preview-window=wrap | cut -f2) |
4 | 4 | ||
5 | if [ -n "$url" ]; then | 5 | if [ -n "$url" ]; then |
6 | xdg-open "$url" | 6 | printf '%s\n' "$url" | xargs -L1 xdg-open |
7 | fi | 7 | fi |