From 0c1edefe6a5e2b7e11e9d3fba28f1aa39317f42e Mon Sep 17 00:00:00 2001 From: Shoichi Aizawa Date: Tue, 3 Oct 2017 15:25:43 +0900 Subject: [PATCH] Do not create `tput` shim when Anaconda is selected Add `tput` to the Anaconda's default blacklist in order to prevent pyenv from creating the shim script for it. Anaconda 5.0.0 contains some executables which are part of the base system. Many of these executables did not exist in the last major version of Anaconda (`4.4.0`), and the existence of pyenv's shim scripts for these executables in `5.0.0` can cause to conceal those executables in the user's base system; for the details, please see the discussion with @yyuu at #992. This commit resolves a coloured output error when running a terminal command which uses `tput`. This error occurs when multiple Python versions are installed alongside `anaconda2-5.0.0` or `anaconda3-5.0.0` and neither of those two Anaconda versions is selected by pyenv. --- pyenv.d/rehash/conda.d/default.list | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyenv.d/rehash/conda.d/default.list b/pyenv.d/rehash/conda.d/default.list index c9de5ca1..30f66abf 100644 --- a/pyenv.d/rehash/conda.d/default.list +++ b/pyenv.d/rehash/conda.d/default.list @@ -27,6 +27,8 @@ xml2-config # libxml2-utils xmlcatalog xmllint +# ncurses +tput # openssl openssl # qtchooser