system.bashrc 618 B

1234567891011121314151617181920212223
  1. #
  2. # /etc/bash.bashrc
  3. #
  4. # If not running interactively, don't do anything
  5. [[ $- != *i* ]] && return
  6. [[ $DISPLAY ]] && shopt -s checkwinsize
  7. PS1='[\u@\h \W]\$ '
  8. case ${TERM} in
  9. xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
  10. PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
  11. ;;
  12. screen*)
  13. PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
  14. ;;
  15. esac
  16. [ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion