1
0
mirror of https://github.com/jbranchaud/til synced 2026-07-11 01:16:09 +00:00

Prevent sigpipe error output from bleeding into fzf display

This commit is contained in:
jbranchaud
2026-07-10 14:06:22 -05:00
parent 53c07d23f4
commit 3dc51590bd
+3 -2
View File
@@ -26,7 +26,8 @@ tasks:
silent: true silent: true
cmds: cmds:
- | - |
FILE=$(task browse:list | head -5 | fzf --prompt="Open TIL: " --height=40% --reverse) || true LIST=$(task browse:list)
FILE=$(printf '%s\n' "$LIST" | head -5 | fzf --prompt="Open TIL: " --height=40% --reverse) || true
if [ -n "$FILE" ]; then if [ -n "$FILE" ]; then
gh browse "$FILE" gh browse "$FILE"
fi fi
@@ -36,7 +37,7 @@ tasks:
silent: true silent: true
cmds: cmds:
- | - |
FILE=$(task browse:list | head -1) FILE=$(task browse:list | awk 'NR==1')
if [ -n "$FILE" ]; then if [ -n "$FILE" ]; then
gh browse "$FILE" gh browse "$FILE"
fi fi