Hey #RustLang #Rust people, its back to 50/50, we need some more votes (entirely for fun)
@itworldcup https://hachyderm.io/@itworldcup/115960578331633434
Hey #RustLang #Rust people, its back to 50/50, we need some more votes (entirely for fun)
@itworldcup https://hachyderm.io/@itworldcup/115960578331633434
Wohoo! Finally managed to convince a #Zellij layout definition to automatically enable sync input and clear the ssh connections it establishes.
For work, i'm administering 4 servers which are almost, but not quite, the same. Because this is a small company and nobody ever set up any kind of orchestration, i often have to manually change things.
Now i can just type zellij --layout servers and get dropped into 4 panes, each sshed into one server, with synchronized input, thanks to this hacky part of my layout file:
floating_panes {
pane borderless=true {
width 1
height 1
command "sh"
args "-c" "zellij action toggle-active-sync-tab; zellij action write 99 108 101 97 114 13; zellij action close-pane"
}
}
which adds a floating 1x1 character pane that only exists to run zellij commands to enable sync between all panes, sends "clear\n" to one pane (which sends it to all panes thanks to sync), and closes itself. Its not pretty, but its better than i feared. And its easily able to be dropped into any future zellij layout.