After updating Git for Windows from 1.9.5 to 2.7.2, python ...
Start Git Bash with C: \ Python27 in your PATH. When you hit python, it's ..
$ python
... it doesn't come back.
Write the following alias around ~ / .bashrc. (And load it with source ~ / .bashrc)
bash
alias python='winpty python.exe'
$ python
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (
Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
It came to start.
By the way, when I installed ipython with pip, the following was added to alias all the time.
alias ipython='winpty ipython.exe'
As a result of investigation, the following mechanism is set. State from Git 2.5.2 (2). This can be found in /etc/profile.d/aliases.sh. It is a mechanism to alias if the command passes the path.
Recommended Posts