Calling the python command directly from Git Bash...

For some reason, Git Bash doesn't like it when you try to call python commands directly. But cmd is for chumps. So, we must make Python work for us in Git Bash. The command to rectify this is as follows: 

echo "alias python='winpty python.exe'" >> ~/.bashrc

It can be run from any directory. It will persist even after closing and reopening Git Bash. 

Credit goes to this StackOverflow post but I'm going to put it here so that way I don't forget (because I'm sure I'll need to do it on my home PC too at some point). 

Results:



Comments

Popular posts from this blog

Unleashing my inner Disney Princess ✩₊˚.⋆☾⋆⁺₊✧ at the 2024 Disney Princesses Half Marathon

The 20-something types of Computer Science majors

The Evenstar