Skip to content

Commit db4961a

Browse files
committed
Don't error if you escape from fzf
1 parent ff227a3 commit db4961a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ tasks:
6767
desc: Interactive picker for notes tasks
6868
cmds:
6969
- |
70-
TASK=$(task --list | grep "^\* notes:" | sed 's/^\* notes://' | sed 's/\s\+/ - /' | fzf --prompt="Select notes task: " --height=40% --reverse)
70+
TASK=$(task --list | grep "^\* notes:" | sed 's/^\* notes://' | sed 's/\s\+/ - /' | fzf --prompt="Select notes task: " --height=40% --reverse) || true
7171
if [ -n "$TASK" ]; then
7272
TASK_NAME=$(echo "$TASK" | awk '{print $1}' | sed 's/:$//')
7373
task notes:$TASK_NAME

0 commit comments

Comments
 (0)