2008-03-12 11:18:26 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# A nice prompt.
|
|
|
|
PROMPT_COLOR="1;31m"
|
|
|
|
let $UID && PROMPT_COLOR="1;32m"
|
2008-03-12 12:18:43 +01:00
|
|
|
PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] "
|
2008-03-12 11:18:26 +01:00
|
|
|
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"
|
2008-07-05 02:16:39 +02:00
|
|
|
alias l="ls -alh"
|
2008-03-12 11:18:26 +01:00
|
|
|
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"
|