fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Shayancompletions/magick: remove deprecated convert command and dependenciesacd3c45a4

master
666 B15 linesraw
1# localization: skip(private)
2function __fish_complete_magick_options --description 'Complete Magick options' --argument-names what
3    switch $what
4        case format Format
5            magick -list Format | string replace -rf '^\s*([\w-]+)\*?\s+\S+\s+([rw+-]{3})\s+(.+)$' '\1\t\2 \3'
6        case color Color
7            magick -list color | string replace -rf '^(\w+)\s+(\w+\(.+\))\s+(.+)$' '\1\t\2 \3'
8        case family
9            magick -list Font | string replace -rf '^\s*family: ' '' | sort -u
10        case font Font
11            magick -list Font | string replace -rf '^\s*Font: ' '' | sort -u
12        case '*'
13            magick -list $what
14    end
15end