[zsh] Update the nethack function to connect over SSH to alt.org
This commit is contained in:
parent
dc6c5bba98
commit
aff206e2a0
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue