标签: python bash git
我是新手,所以请不要为我表现出的任何文盲而嘲笑我!
我能够使Python在Git Bash中已经可以工作,但是为此,我每次打开Git Bash时都必须输入以下命令,然后才能进入交互模式。
alias python='winpty python.exe'
每次我登录命令行时都必须执行此操作。如何确保Git Bash在登录后自动执行此功能?
答案 0 :(得分:0)
启动“ Git Bash”,然后执行类似的操作:
$ echo 'alias python="winpy python.exe"' >> .bashrc
然后退出“ Git Bash”并重新启动。您会看到类似这样的内容:
现在运行alias,您应该看到以下内容:
alias
$ alias alias python ='winpy python.exe' alias ll='ls -l' alias ls='ls -F --color=auto --show-control-chars'