Advertisement
PC_Aide

PS1= in .bashrc

May 24th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.53 KB | None | 0 0
  1. # http://ezprompt.net/ - .bashrc PS1 generator
  2. # Edit 60L
  3. # reload bashrc > . ~/.bashrc
  4. # O/P > https://imgur.com/VcdYmaV
  5.  
  6. #Debian 9.6 xfce
  7. #File for root: ~/.bashrc
  8. #[21:17]dir$ <-- O/P -->  https://imgur.com/YKmpCBB
  9. PS1="[\[\e[31m\]\A\[\e[m\]]\[\e[36;40m\]\W\[\e[m\]\\$ "
  10.  
  11. #File for user: "/home/debian/.bashrc"
  12.  
  13.  
  14. #Ubuntu
  15. #File -> /root/.bashrc
  16. #switch PS1= -> Ln55 (after else)
  17. #[21:59@host~/dir]$ <-- O/P -> https://imgur.com/MNdoCA0
  18. PS1="[\[\e[31m\]\A\[\e[m\]@\[\e[32m\]\h\[\e[m\]\[\e[36m\]\w\[\e[m\]]\[\e[33m\]\\$\[\e[m\] "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement