7
if [ -z "$NETHACKOPTIONS" ]; then
8
if [ -e $HOME/.nethackrc ]; then
9
NETHACKOPTIONS=$HOME/.nethackrc
12
NETHACKOPTIONS=/etc/nethack/nethackrc.tty
17
HACKDIR=/usr/lib/games/nethack
19
HACK=$HACKDIR/nethack-$HACKSTYLE
21
# see if we can find the full path name of PAGER, so help files work properly
22
# assume that if someone sets up a special variable (HACKPAGER) for NetHack,
23
# it will already be in a form acceptable to NetHack
24
# ideas from brian@radio.astro.utoronto.ca
25
if test \( "xxx$PAGER" != xxx \) -a \( "xxx$HACKPAGER" = xxx \)
30
# use only the first word of the pager variable
31
# this prevents problems when looking for file names with trailing
32
# options, but also makes the options unavailable for later use from
40
if test ! -f $HACKPAGER
45
if test -f $i/$HACKPAGER
47
HACKPAGER=$i/$HACKPAGER
54
if test ! -f $HACKPAGER
56
echo Cannot find $PAGER -- unsetting PAGER.