executing a custom init script for bash --login -i for example to change to a custom directory from a shortcut -
right i'm using msysgit on windows 7, started .bat file, calls bash.exe --login -i
start shell. @ point executes .bashrc file (among others) in user's home directory. use script setup environment , cd
starting directory.
this works fine. change .bat file in way bash execute custom script @ startup in script perform different initialization , cd different starting directory. have 2 separate .bat files calling each script, make shortcut both on desktop , start whichever want.
the thing i'm not sure how do, bash run custom init script on startup. command msysgit uses bash.exe --login -i
. there way can modify use custom file? tried bash.exe --login --rcfile 01.txt -i
didn't work. likewise nothing else tried worked either.
try without --login
:
bash.exe --rcfile 01.txt -i
Comments
Post a Comment