Skip to content

Instantly share code, notes, and snippets.

@OwenMelbz
Last active September 1, 2017 09:47
Show Gist options
  • Save OwenMelbz/b188d3fc7a68e54e542793f9395013f3 to your computer and use it in GitHub Desktop.
Save OwenMelbz/b188d3fc7a68e54e542793f9395013f3 to your computer and use it in GitHub Desktop.
rmate alias setup for ssh

Installation

SSH into the server

Run the installer

source <(curl -fsSL https://gist.githubusercontent.com/OwenMelbz/b188d3fc7a68e54e542793f9395013f3/raw/85e060e99e407b34049fe72ca9719591bec0ec2a/setup.sh)

Add RemoteForward 52698 127.0.0.1:52698 to your ssh-config

cd ~
wget https://github.com/aurora/rmate/raw/7bfd2bda2269ad62ec061c4ac93452313f3f4a54/rmate;
chmod +x rmate;
echo "alias subl='~/rmate -v -w'" >> ~/.bash_profile;
source ~/.bash_profile;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment