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:
parent
2841fada0a
commit
9b6494c94d
|
@ -50,14 +50,12 @@ function ppath
|
||||||
echo "$PWD/$1"
|
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
|
function color
|
||||||
{
|
{
|
||||||
color=$1
|
color=$1
|
||||||
set -x
|
|
||||||
shift 1
|
shift 1
|
||||||
echo -e "$"$color"$@${CLEAR}\n"
|
echo -e "${color}$@${CLEAR}"
|
||||||
set +x
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user