after installing Cygwin on my Windows machine, the Git Bash is broken. Every time I try to execute a command the following error occurs:
sh.exe”: tput: command not found
Even reinstalling Git (Bash) didnt help…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This problem is now solved. There was a weird .bashrc in my documents (at
~\.bashrc) that set$PS1to a new value by using colors with the help of the tput command. This does not exist in Git Bash and its not supposed to be there.After commenting out the line where the
$PS1was set/exported all went normal again.The line was something like
(I dont remember it correctly.)
I dont know where it came from, maybe I accidentally copied it in there for cygwin…