############################################################ ### ABOUT this file ### This file belongs in your home diectory and should ### be named ".bashrc" ### ~/.bashrc: is automaticaly executed by bash when it ### is started. If you change anything in this file you ### will need to either logout and login again or type ### "source .bashrc" in order to have your changes take ### effect. ### Last Updated by Dan Noland Fri Sep 6 17:42:39 EST 2002 ############################################################ #----------------------------------------------------------- # ABOUT PS1 # PS1 is an environment variable that determines how your # prompt looks. You can write any text message you like # and it will print it out every time you get a prompt. In # addition you have the following special codes that do # special things if placed in your PS1 variable # # \a an ASCII bell character (damn this is annoying) # \d the date in "Weekday Month Date" format (e.g., "Tue May 26") # \h the short hostname (up to the first `.') # \H the full hostname # \n a newline # \s the name of the shell # \t the current time in 24-hour HH:MM:SS format # \T the current time in 12-hour HH:MM:SS format # \@ the current time in 12-hour am/pm format # \u the username of the current user # \v the version of bash (e.g., 2.00) # \V the release of bash, version + patchlevel (e.g. 2.00.0) # \w the current working directory # \W the basename of the current working directory # \! the history number of this command # \# the command number of this command # \\ a backslash # \[ begin a sequence of non-printing characters, which # could be used to embed a terminal control sequence # into the prompt # \] end a sequence of non-printing characters # # Silly prompts are popular I have seen a dozen variations of # export PS1='\u is awesome % ' # Last Updated by Dan Noland Fri Sep 6 17:42:39 EST 2002 #----------------------------------------------------------- #eval `dircolors -b` # Avoid trouble with Emacs shell mode if [ `id -u` -eq 0 ] ; then if test "$EMACS" = "t" ; then PS1='\h: [\w] # '; else PS1='\h: [\w] \[\e[31;40m\]$ \[\e[0m\]'; fi else if test "$EMACS" = "t" ; then PS1='\h: [\w] $ '; else PS1='\h: [\w] \[\e[32;40m\]$ \[\e[0m\]'; fi fi export PS1 #----------------------------------------------------------- # ABOUT EDITOR # EDITOR is an environment variable that indicates what # your favorite program for editing text files is. # Last Updated by Dan Noland Fri Sep 6 17:42:39 EST 2002 #----------------------------------------------------------- export EDITOR='/usr/bin/emacs'; #----------------------------------------------------------- # ABOUT PATH # PATH is an environment variable that tells the shell # where to look for executable programms. When you type # something like "emacs &" on the command line the shell # does not automaticaly know where to find emacs. It will # say "Command not found." however if you add some # directories to your path it will look in those directories # in the order they are given for a file called emacs. # It will run the first file called emacs that it finds. # If it goes through all the directories in your path # without finding a file called emacs then it will # report "Command not found." In general it is a bad idea # to mess with this variable if you don't know what you # are doing # Last Updated by Dan Noland Fri Sep 6 17:42:39 EST 2002 #----------------------------------------------------------- #export PATH=$HOME/bin:/usr/local/gnu:/usr/bin:/usr/local/bin:/usr/local/pine:/usr/ccs/bin:/usr/sbin:/opt/SUNWspro/bin:/p/X11:/p/Motif:/p/nmh:/p/news:/p/xemacs:/p/www:/p/misc:/p/pbm:/p/gnu:/p/acrobat4/bin:/p/staroffice:/p/TeX/bin:/p/vim:. #----------------------------------------------------------- # ABOUT MANPATH # MANPATH is an environment variable similar to PATH # that tells man what directories to look in in order to # find man pages. # Last Updated by Dan Noland Fri Sep 6 17:42:39 EST 2002 #----------------------------------------------------------- #export MANPATH=/usr/man:/usr/share/man:/usr/local/X11/man:/usr/X/share/man:/usr/local/X11R5/man:/usr/local/Motif/man:/usr/local/MH/man:/usr/local/news/man:/usr/local/www/man:/usr/local/misc/man:/usr/local/pbm/man:/usr/local/gnu/man:/p/pgp-6.5.8/man #----------------------------------------------------------- # ABOUT PAGER # Some programms such as man and mail use a pager to # display their output on the screen. Which pager these # programs use is determined by the PAGER environment variable. # Last Updated by Dan Noland Fri Sep 6 17:42:39 EST 2002 #----------------------------------------------------------- export PAGER='less -i -M'; #----------------------------------------------------------- # ABOUT umask # umask is a program that sets the mask that determines # what permisions newly created files should have. # You can change the permisions later using the chmod command. # default file permisions: owner-full / group-none / world-none # Last Updated by Dan Noland Fri Sep 6 17:42:39 EST 2002 #----------------------------------------------------------- #umask 077 LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:*.h=03;36:*.hpp=03;36:*.c=03;31:*.cpp=03;31:'; export LS_COLORS LS_OPTIONS='-hF --color=auto' # # Avoid trouble with Emacs shell mode # if test "$EMACS" = "t" ; then LS_OPTIONS='-hF --color=none'; PS1='\h: [\w] $ '; export PS1 tset -I -Q stty cooked pass8 dec nl -echo fi export LS_OPTIONS ## DON'T EVER *BEEP* AT ME! set bell-style visible alias ls='ls $LS_OPTIONS'