Skip to content

Instantly share code, notes, and snippets.

@caspre24
Last active August 18, 2016 17:13
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 caspre24/859fc3e2fb4115ef69ee5c025289b337 to your computer and use it in GitHub Desktop.
Save caspre24/859fc3e2fb4115ef69ee5c025289b337 to your computer and use it in GitHub Desktop.
#!/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