Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

/etc/bash.bashrc

By: a guest on Oct 22nd, 2011  |  syntax: Bash  |  size: 0.62 KB  |  views: 71  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #
  2. # /etc/bash.bashrc
  3. #
  4.  
  5. # If not running interactively, don't do anything
  6. [[ $- != *i* ]] && return
  7.  
  8. PS1='[\u@\h \W]\$ '
  9. PS2='> '
  10. PS3='> '
  11. PS4='+ '
  12.  
  13. case ${TERM} in
  14.   xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
  15.     PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
  16.                                                        
  17.     ;;
  18.   screen)
  19.     PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
  20.     ;;
  21. esac
  22.  
  23. [ -r /etc/bash_completion   ] && . /etc/bash_completion
  24.