mirror of
https://github.com/Steffo99/config-fish.git
synced 2024-12-22 23:04:22 +00:00
10 lines
471 B
Fish
10 lines
471 B
Fish
which magick --skip-functions >/dev/null 2>/dev/null
|
|
if [ $status -eq 0 ]
|
|
function gen-emoji-akkoma --wraps=magick
|
|
log-t "Creating" "Akkoma" "directory..."
|
|
command mkdir --parents "Akkoma"
|
|
log-d "Processing" "$argv[1]" "for Akkoma use..."
|
|
command magick -background none "$argv[1]"'[106x106]' -gravity 'center' -extent '106x106' $argv[2..-1] "Akkoma/$argv[1]"
|
|
log-t "Done! Emoji added to the" "Akkoma" "directory!"
|
|
end
|
|
end
|