Skip to content

Commit

Permalink
Commands to open ~/.ssh/config and /etc/ssh/sshd_config
Browse files Browse the repository at this point in the history
Move the file locations to a sublime-settings file later
  • Loading branch information
michaelblyons committed Sep 20, 2018
1 parent 38b3ee5 commit 03c7328
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Commands.sublime-commands
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",
},
]
14 changes: 14 additions & 0 deletions main.py
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)

0 comments on commit 03c7328

Please sign in to comment.