Created
February 15, 2014 12:28
-
-
Save Mithrandir0x/9018670 to your computer and use it in GitHub Desktop.
Key-binding to open a SublimeREPL page to an open Vagrant VM
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
{ | |
"keys": ["ctrl+f7"], | |
"command": "repl_open", | |
"args": | |
{ | |
"type": "subprocess", | |
"encoding": | |
{ | |
"windows": "utf-8", | |
"linux": "utf-8", | |
"osx": "utf-8" | |
}, | |
"cmd": | |
{ | |
"windows": ["plink", "-P", "2222", "vagrant:[email protected]", "-pw", "vagrant"], | |
"linux": ["bash", "-i"], | |
"osx": ["bash", "-i"] | |
}, | |
"cwd": "$file_path", | |
"cmd_postfix": "\n", | |
"env": {}, | |
"suppress_echo": true, | |
"external_id": "vagrantssh", | |
"syntax": "Packages/Text/Plain text.tmLanguage" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It requires plink (http://the.earth.li/~sgtatham/putty/latest/x86/plink.exe) to work nice.