diff --git a/functions.zsh b/functions.zsh index 2c79dd6..ac0e9c6 100755 --- a/functions.zsh +++ b/functions.zsh @@ -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}" }