# 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 '$':
# This includes the programs in my ~/bin directory and in /sys/sdf/bin in the
# shell's search path:
# This includes the manpages in /sys/sdf/man in man's search path:
# 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.)
# This keeps bash from storing command history in a file (thereby saving a bit
# of space).
# 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.' > \
fortune ~/share/sigs > ~/.signature
# 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.
#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:
# Run the other commands found in my .bashrc:
tutorials_dotfiles_.profile_jwodder.txt · Last modified: 2021/03/24 00:43 by hc9