Skip to content

Instantly share code, notes, and snippets.

@VishalTaj
Last active December 22, 2017 02:58
Show Gist options
  • Save VishalTaj/02f1d6a51ac327f552fbb590edab3460 to your computer and use it in GitHub Desktop.
Save VishalTaj/02f1d6a51ac327f552fbb590edab3460 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Author : Vishal Taj PM
# This is simple script which lets you ease of remembering server url just need to remember shortkeys instead of it
# Copy this script to bin folder
# run: filename t -> this will log into the testing environment
case $1 in
"t")
label='My test url'
url='test url'
;;
"s")
label='my staging url'
url='staging url'
;;
"p")
label='My production url'
url='production url'
;;
*)
url="No Url Found"
label='Not Found'
;;
esac
echo " "
echo "$label"
echo " "
echo "Connecting to: $url"
echo " "
ssh $url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment