Git for Windows doesn't execute my .bashrc file

后端 未结 4 2093
渐次进展
渐次进展 2020-12-24 00:57

I\'ve just installed Git for Windows 2.5.0 on Windows 7, and it appears that my .bashrc file is not being executed when I run Git Bash.

I created the fi

4条回答
  •  星月不相逢
    2020-12-24 01:21

    A bit late on this answer perhaps, but you could call bash with the -rcfile argument followed by the location of your .bashrc file.

    bash -rcfile C:\Users\name\.bashrc
    

    I've added this to the end of my PowerShell profile (.ps1 file) so that Powershell automatically opens in bash and configured to my preferences.

提交回复
热议问题