1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 23:04:22 +00:00
config-fish/functions/emoji-discord.fish

11 lines
464 B
Fish
Raw Normal View History

2024-08-21 09:45:18 +00:00
which magick --skip-functions >/dev/null 2>/dev/null
if [ $status -eq 0 ]
function emoji-discord --wraps=magick
2024-08-21 19:59:02 +00:00
log-t "Creating" "Discord" "directory..."
2024-08-21 09:45:18 +00:00
command mkdir --parents "Discord"
2024-08-21 19:59:02 +00:00
log-t "Processing" "$argv[1]" "..."
2024-08-21 09:45:18 +00:00
command magick -background none "$argv[1]" -resize "106x106^" -gravity center -extent 128x128 $argv[2..-1] "Discord/$argv[1]"
log-s "Done! Emojis added to the " "Discord" "directory!"
end
end