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,19 @@
|
||||
[metadata]
|
||||
name = "ports"
|
||||
description = "List listening ports and associated processes"
|
||||
requirements = ["ss", "awk"]
|
||||
|
||||
[source]
|
||||
command = "ss -tlnp 2>/dev/null | tail -n +2 | awk '{gsub(/.*:/,\"\",$4); print $4, $1, $6}' | sed 's/users:((\"//; s/\".*//'"
|
||||
display = "{split: :0} ({split: :2})"
|
||||
|
||||
[preview]
|
||||
command = "ss -tlnp 2>/dev/null | grep ':{split: :0} ' | head -20"
|
||||
|
||||
[ui.preview_panel]
|
||||
size = 40
|
||||
|
||||
[actions.kill]
|
||||
description = "Kill the process listening on the selected port"
|
||||
command = "fuser -k {split: :0}/tcp"
|
||||
mode = "execute"
|
||||
Reference in new issue
Block a user