2 # Written for Beyond Linux From Scratch
3 # by James Robertson <jameswrobertson@earthlink.net>
5 # System wide aliases and functions.
7 # System wide environment variables and startup programs should go into
8 # /etc/profile. Personal environment variables and startup programs
9 # should go into ~/.bash_profile. Personal aliases and functions should
12 # By default we want the umask to get set.
13 # Even for non-interactive and non-login shells.
14 if [ "$(id -gn)" = "$(id -un)" -a $(id -u) -gt 99 ] ; then
20 # Provides a colored /bin/ls command. Used in conjunction with code in
22 alias ls='ls --color=auto'
24 # Provides prompt for non-interactive shells, specifically shells started
25 # in the xfree environment. [Review archive thread titled PS1
26 # Environment Variable for a great case study behind this script
28 export PS1="[\u@\h \w]\\$ "