[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
 | 
			
		||||
# vim: set ft=zsh:
 | 
			
		||||
# Eryn Wells <eryn@erynwells.me>
 | 
			
		||||
 | 
			
		||||
function nethack
 | 
			
		||||
| 
						 | 
				
			
			@ -17,14 +16,14 @@ function nethack
 | 
			
		|||
    done
 | 
			
		||||
 | 
			
		||||
    if (( $remote )) && binary_exists nethack; then
 | 
			
		||||
        telnet nethack.alt.org
 | 
			
		||||
        ssh nethack@alt.org
 | 
			
		||||
        return $?
 | 
			
		||||
    else
 | 
			
		||||
        if binary_exists nethack; then
 | 
			
		||||
            command nethack
 | 
			
		||||
            return $?
 | 
			
		||||
        else
 | 
			
		||||
            telnet nethack.alt.org
 | 
			
		||||
            ssh nethack@alt.org
 | 
			
		||||
            return $?
 | 
			
		||||
        fi
 | 
			
		||||
    fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue