fish-shell/share/functions/__fish_d2__complete_themes.fish

7 lines
186 B
Fish
Raw Normal View History

2024-10-01 23:26:52 +00:00
function __fish_d2__complete_themes
d2 themes |
sed -n '3,$p' |
string match --entire --regex '^-' |
string replace --regex -- '- ([^:]+): (.+)' '$2\t$1'
end