Add nethack function -- telnets to nethack.alt.org if command doesn't exist
This commit is contained in:
parent
d1c11965a2
commit
579754ec76
1 changed files with 10 additions and 0 deletions
10
rc
10
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
|
# NetHack options
|
||||||
# use color in the terminal
|
# use color in the terminal
|
||||||
binary_exists nethack && export NETHACKOPTIONS="color"
|
binary_exists nethack && export NETHACKOPTIONS="color"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue