Bash Command prompt gone: Fixed

So.. I did a update recently, I think to bash. Now when I load my SSH, I get;

-bash-3.2# (cursor)

If I type "bash" it reads my .bashrc profile properly.. giving;

[user@myhostname] ~ $ (cursor)

Why is it doing this? I'm confused :|

Should I set a default PS1, is it not detecting PuTTY as interactive login, or am I doing something wrong?

2 Replies

I believe Bash uses .bashprofile for interactive logins, and .bashrc otherwise. You can put the following in .bashprofile to have it read .bashrc:

source .bashrc

wow.. that worked, I feel dumb now.. lol

Thanks man!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct