Ask Your Question

System bash prompt is messed up

asked 2018-01-02 12:48:07 -0500

JacobSwanson gravatar image

updated 2018-01-05 05:30:47 -0500

FranciscoD_ gravatar image

I'm using zsh with oh-my-zsh. When I enter bash, the prompt looks like %}%n@%m:%~%#. The same value is returned from echo $PS1.

I don't remember messing with it. What do I need to do in order to fix it for all users on the system?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-01-02 15:32:47 -0500

sideburns gravatar image

Welcome to ask.fedora. That's an odd thing to happen, and I'm not sure what went wrong. However, the default for that is set in /etc/bashrc so that's where I'd look. BTW, it's normally set to [\u@\h \W]\$ if that's what you want.

edit flag offensive delete link more


I'd also check ~/.bashrc and all the files it sources too, in case there are other tools that are messing with these environment variables. It could be related to oh-my-zsh too. I haven't used that so I'm not sure how it modifies settings. I would expect it not to mess with bash configurations but one can't be sure without looking at it in detail.

FranciscoD_ gravatar imageFranciscoD_ ( 2018-01-05 05:29:24 -0500 )edit

Question Tools


Asked: 2018-01-02 12:48:07 -0500

Seen: 102 times

Last updated: Jan 02 '18