how to get bash prompt on login
- by user419534
When I connect to remote machine uisng ssh, by default it is not on bash prompt. To get bash prompt by default on login I did as below by create .cshrc file in my home directory
if ($?prompt) then
setenv SHELL /bin/bash
exec $SHELL -login
endif
It works well and I am getting bash shell but I have another file as .bashrc in my home directory which gets executed when i run bash explicitly and I have done lot of customization in this file as per my requirement. 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 host B but not with bash prompt. To get bash prompt I created .cshrc as mentioned above but my above code snippet does not call my .bashrc script.