* Slurp in ~/.bashrc from /etc/profile (just like SUSE).
* Set a nice prompt. svn path=/nixos/trunk/; revision=7637
This commit is contained in:
parent
580f98f1ed
commit
e1b9efddcb
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user