Added bashrc files to make dircolors/prompt working on xterm/konsole etc.

svn path=/nixos/trunk/; revision=11073
This commit is contained in:
Sander van der Burg 2008-03-12 10:18:26 +00:00
parent 9ffb0e8ec4
commit 7c93a71468
2 changed files with 23 additions and 0 deletions

17
etc/bashrc Normal file
View File

@ -0,0 +1,17 @@
#!/bin/sh
# A nice prompt.
PROMPT_COLOR="1;31m"
let $UID && PROMPT_COLOR="1;32m"
PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]$\[\033[0m\] "
if test "x$TERM" == "xxterm"; then
PS1="\033]2;\h:\u:\w\007$PS1"
fi
# Some aliases.
alias ls="ls --color=tty"
alias ll="ls -l"
alias which="type -p"
# Help `rpcgen' find `cpp', assuming it's installed in the user's environment.
alias rpcgen="rpcgen -Y $HOME/.nix-profile/bin"

6
etc/skel/bashrc Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
if [ -f /etc/bashrc ]
then
source /etc/bashrc
fi