1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-21 19:11:30 +01:00

zsh: fix color function

This commit is contained in:
bretello 2022-03-26 13:07:16 +01:00
parent 2841fada0a
commit 9b6494c94d
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -50,14 +50,12 @@ function ppath
echo "$PWD/$1"
}
## Color string with given color. Usage: color $colorname "string", available colors in colors.sh
## Color string with given color. Usage: `color $NAME "string"`, available colors in `colors.sh`
function color
{
color=$1
set -x
shift 1
echo -e "$"$color"$@${CLEAR}\n"
set +x
echo -e "${color}$@${CLEAR}"
}