archrelease: copy trunk to testing-x86_64
[arch-packages.git] / bash / repos / core-x86_64 / system.bashrc
blob3e7fab62a0d1c6c22ed6a4000441d5c477bbf3ad
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   Eterm*|alacritty*|aterm*|foot*|gnome*|konsole*|kterm*|putty*|rxvt*|tmux*|xterm*)
14     PROMPT_COMMAND+=('printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"')
16     ;;
17   screen*)
18     PROMPT_COMMAND+=('printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"')
19     ;;
20 esac
22 if [[ -r /usr/share/bash-completion/bash_completion ]]; then
23   . /usr/share/bash-completion/bash_completion