mirror of
https://example.com
synced 2024-11-23 08:06:39 +09:00
17 lines
194 B
Text
17 lines
194 B
Text
color() {
|
|
if [ -t 1 ]; then
|
|
tput setaf "${1:-7}"
|
|
fi
|
|
}
|
|
|
|
say() {
|
|
color 5 # magenta
|
|
echo -e "( ^-^) < $1"
|
|
color
|
|
}
|
|
|
|
running() {
|
|
color 3 # yellow
|
|
echo "[running] \$ $1"
|
|
color
|
|
}
|