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:
+3
-2
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user