mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 19:32:43 +00:00
feat(cable): add extensive television cable channel configurations and related files
This commit is contained in:
1 parent
7c786f9349
commit
e9a7fd1fde
72 files changed
+2101
No files matched your search
@@ -0,0 +1,18 @@
|
||||
[metadata]
|
||||
name = "ssh-hosts"
|
||||
description = "A channel to select hosts from your SSH config"
|
||||
requirements = ["grep", "tr", "cut", "awk"]
|
||||
|
||||
[source]
|
||||
command = "grep -E '^Host(name)? ' $HOME/.ssh/config | tr -s ' ' | cut -d' ' -f2- | tr ' ' '\n' | grep -v '^$'"
|
||||
|
||||
[preview]
|
||||
command = "awk '/^Host / { found=0 } /^Host (.*[[:space:]])?'{}'([[:space:]].*)?$/ { found=1 } found' $HOME/.ssh/config"
|
||||
|
||||
[keybindings]
|
||||
enter = "actions:connect"
|
||||
|
||||
[actions.connect]
|
||||
description = "SSH into the selected host"
|
||||
command = "ssh {}"
|
||||
mode = "execute"
|
||||
Reference in new issue
Block a user