I’ve just installed Git for Windows and am delighted to see that it installs Bash.
I want to customise 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?
Create a
.bashrcfile under~/.bashrcand away you go. Similarly for~/.gitconfig.~is usually yourC:\Users\<your user name>folder. Typingecho ~in the Git Bash terminal will tell you what that folder is.If you can’t create the file (e.g. running Windows), run the below command:
The window will output an error message (command not found), but the file will be created and ready for you to edit.
Alternatively, you can create the
~/.bashrcfile with: