SHARE
TWEET

/etc/bash.bashrc

a guest Oct 22nd, 2011 72 Never
  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.  
RAW Paste Data
Top