mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2026-09-10 07:16:18 -04:00
fix: add colorize helper (#470)
This commit is contained in:
parent
c85c1c9ed5
commit
38a6561f96
|
|
@ -54,6 +54,12 @@ parse_options() {
|
|||
done
|
||||
}
|
||||
|
||||
colorize() {
|
||||
if [ -t 1 ]; then printf "\e[%sm%s\e[m" "$1" "$2"
|
||||
else echo -n "$2"
|
||||
fi
|
||||
}
|
||||
|
||||
resolve_link() {
|
||||
$(type -p greadlink readlink | head -1) "$1"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue