I am using the Bash shell with Git in Windows. I have a number of aliases I wish to setup when I open the shell. Is there a configuration file that is invoked for each Bash instance that is brought up?
On Windows, the simplest way of running a program at startup is to place an executable file in the Startup folder. All the programs that are in this folder will be executed automatically when the computer opens. You can open this folder more easily by pressing WINDOWS KEY + R and then copying this text shell:startup .
To assign computer startup scriptsIn the console tree, click Scripts (Startup/Shutdown). The path is Computer Configuration\Windows Settings\Scripts (Startup/Shutdown). In the results pane, double-click Startup. In the Startup Properties dialog box, click Add.
Thanks @Blender, that was the answer. Here is what I did...
Start bash (Git bash)
cd
touch .bashrc
notepad .bashrc
source .bashrc # To make changes available without restart
entered aliases...save
close bash
start bash
aliases are now available!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With