Git for Windows: .bashrc or equivalent configuration files for Git Bash shell

1.1K    Asked by CrownyHasegawa in Salesforce , Asked on May 21, 2021

 I've just installed Git for Windows and am delighted to see that it installs Bash.

I want to customize the shell in the same way I can under Linux (e.g. set up aliases like ll for ls -l), but I can't seem to find .bashrc or equivalent configuration files.

What should I be editing?

Top keyword - git bash bashrc

Answered by Emma Cornish

For git bash bashrc, you need to create a .bashrc file under ~/.bashrc

~ is usually your C:Users folder.

Typing echo ~ in the git bash bashrc will tell you what that folder is.

If you are unable to create then use this command:

copy > ~/.bashrc

This will give you an error that the command is not found but this will create the configuration file under ~/.bashrc folder.



Your Answer

Interviews

Parent Categories