From 579754ec76cd35e6fcfb5cbf2cadd6fbdbdf7ab4 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Mon, 3 Feb 2014 21:09:23 -0800 Subject: [PATCH] Add nethack function -- telnets to nethack.alt.org if command doesn't exist --- rc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rc b/rc index 1fd058b..ae74b7c 100644 --- a/rc +++ b/rc @@ -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"