From 7c93a71468e7d5813e589798d515da4bc9f50bf9 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Wed, 12 Mar 2008 10:18:26 +0000 Subject: [PATCH] Added bashrc files to make dircolors/prompt working on xterm/konsole etc. svn path=/nixos/trunk/; revision=11073 --- etc/bashrc | 17 +++++++++++++++++ etc/skel/bashrc | 6 ++++++ 2 files changed, 23 insertions(+) create mode 100644 etc/bashrc create mode 100644 etc/skel/bashrc diff --git a/etc/bashrc b/etc/bashrc new file mode 100644 index 00000000000..4b3234d89f7 --- /dev/null +++ b/etc/bashrc @@ -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" diff --git a/etc/skel/bashrc b/etc/skel/bashrc new file mode 100644 index 00000000000..ef536c132c9 --- /dev/null +++ b/etc/skel/bashrc @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ -f /etc/bashrc ] +then + source /etc/bashrc +fi