|
@ -0,0 +1,27 @@ |
|
|
|
|
|
# |
|
|
|
|
|
# /etc/bash.bashrc |
|
|
|
|
|
# |
|
|
|
|
|
|
|
|
|
|
|
# If not running interactively, don't do anything |
|
|
|
|
|
[[ $- != *i* ]] && return |
|
|
|
|
|
|
|
|
|
|
|
[ $DISPLAY ] && shopt -s checkwinsize |
|
|
|
|
|
|
|
|
|
|
|
#shopt -s direxpand |
|
|
|
|
|
|
|
|
|
|
|
[ -f /etc/bash.custom ] && . /etc/bash.custom || PS1="[\u@\h \W]\$ " |
|
|
|
|
|
|
|
|
|
|
|
case ${TERM} in |
|
|
|
|
|
xterm*|rxvt*|Eterm|aterm|kterm|gnome*) |
|
|
|
|
|
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"' |
|
|
|
|
|
|
|
|
|
|
|
;; |
|
|
|
|
|
screen*) |
|
|
|
|
|
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"' |
|
|
|
|
|
;; |
|
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion |
|
|
|
|
|
|
|
|
|
|
|
# Fix dollar sign escape |
|
|
|
|
|
shopt -u progcomp |