how to get bash prompt on login
Posted
by
user419534
on Super User
See other posts from Super User
or by user419534
Published on 2012-05-31T15:35:19Z
Indexed on
2012/06/02
4:44 UTC
Read the original article
Hit count: 205
shell
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.
© Super User or respective owner