Skip to content

Commit

Permalink
Fix fish completion when an option is specified in comments (#1325)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meakk authored Mar 23, 2024
1 parent f2ef77b commit 340c56d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/completion.fish
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
set -l compl_cmds (f3d --help 2>&1 | sed '1,/Examples/!d' | grep "[-]-" | sed 's/-\(.\),/-s \1/g' | sed 's/=.*>//g' | sed 's/--\([^ ]*\) *\(.*\)/-l \1 -d \'\2\'/g' | sed 's/^ */complete -c f3d /')
set -l compl_cmds (f3d --help 2>&1 | sed '1,/Examples/!d' | grep "[, ] [-]-" | sed 's/-\(.\),/-s \1/g' | sed 's/=.*>//g' | sed 's/--\([^ ]*\) *\(.*\)/-l \1 -d \'\2\'/g' | sed 's/^ */complete -c f3d /')

for current_cmd in $compl_cmds; eval $current_cmd; end

0 comments on commit 340c56d

Please sign in to comment.