From e1b9efddcbed203e6688f6d246b6d7918648c491 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 11 Jan 2007 16:42:18 +0000 Subject: [PATCH] * Slurp in ~/.bashrc from /etc/profile (just like SUSE). * Set a nice prompt. svn path=/nixos/trunk/; revision=7637 --- system/activate-configuration.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/system/activate-configuration.sh b/system/activate-configuration.sh index 647ba768d449..57fbb9502019 100644 --- a/system/activate-configuration.sh +++ b/system/activate-configuration.sh @@ -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