############################################################ ### 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 #----------------------------------------------------------- export PS1='\h: [\w] ' #----------------------------------------------------------- # 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/local/pine/pico' #----------------------------------------------------------- # 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:/p/mozilla:/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='/usr/local/gnu/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 #Don't ask... it's magic TEMP=$PWD TEMP=${TEMP#/*$USER} TEMP="${HOME}${TEMP}" cd $TEMP