* Slurp in ~/.bashrc from /etc/profile (just like SUSE).

* Set a nice prompt.

svn path=/nixos/trunk/; revision=7637
This commit is contained in:
Eelco Dolstra 2007-01-11 16:42:18 +00:00
parent 580f98f1ed
commit e1b9efddcb

View File

@ -95,6 +95,13 @@ export PATH=$PATH
export MODULE_DIR=@kernel@/lib/modules
export NIX_CONF_DIR=/nix/etc/nix
export PAGER=less
PROMPT_COLOR="1;31m"
PS1="\n\[\033[\$PROMPT_COLOR\][\u@\h:\w]\$\[\033[0m\] "
if test "x\$TERM" == "xxterm"; then
PS1="\033]2;\h:\u:\w\007\033]1;\$PS1"
fi
if test "\$USER" != root; then
export NIX_REMOTE=daemon
fi
@ -106,6 +113,8 @@ alias ll="ls -l"
if test -f /etc/profile.local; then
source /etc/profile.local
fi
test -r \$HOME/.bashrc && source \$HOME/.bashrc
EOF