Advertisement
Guest User

angelday

a guest
Aug 24th, 2009
604
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.21 KB | None | 0 0
  1. case "$TERM" in
  2. xterm*)
  3.  
  4. export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}"; echo -ne "\007"'
  5. PS1='\[\e[32;1m\]\h:\w \u\$\[\e[0m\] '
  6. ;;
  7. *)
  8.  
  9. PS1='\h:\w \u\$ '
  10. ;;
  11. esac
  12.  
  13. export PS1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement