-- Leo's gemini proxy

-- Connecting to gemini.kaction.cc:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

New order in /dev/pts


Previously, I had one global session of terminal multiplexer, and that was where everything lived -- plain text accounting, news, blogging, different personal and $dayjob projects. Since you can have only so much tabs before it turns into complete mess, context switching meant closing them all and opening ones relevant to task at hand.


Couple days ago I came with a very novel⃰⃰ idea -- keep separate sessions for different projects. I wrote following simple script¹:


#! /bin/sh
exec st attach-shell "${$1:-dayjob}"

where "attach-shell" attaches to the named terminal multiplexer session, creating it if necessary.


This way I can close "st" terminal emulator windows, keeping only relevant things on the screen, but when I decide to go back to other project, it will be waiting for me, with the same tab layout and interpreter sessions open as I left it. It makes context-switching much, much cheaper. I can also configure shell based on the session name.


This may sound trivial, but for me it was life-chaning. It is more than saving ten seconds per context-switch, it is about avoiding accumulating frustration.


Actually, it is even more than that. Ever saw "normies" to struggling to put two browser windows side-by-side? Well, I can't do any better on their soil. But I can use tiling window managers, and they don't. The same satisfying feeling. I found my highground.


¹: https://git.sr.ht/~kaction/config/commit/4342313149b684d5a0294e9c4262166b8fac8992

-- Response ended

-- Page fetched on Thu May 9 21:10:22 2024