Created
May 19, 2022 16:55
-
-
Save nikoheikkila/f8f6d707102e186b790bc3efb5bd70c2 to your computer and use it in GitHub Desktop.
Fish Shell: Interactive runner for your Taskfile tasks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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