mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-08 11:33:55 -05:00
fix: add colorize helper (#470)
This commit is contained in:
@@ -54,6 +54,12 @@ parse_options() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
colorize() {
|
||||||
|
if [ -t 1 ]; then printf "\e[%sm%s\e[m" "$1" "$2"
|
||||||
|
else echo -n "$2"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
resolve_link() {
|
resolve_link() {
|
||||||
$(type -p greadlink readlink | head -1) "$1"
|
$(type -p greadlink readlink | head -1) "$1"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user