This commit is contained in:
ㄗㄠˋ ㄑㄧˊ
2020-04-11 12:42:54 +08:00
parent e538e89116
commit 72efdaaa43
2 changed files with 16 additions and 22 deletions

View File

@@ -102,3 +102,15 @@ function containsElement {
done
return 1
}
function bashColor {
if [ $2 ]; then
echo -e "\e[$1;$2m"
else
echo -e "\e[$1m"
fi
}
function bashColorReset {
echo -e "\e[m"
}