Advertisement
msjche

2012 11 03 - PS1s

Nov 3rd, 2012
1,023
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. here are my PS1s for those who like them:
  2.  
  3. if you don't have a /root/.bashrc type this into the terminal:
  4.  
  5. cp /etc/skel/.bashrc /root/
  6.  
  7. comment out (#) the existing PS1 and paste these
  8.  
  9. ------------------------------------------------------------
  10.  
  11. ~ /.bashrc:
  12.  
  13. PS1='\[\e[0;32m\]\u\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]'
  14.  
  15. ------------------------------------------------------------
  16.  
  17. /root/.bashrc
  18.  
  19. PS1="\[\e[01;31m\][\[\e[01;35m\u\e[01;31m\]@\[\e[00;37m\]${HOSTNAME%%.*}\[\e[01;31m\]]: \[\e[01;32m\]\w #\[\e[01;36m\]\n\\n\[\e[01;31m\]\[\e[01;36m\]-----> \[\e[0m\]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement