[READ-ONLY] Mirror of https://github.com/probablykasper/to. CLI audio, video and image file converter
aiff audio cli flac gif image jp2 jpg mov mp3 mp4 ogg png video webm webp
0

Configure Feed

Select the types of activity you want to include in your feed.

Fixed color issue

The color function would cause subsequent text to be gray, but now it resets it instead

+2 -2
+2 -2
bin/to
··· 3 3 color() { 4 4 echo -n "`tput setaf $1`${@:2}" 5 5 # reset color if there are arguments: 6 - if [[ "$#" > 1 ]]; then echo -n "`tput setaf 7`"; fi 6 + if [[ "$#" > 1 ]]; then tput sgr0; fi 7 7 } 8 8 red() { color 1 "$@"; } 9 9 green() { color 2 "$@"; } 10 10 yellow() { color 3 "$@"; } 11 11 cyan() { color 6 "$@"; } 12 - reset() { color 7 "$@"; } 12 + reset() { tput sgr0; } 13 13 14 14 help() { 15 15 echo "