Skip to content

Instantly share code, notes, and snippets.

@caspre24 caspre24/installrsubl.sh
Last active Aug 18, 2016

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.