I wrote this shell script, because each time I opened Windows WSL, I had to manually start the ssh-agent and add my github private key to it, so that I may access Github using the shell π€.
Well now, you can have this, do that for you! πππ
- Either download or clone this repo
- Edit
boot.shand change the location on line #5 to the path where your github private key is located. - Copy the path to the
boot.shfile bycd boot-github-shell-win- Copy output of
pwd
- Make the file executable by
chmod u+x boot.sh - In case you want this to execute each time you log in, add the following to either your
~/.profileor~/.bash_loginfile:source <path-to-boot-sh-from-step-2.2>
Et Voila! π₯πΌ
You may opt to print details around the execution by calling the script with the -v flag like so: bash boot.sh -v