diff options
author | James Meyer <james.meyer@operamail.com> | 2010-09-08 07:33:44 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2010-09-08 07:33:44 (GMT) |
commit | 525753e4a1a139e088d8ac120b19fbab6c0aaaa6 (patch) | |
tree | 35cef28abb613da4f58e83f6abbe4bd4cfa244bf /abs/core-testing/bash/system.bashrc | |
parent | 592e3cad43ef12c53f523145d0fd981b54f2a049 (diff) | |
parent | b172f79fadb565ecfbcec9508f9377d8618a4f4c (diff) | |
download | linhes_pkgbuild-525753e4a1a139e088d8ac120b19fbab6c0aaaa6.zip linhes_pkgbuild-525753e4a1a139e088d8ac120b19fbab6c0aaaa6.tar.gz linhes_pkgbuild-525753e4a1a139e088d8ac120b19fbab6c0aaaa6.tar.bz2 |
Merge branch 'HEAD' of ssh://jams@knoppmyth.net/mount/repository/LinHES-PKGBUILD
Diffstat (limited to 'abs/core-testing/bash/system.bashrc')
-rw-r--r-- | abs/core-testing/bash/system.bashrc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/abs/core-testing/bash/system.bashrc b/abs/core-testing/bash/system.bashrc new file mode 100644 index 0000000..5430d6b --- /dev/null +++ b/abs/core-testing/bash/system.bashrc @@ -0,0 +1,31 @@ +# +# /etc/bash.bashrc +# +# This file is the systemwide bashrc file. While most of the +# environment is preserved when running an interactive shell +# the PS[1-4] variables, aliases and functions are reset. +# +# When running a non-login shell, apply the following settings: +# - Prompt defaults (PS[1-4], PROMPT_COMMAND) +# - bash_completion if it exists +# - source /etc/bash.bashrc.local + +PS1='[\u@\h \W]\$ ' +PS2='> ' +PS3='> ' +PS4='+ ' + +export PS1 PS2 PS3 PS4 + +if test "$TERM" = "xterm" -o \ + "$TERM" = "xterm-color" -o \ + "$TERM" = "xterm-256color" -o \ + "$TERM" = "rxvt" -o \ + "$TERM" = "rxvt-unicode" -o \ + "$TERM" = "xterm-xfree86"; then + PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"' + export PROMPT_COMMAND +fi + +[ -r /etc/bash_completion ] && . /etc/bash_completion +[ -r /etc/bash.bashrc.local ] && . /etc/bash.bashrc.local |