UNIX / How to configure the Bash shell

Home | UNIX | Practical

How to configure the Bash shell


Add this to /etc/bashrc or ~/.bashrc,
LANG=en_US; export LANG
CVS_RSH=ssh; export CVS_RSH
[[ "$USER" = "root" ]] && PS1="\h# " || PS1="\h> "
  #http_proxy=proxy.example.com:8080; export http_proxy

Note. As for AIX, use this LANG instead,
LANG=C; export LANG

Note. as for Solaris, use this one,
LANG=en_US.ISO8859-1; export LANG
and make sure /usr/sfw/bin is also in the PATH

Note. When you're done configuring the system, you may want to cleanup the history,
history -c

When you got a freaked up shell,
reset



Sat Nov 8 12:19:48 CET 2008
       © 2008 Pierre-Philipp Braun