-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commands to open ~/.ssh/config and /etc/ssh/sshd_config
Move the file locations to a sublime-settings file later
- Loading branch information
1 parent
38b3ee5
commit 03c7328
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ | ||
{ | ||
"caption": "Open SSH Config File", | ||
"command": "open_ssh_config_file", | ||
}, | ||
{ | ||
"caption": "Open SSHD Config File", | ||
"command": "open_sshd_config_file", | ||
}, | ||
] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import sublime | ||
import sublime_plugin | ||
|
||
|
||
class OpenSshConfigFileCommand(sublime_plugin.TextCommand): | ||
def run(self, edit): | ||
filename = '~/.ssh/config' | ||
self.view.window().open_file(filename) | ||
|
||
|
||
class OpenSshdConfigFileCommand(sublime_plugin.TextCommand): | ||
def run(self, edit): | ||
filename = '/etc/ssh/sshd_config' | ||
self.view.window().open_file(filename) |