0 votes
1 view
in Devops and Agile by (28.1k 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 (48k 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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !