Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2014
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.60 KB | None | 0 0
  1. # login and computer name                                                      
  2. PS1='[\e[\[1;37m\]\]\u\e[\[m\]\]@\e[\[1;32m\]\]\h\e[\[m\]\]] '                  
  3. # date, time                                                                    
  4. PS1=$PS1'[\e[\[1;34m\]\]\D{%Y-%m-%d} \e[\[1;35m\]\]\t\e[\[m\]\]] '              
  5. # working directory and result of last command                                  
  6. PS1=$PS1'\e[\[1;33m\]\]\w\e[\[m\]\] \e[\[1;31m\]\]${?#0}\e[\[m\]\]\n '          
  7. # command prompt                                                                
  8. PS1=$PS1'\e[\[1;36m\]\]\$\e[\[m\]\] '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement