/usr/lib/games/nethack/nethack-console.sh is in nethack-console 3.4.3-14.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #!/bin/sh
set -e
HACKSTYLE=console
if [ -z "$NETHACKOPTIONS" ]; then
if [ -e $HOME/.nethackrc ]; then
NETHACKOPTIONS=$HOME/.nethackrc
export NETHACKOPTIONS
elif [ -e $HOME/.nethackrc.$HACKSTYLE ]; then
NETHACKOPTIONS=$HOME/.nethackrc.$HACKSTYLE
export NETHACKOPTIONS
elif [ -e $HOME/.nethackrc.tty ]; then
NETHACKOPTIONS=$HOME/.nethackrc.tty
export NETHACKOPTIONS
else
NETHACKOPTIONS=/etc/nethack/nethackrc.$HACKSTYLE
export NETHACKOPTIONS
fi
fi
HACKDIR=/usr/lib/games/nethack
export HACKDIR
HACK=$HACKDIR/nethack-$HACKSTYLE
cd $HACKDIR
exec $HACK "$@"
|