Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (29.3k points)

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?

1 Answer

0 votes
by (50.2k points)

For this issue, you need to create a .bashrc file under ~/.bashrc

~ is usually your C:\Users\<your user name> folder.

Typing echo ~ in the Git Bash terminal 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 command not found but this will create the configuration file under ~/.bashrc folder.

Related questions

+4 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories