diff options
author | root <root@rshg054.dnsready.net> | 2012-05-06 00:02:44 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-05-06 00:02:44 +0000 |
commit | f37e773fe397778858ea8d51601554863c252536 (patch) | |
tree | 9997e525a9baeb85d09bd8e0c12e750781810755 /testing/bash/system.bashrc | |
parent | 5801c5acd80d30d17aaef76b8bc401c61b3ef3c9 (diff) |
Sun May 6 00:02:43 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 |