Add nethack function -- telnets to nethack.alt.org if command doesn't exist

This commit is contained in:
Eryn Wells 2014-02-03 21:09:23 -08:00
parent d1c11965a2
commit 579754ec76

10
rc
View file

@ -73,6 +73,16 @@ function configure_ls
}
function nethack
{
if binary_exists nethack; then
command nethack
else
telnet nethack.alt.org
fi
}
# NetHack options
# use color in the terminal
binary_exists nethack && export NETHACKOPTIONS="color"