Menu

I built a Mac terminal so I could download a log from the SSH tab I already had open
📰

I built a Mac terminal so I could download a log from the SSH tab I already had open

DEV Community: opensource·Digkill·about 16 hours ago
#4yWWjP6g
#devtoopensource#devto#dev#file#terminal
Long article (557 words) — no AI summary yet.
Reading 0:00
15s threshold

Tabby kept freezing on my Mac. I could go back to Apple’s Terminal, but I’d miss being able to pick a server by name and open an SSH tab. Somewhere between those two apps was the terminal I wanted. I opened Xcode to see how far I could get.

I called it Yami Terminal . Tabby uses Electron to run on multiple platforms. I only wanted to build for the Mac, so I picked Swift and AppKit. SwiftTerm handles terminal emulation. Each local tab gets a pseudoterminal and runs my usual login shell, complete with whatever I’ve managed to break in my .zshrc that week.

The log file that’s already right there

Say I’m on a staging server, looking at /var/log/nginx/error.log . I want a copy on my Mac. My usual move is to open another local tab and type something like this:

scp -J bastion staging:/var/log/nginx/error.log ~/Downloads/

Enter fullscreen mode

Exit fullscreen mode

Perfectly good command. The part that bothers me is that I’ve already picked the server, gone through the bastion, and found the file.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.