[zsh] Update the nethack function to connect over SSH to alt.org

This commit is contained in:
Eryn Wells 2022-04-11 15:15:04 -07:00
parent dc6c5bba98
commit aff206e2a0

View file

@ -1,5 +1,4 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
# vim: set ft=zsh:
# Eryn Wells <eryn@erynwells.me> # Eryn Wells <eryn@erynwells.me>
function nethack function nethack
@ -17,14 +16,14 @@ function nethack
done done
if (( $remote )) && binary_exists nethack; then if (( $remote )) && binary_exists nethack; then
telnet nethack.alt.org ssh nethack@alt.org
return $? return $?
else else
if binary_exists nethack; then if binary_exists nethack; then
command nethack command nethack
return $? return $?
else else
telnet nethack.alt.org ssh nethack@alt.org
return $? return $?
fi fi
fi fi