Last active
August 18, 2016 17:13
-
-
Save caspre24/859fc3e2fb4115ef69ee5c025289b337 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
cwd=$PWD | |
cd /usr/local/bin | |
wget https://raw.githubusercontent.com/aurora/rmate/master/rmate | |
chmod +x rmate | |
if [ -z "$1" ]; then | |
par="" | |
elif [ "$1" = "docker" ]; then | |
par=" -H 192.168.99.1" | |
else | |
par=" -H $1" | |
fi | |
alias rsubl="rmate$par" | |
echo "alias rsubl='rmate$par'" >> ~/.bashrc | |
cd $cwd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment