Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get ~/.bashrc auto loaded when SSH session start? #30

Open
namgivu opened this issue Jul 8, 2017 · 3 comments
Open

How to get ~/.bashrc auto loaded when SSH session start? #30

namgivu opened this issue Jul 8, 2017 · 3 comments

Comments

@namgivu
Copy link

namgivu commented Jul 8, 2017

I try to put in prmpt color in the bashrc flke but it is not loaded automatically i.e. I have to call source ~/.bashrc manually.

@namgivu
Copy link
Author

namgivu commented Jul 8, 2017

@Daniel-Beardsmore
Copy link

Hm I just found the same problem. The default prompt is unhelpful as it omits the hostname, but worse, the hostname may not be set to what you need to correctly identify what the prompt relates to. Even /etc/profile.d/* is seemingly getting skipped. This means that you don't have any automatic visual cue as to what the command prompt belongs to.

I am guessing that bash is being started in such a way that it is bypassing its entire initialisation process. However, if you then type "bash", you'll find that .bashrc gets executed.

@Daniel-Beardsmore
Copy link

Hm I just found the same problem. The default prompt is unhelpful as it omits the hostname, but worse, the hostname may not be set to what you need to correctly identify what the prompt relates to. Even /etc/profile.d/* is seemingly getting skipped. This means that you don't have any automatic visual cue as to what the command prompt belongs to.

I am guessing that bash is being started in such a way that it is bypassing its entire initialisation process. However, if you then type "bash", you'll find that .bashrc gets executed.

It would be useful if the default prompt was "container-name: path # " too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants