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