diff options
author | root <root@rshg054.dnsready.net> | 2012-07-12 00:04:35 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-07-12 00:04:35 +0000 |
commit | 00d32b0938eebfa45f0543cae655abf5233eb99c (patch) | |
tree | 7528e734c1f6f955da0baca5909906e797562c09 /testing/bash/system.bashrc | |
parent | b44e3e7f16abe5e4cb428571db65d300b7cc44be (diff) |
Thu Jul 12 00:04:34 UTC 2012
Diffstat (limited to 'testing/bash/system.bashrc')
-rw-r--r-- | testing/bash/system.bashrc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/bash/system.bashrc b/testing/bash/system.bashrc new file mode 100644 index 000000000..a2231e861 --- /dev/null +++ b/testing/bash/system.bashrc @@ -0,0 +1,23 @@ +# +# /etc/bash.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +PS1='[\u@\h \W]\$ ' +PS2='> ' +PS3='> ' +PS4='+ ' + +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 |