mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-19 05:13:44 +08:00
6f797ac958
* Update just.fish to handle descriptions for completions This change updates fish completions to also include descriptions for justfile recipes. It has been tested with descriptions for recipes with arguments as well * rely on fish only (avoid sed)
5 lines
198 B
Fish
5 lines
198 B
Fish
function _justfile_targets
|
|
just -l | tail -n +2 | string trim -l | string replace -r '(\s*#\s*)' '\t' | string replace -r '(\s*[\*\+][^\s]*)' ''
|
|
end
|
|
complete -c just -f -a '(_justfile_targets)'
|