traewelling: always enable color

This commit is contained in:
Daniella / Tove 2024-10-22 22:00:12 +02:00
parent 611bb49a50
commit b1ea84e3ad
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -4,9 +4,7 @@ pkgs.writeShellScriptBin "traewelling" ''
#!/bin/sh #!/bin/sh
function color() { function color() {
if test -t 1 ; then echo -ne "\e[38;5;$1"m
echo -ne "\e[38;5;$1"m
fi
} }
function j() { function j() {
jq -r $1 <<< "$json" jq -r $1 <<< "$json"