Skip to content

Instantly share code, notes, and snippets.

@nikoheikkila
Created May 19, 2022 16:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikoheikkila/f8f6d707102e186b790bc3efb5bd70c2 to your computer and use it in GitHub Desktop.
Save nikoheikkila/f8f6d707102e186b790bc3efb5bd70c2 to your computer and use it in GitHub Desktop.
Fish Shell: Interactive runner for your Taskfile tasks
# Example: `it -v`, then press <ENTER> to pick a single task, or <TAB> to select multiple tasks and then <ENTER>
function it -d 'Run Taskfile tasks interactively'
task $argv (\
task --list \
| cut -d ' ' -f2 \
| tail -n +2 \
| sed 's/://' \
| sort \
| fzf -m --reverse --preview 'task --summary {}' \
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment