Skip to content

Instantly share code, notes, and snippets.

@ddschmitz
Created June 15, 2016 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddschmitz/a0bc925d18c152b1ccde245898dd7127 to your computer and use it in GitHub Desktop.
Save ddschmitz/a0bc925d18c152b1ccde245898dd7127 to your computer and use it in GitHub Desktop.
Quick-SSH
#!/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) user@192.168.1.1\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 user@192.168.1.1\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