在window下用git bash来模拟linux操作环境,结果发现退格键无法使用,搜索发现下面的操作有用:
Worked for me: In the Windows command prompt, type
(echo; echo "export TERM=cygwin") >> ~/.bash_profile
This will add it to the .bash_profile (not .bashrc, which didn't work for me, and with a leading line break)