1

I'm using rainmeter to make a custom dashboard for windows and ran into a problem making a custom start button for git bash needing it to open to my root directory.

The odd part is I have gitbash added to my windows taskbar and the target is..

"C:\Program Files (x86)\Git\bin\sh.exe" --login -i

That opens to my user root.. MyName@MYNAME

But if I create a link in rainmeter using that same link it takes me to.. MyName@MYNAME /usr/bin

That makes zero sense to me. How can I make it open to my root?

1 Answers1

0

Try running this command. It adds a line to the .bashrc file and that should cd you to root.

echo cd / >> ~/.bashrc

It should open your gitbash to root everytime you open the shell.

dagrha
  • 265