mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-12-22 14:11:40 +01:00
zsh: fix color
function
This commit is contained in:
parent
2841fada0a
commit
9b6494c94d
|
@ -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}"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user