Last active
December 22, 2017 02:58
-
-
Save VishalTaj/02f1d6a51ac327f552fbb590edab3460 to your computer and use it in GitHub Desktop.
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
#!/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