1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 14:54:23 +00:00

Compare commits

..

2 commits

Author SHA1 Message Date
2b9ac80390
Log to stderr 2024-11-27 13:47:30 +01:00
dc1c532cc4
Telegram emojis should be webp 2024-11-27 13:45:11 +01:00
7 changed files with 19 additions and 19 deletions

View file

@ -4,7 +4,7 @@ if [ $status -eq 0 ]
log-t "Creating" "Telegram" "directory..."
command mkdir --parents "Telegram"
log-d "Processing" "$argv[1]" "for Telegram use..."
command magick -background none "$argv[1]"'[100x100]' -gravity 'center' -extent '100x100' $argv[2..-1] "Telegram/$argv[1]"
command magick -background none "$argv[1]"'[100x100]' -gravity 'center' -extent '100x100' $argv[2..-1] "Telegram/$argv[1].webp"
log-t "Done! Emoji added to the" "Telegram" "directory!"
end
end

View file

@ -4,15 +4,15 @@ function log-e
end
set_color red
echo -n -- "$argv[1] "
echo -n -- "$argv[1] " 1>&2
set_color reset
set_color --bold brred
echo -n -- "$argv[2]"
echo -n -- "$argv[2]" 1>&2
set_color reset
set_color red
echo -n -- " $argv[3]"
echo -n -- " $argv[3]" 1>&2
echo
set_color reset
end

View file

@ -5,17 +5,17 @@ function log-f
set_color --background red
set_color brwhite
echo -n -- "$argv[1] "
echo -n -- "$argv[1] " 1>&2
set_color reset
set_color --background brred
set_color --bold brwhite
echo -n -- "$argv[2]"
echo -n -- "$argv[2]" 1>&2
set_color reset
set_color --background red
set_color brwhite
echo -n -- " $argv[3]"
echo -n -- " $argv[3]" 1>&2
echo
set_color reset
end

View file

@ -4,15 +4,15 @@ function log-i
end
set_color cyan
echo -n -- "$argv[1] "
echo -n -- "$argv[1] " 1>&2
set_color reset
set_color --bold brcyan
echo -n -- "$argv[2]"
echo -n -- "$argv[2]" 1>&2
set_color reset
set_color cyan
echo -n -- " $argv[3]"
echo -n -- " $argv[3]" 1>&2
echo
set_color reset
end

View file

@ -4,15 +4,15 @@ function log-s
end
set_color green
echo -n -- "$argv[1] "
echo -n -- "$argv[1] " 1>&2
set_color reset
set_color --bold brgreen
echo -n -- "$argv[2]"
echo -n -- "$argv[2]" 1>&2
set_color reset
set_color green
echo -n -- " $argv[3]"
echo -n -- " $argv[3]" 1>&2
echo
set_color reset
end

View file

@ -4,15 +4,15 @@ function log-t
end
set_color purple
echo -n -- "$argv[1] "
echo -n -- "$argv[1] " 1>&2
set_color reset
set_color --bold brpurple
echo -n -- "$argv[2]"
echo -n -- "$argv[2]" 1>&2
set_color reset
set_color purple
echo -n -- " $argv[3]"
echo -n -- " $argv[3]" 1>&2
echo
set_color reset
end

View file

@ -4,15 +4,15 @@ function log-w
end
set_color yellow
echo -n -- "$argv[1] "
echo -n -- "$argv[1] " 1>&2
set_color reset
set_color --bold bryellow
echo -n -- "$argv[2]"
echo -n -- "$argv[2]" 1>&2
set_color reset
set_color yellow
echo -n -- " $argv[3]"
echo -n -- " $argv[3]" 1>&2
echo
set_color reset
end