# .bash_aliases_pers
# 
# customized personal configuration file
# if it exists in $HOME, executed after .bash_aliases
#
#set here:
# SIGN, sign, .signature		#dot signature for mail, etc
# EDITOR, VISUAL, FCEDI		#select readline/history editor = vi
# HDIRSEX = H HH HL ...		#mnemonics for top level dirs under $HOME
# CDPATH			#based upon HDIRSEX
# aliases			#for rlogin/ssh to local/uofa machines
#	iris, server, pbg4
#	bartok, optima, research


# set this up as you wish, by editing and removing the comments
# note that the SIGN string is a single long line
SIGN='John Rupley\n    rupley@u.arizona.edu  -or-  jar@rupley.com\n    30 Calle Belleza, Tucson AZ  85716 - (520) 325-4533; fax - (520) 325-4991\n    Dept. Biochemistry & Molecular Biophysics, Univ. Arizona, Tucson AZ 85721';export SIGN
sign=$SIGN; export sign
echo $SIGN > $HOME/\.signature

# you may not want to use vi commands for the shell editor, etc
EDITOR=/usr/bin/vi; export EDITOR
VISUAL=/usr/bin/vi; export VISUAL
FCEDIT=/usr/bin/vi; export FCEDIT

# you may want to use more or less
# NB: PAGER may not be used by bash or mac os-x or scripts
# PAGER=/usr/bin/pg; export PAGER
PAGER=/usr/bin/more; export PAGER

# it's easy to get used to a long list of two-letter mnemonics
# if the alternative is typing 5 - 10 - 20 - more... characters
# revise this list to accord with your directory tree and needs
# your default directory tree may not be to your taste;
# if not, please delete and add directories as appropriate
# NB: this stuff is really not used anymore, with completion, etc.
H=$HOME
HH=$H/help
HL=$H/bin
HM=$H/memos
HS=$H/src
HST=$H/store
HW=$H/words
HWN=$H/words/new
HDIRSEX="H HH HL HM HS HST HW HWN "
export $HDIRSEX
export HDIRSEX


# CDPATH eases movement through directory tree
# works for all directories on or immediately depended from CDPATH
# eg "cd filelists" -> /usr/local/opsys/filelists
# if /usr/local/opsys is in CDPATH
# arrange directory names so that unique through first level below cdpath
# revise this list to accord with your directory tree and needs
CDPATH=":\
..:\
$H:\
$H/help:\
$H/memos:\
$H/words:\
$H/src:\
$H/store:\
/usr/share/X11"
export CDPATH


# following are various aliases and functions that customize 
# to my taste - no need for you to keep them, and please add
# more of your own

# rlogins to various accounts (generally on which .rhosts has been set)
# insert your account name for each machine as appropriate
# alias mnemonic="rlogin acct_name@machine_name"
alias iris="rlogin 10.0.0.8"
alias server="rlogin 10.0.0.2"
alias pbg4="rlogin 10.0.0.6"
alias pmg5="rlogin 10.0.0.4"
alias imac="rlogin 10.0.0.5"


alias bartok="rlogin rupley@bartok.biosci.arizona.edu"
alias optima="rlogin rupley@optima.cs.arizona.edu"
alias research="ssh -l rupley  research.u.arizona.edu"

#csj \- function for cd to NSF-mounted directory = server:~jar/[$1]
csj() { 
builtin cd /mntA/usr1/jar/$1
if [ $? -eq 0 ]
then
        push
fi
}

#csm \- function for cd to NSF-mounted directory = server:~jar/memos/[$1]
csm() { 
builtin cd /mntA/usr1/jar/memos/$1
if [ $? -eq 0 ]
then
        push
fi
}

# OLD ALIASES (inactive):
#
# mail \- alias for "Mail" = be sure to use mail_bsd
#alias mail=Mail
#
# netmail \- launch netscape mail
#alias netmail="netscape -messenger &"
#
# whereis \- alias for whereis to search PATH and MANPATH
#alias whereis="whereis -P"
