Issue
PS1 is declared three times in .bashrc
screenshot
The command prompt says: pradeep@home:~$
prompt
How to make it say: pradeep@home
?
Solution
You may change the assignments to PS1='\u@\h '
or place this last in the particular startup file.
An excellent resource to read that will make you a shell guru is man bash
, which has all the details about PS1 magic and startup file search sequence.
Answered By - Jens Answer Checked By - Timothy Miller (WPSolving Admin)