diff options
author | James Meyer <james.meyer@operamail.com> | 2010-10-23 18:17:40 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2010-10-23 18:19:39 (GMT) |
commit | adbcf19958300e9b6598990184c8815b945ba0ee (patch) | |
tree | f4283c850ac0ac202c17e78a637ee7ca8147621b /abs/core/bash/system.bashrc | |
parent | 61a68250df10d29b624650948484898334ff22d0 (diff) | |
download | linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.zip linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.gz linhes_pkgbuild-adbcf19958300e9b6598990184c8815b945ba0ee.tar.bz2 |
Removed old core and extra from repo. Renamed -testing to core/extra. This will setup the base for the testing branch.
Diffstat (limited to 'abs/core/bash/system.bashrc')
-rw-r--r-- | abs/core/bash/system.bashrc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/abs/core/bash/system.bashrc b/abs/core/bash/system.bashrc new file mode 100644 index 0000000..5430d6b --- /dev/null +++ b/abs/core/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 |