archrelease: copy trunk to extra-x86_64
[arch-packages.git] / bash / trunk / system.bashrc
blobc484b2bc771691e2f4462271efaaf3da9ef9adfd
2 # /etc/bash.bashrc
5 # If not running interactively, don't do anything
6 [[ $- != *i* ]] && return
8 [[ $DISPLAY ]] && shopt -s checkwinsize
10 PS1='[\u@\h \W]\$ '
12 case ${TERM} in
13   xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
14     PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
16     ;;
17   screen*)
18     PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
19     ;;
20 esac
22 [ -r /usr/share/bash-completion/bash_completion   ] && . /usr/share/bash-completion/bash_completion