0

There is something I am not understanding. I have used the method found here about changing user default directory using vipw /etc/passwd

However once I go into this file and change a user default dir setting their bash prompt changes to, from my machine from ex. "[root@directory ~]#" to "bash-4.1$"

Now if I try to change the global bash prompt $PS1 the user with change dir having bash-4.1$ cannot see the custom prompt.

What is this behavior?

1 Answers1

1

You changed your home directory, but you probably left the files in the old directory.

When bash is invoked it reads and executes some files, some of them in your home directory (for example ~/.profile).

Since you changed your home directory it doesn't find them. So any configurations you find in those files (like your prompt) won't get applied to your bash.