mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-08 03:23:54 -05:00
fix: add colorize helper (#470)
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user