traewelling: always enable color
This commit is contained in:
parent
611bb49a50
commit
b1ea84e3ad
1 changed files with 1 additions and 3 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue