When using su admin, the prompt becomes
I had thought thought that perhaps that was because my .bash_profile file in /Users/admin wasn't configured.
I copied over a similar file from my standard account /Users/drobati/.bash_profile
Closed terminal and reopened.
Typed in su admin again and nothing changed.
I'm aware that /etc/profile calls to /etc/bashrc. Unfortunately the variable within /etc/bashrc is PS1='\h:\W \u\$ '
This doesn't equal the prompt im currently getting. This prompt equals '\s-\v\$ '
Where is the $PS1 variable stored when su is used in a standard session? Is there a command that can tell me where $PS1 is being changed?
Code:
bash-3.2$
I had thought thought that perhaps that was because my .bash_profile file in /Users/admin wasn't configured.
I copied over a similar file from my standard account /Users/drobati/.bash_profile
Closed terminal and reopened.
Typed in su admin again and nothing changed.
I'm aware that /etc/profile calls to /etc/bashrc. Unfortunately the variable within /etc/bashrc is PS1='\h:\W \u\$ '
This doesn't equal the prompt im currently getting. This prompt equals '\s-\v\$ '
Where is the $PS1 variable stored when su is used in a standard session? Is there a command that can tell me where $PS1 is being changed?