# This script is run by bash automatically upon login. # This sets my bash prompt to be the name of the host machine, the current # working directory, and a '$': PS1='\h:\w\$ ' # This includes the programs in my ~/bin directory and in /sys/sdf/bin in the # shell's search path: PATH=$PATH:$HOME/bin:/sys/sdf/bin # This includes the manpages in /sys/sdf/man in man's search path: MANPATH=$MANPATH:/sys/sdf/man # This makes the above changes effective for the rest of the shell session: export PS1 PATH MANPATH # This sets my preferred pager to `less`, keeps `less` from creating a history # file, sets my preferred text editor to Vim, and then exports the changes: PAGER=/usr/bin/less LESSHISTFILE=- EDITOR=/usr/pkg/bin/vim VISUAL=$EDITOR export PAGER LESSHISTFILE EDITOR VISUAL # This tells slrn what file to display for the 'help' command. (I changed most # of the key bindings & had to write my own help file to remember them.) export SLRNHELP=$HOME/share/slrnhelp # This keeps bash from storing command history in a file (thereby saving a bit # of space). unset HISTFILE # This selects a random fortune from one of my personal fortune files to serve # as my ~/.signature -- except on Thursdays, when there's a 50/50 chance of # getting an H2G2 quote. if [ `date +%a` = 'Thu' ] && ((RANDOM % 2)); then echo 'This must be Thursday. I never could get the hang of Thursdays.' > \ ~/.signature else fortune ~/share/sigs > ~/.signature fi # If mx is having problems, uncomment these two lines so that the shell doesn't # stall every 60 seconds as it tries to check for new mail. The second line # causes bash to check for mail on login so that you at least have occasional # notification of new messages. #unset MAILCHECK #if [ -s /mail/$USER ]; then echo "You've got mail"'!'; fi # This line notifies my .bashrc file that my .profile has already been loaded & # doesn't need to be reloaded: export PROFILE_LOADED=1 # Run the other commands found in my .bashrc: . ~/.bashrc