When I connect to a remote machine using SSH, by default it is not on the bash prompt. To get the bash prompt by default on login I did as below by creating a .cshrc file in my home directory:
if ($?prompt) then setenv SHELL /bin/bash exec $SHELL -login endif
It works well and I am getting the bash shell but I have another file as .bashrc in my home directory which gets executed when I run bash explicitly. I have done lot of customization in this file as per my requirements. Is it possible to get my .bashrc executed somehow from .cshrc or some other way?
For example I need to go connect to host B from host A, I do this:
From A -> ssh B
This brings up host B but not with a bash prompt. To get a bash prompt I created .cshrc as mentioned above but my above code snippet does not call my .bashrc script.