Browse Source

fix: add `colorize` helper (#470)

pull/471/head
Jason Mobarak 9 months ago
committed by GitHub
parent
commit
38a6561f96
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      bin/pyenv-virtualenv

+ 6
- 0
bin/pyenv-virtualenv View File

@ -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…
Cancel
Save