Created
June 15, 2016 22:54
-
-
Save ddschmitz/a0bc925d18c152b1ccde245898dd7127 to your computer and use it in GitHub Desktop.
Quick-SSH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/fish | |
# | |
# Author: Darrin Schmitz | |
# Date: 04/14/2016 | |
function qssh | |
set option $argv | |
if not count $argv > /dev/null | |
printf "\n\n\nWhere would you like to connect to?\n\n" | |
printf "1) [email protected]\n\n" #Replace these with the connections you wish to make. | |
printf "2) \n\n" | |
printf "3) \n\n" | |
printf "4) \n\n" | |
printf "5) \n\n" | |
printf "6) \n\n" | |
printf "7) \n\n" | |
printf "8) \n\n" | |
printf "9) \n\n" | |
printf "10) \n" | |
read -p 'echo ""' option | |
end | |
switch $option | |
case 1 | |
printf "ssh [email protected]\n" #These cases must correspond with the options above. | |
case 2 | |
printf "This is not an option yet\n" | |
case 3 | |
printf "This is not an option yet\n" | |
case 4 | |
printf "This is not an option yet\n" | |
case 5 | |
printf "This is not an option yet\n" | |
case 6 | |
printf "This is not an option yet\n" | |
case 7 | |
printf "This is not an option yet\n" | |
case 8 | |
printf "This is not an option yet\n" | |
case 9 | |
printf "This is not an option yet\n" | |
case 10 | |
printf "This is not an option yet\n" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment