Advertisement
tobast

ps1

Oct 28th, 2015
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. #!/bin/bash
  2. # Sets the PS1
  3.  
  4. _tbold="\[$(tput bold)\]"
  5. _treset="\[$(tput sgr0)\]"
  6. _tred="\[$(tput setaf 1)\]"
  7. _tblue="\[$(tput setaf 4)\]"
  8. _tmag="\[$(tput setaf 5)\]"
  9.  
  10. export PS1="${_tbold}[${_tred}\u@\h ${_tblue}\W${_treset}${_tbold}]\\$ ${_treset}"
  11.  
  12. unset _t{bold,reset,red,blue,mag}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement