You need edit the file .bash_profile,
-
Open the terminal
-
Run the command to edit:
nano .bash_profile
-
Insert this line:
export PS1=”[\e[0;31m]\u[\e[0;36m]@[\e[1;36m]\h[\e[1;34m]:[\e[1;33m]\w[\e[0;31m]$ [\e[0;37m]”
-
Ctrl+X to save, close and open again the temrinal
-
You will get a
user@host:~/working/dir $
2
solved How to show the Linux command line on 1 row? [closed]