mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
1e5f26537d
svn path=/nixos/trunk/; revision=11077
18 lines
420 B
Bash
18 lines
420 B
Bash
#!/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"
|