[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 08-tmux-2523541693.png (1.18 MB, 1920x1080)
1.18 MB
1.18 MB PNG
is tmux a meme? most modern terminal emulators have sessions, layouts and tabs already. what's the point of this garbage?
>>
"modern terminal emulators" come and go
>>
ssh, chiefly. also if you find yourself in a tty situation getting scrollback is nice but that's pretty rare these days i guess.
>>
>>107785319
tmux detaches. do that with a terminal emulator.
>>
>>107785418
Yes my terminal emulator has a minimize button.
>>
>>107785427
that's not detach.
>>
>>107785418
daemon modes exist in many terminal editors
over ssh yeah it's a diffrent story but does tmux have quake mode? no
>>
>>107785456
>terminal editors
sorry I'm drunk terminal emulators I meant
>>
>>107785485
great. some of us use computers beyond a laptop and do long running tasks.
>>
>>107785440
>>107785418

why would you want to do that?
>>
>>107785558
to work with a remote server
>>
>>107785319
It’s a long standing project with a pretty focused scope that you can use in any terminal emulator and share a dot file for consistent window management (i.e. work and home computers are set up differently). It does what it does well and that fact is independent on whether other applications provide similar functions. Why use built in terminal multiplexing over tmux? Rather have use software that focuses on fewer things in combination than a single application that wants to do everything. Plus detaching long running sah sessions is pretty much my main use case and I don’t think terminal emulators have that built in but even if they do, I can check a session I started on my computer from my phone because again, terminal emulator independence.
>>
>>107785581
you're using the word detach different than the tmux manual then
>>
>>107785581
literally just tab to another window, detaching is just invisible tabs
>>
>>107785319
tmux is a lot cleaner and faster for me than using GUI-based solutions, and my muscle memory has developed over the years around it, so its shortcuts have compounded benefits for my workflow, but you know, use whatever you feel comfortable with, anon.
>>
>>107785619
dont want to have more than one terminal open at a time sorry im autistic
>>
>>107785644
each tmux session is a virtual terminal just as much as your entire terminal emulator is a virtual terminal
>>
>>107785611
>>107785619
You are about to run a process that is going to take a week. You SSH into the server. Run the command. Detach. Turn off your computer. Come back two days later, attach the session. See progress. Detach. And so on.

It’s not about hiding the terminal session. If you the session is open and you lose connection due to an blip in network connection or you computer turns or whatever else you get logged out of the server which kills all your running process.
>>
>>107785650
sorry but i dont want my taskbar cluttered with multiple terminals open sorry
i only want ONE terminal emulator tab there and the rest not visible til i attach
>>
>>107785650
>>107785619

Now what will I do if I SSH into it? No graphical interface. Tmux is necessary
>>
>>107785319
>most modern terminal emulators have sessions
yeah, you're thinking of a desktop environment. people that work ssh into many many servers with no graphical environment. that's the point of tmux. the point is not to display htop and neofetch in a screenshot for updoots
>>
>>107785319
>ITT: zoomers discover terminal multiplexer
google what ssh is, children
>>
>>107785319
sometimes you need to do shit on a remote shell.
>>
>>107785440
<command> &


Next program, next program!
>>
>>107786286
>close shell
>process ends.
not detachable.
>>
>>107785319
most terminals that are shipped with DEs only have tabs feature
>>
>>107786299
that is definitely not what happens. You're getting & confused with ^Z. & hard forks.
>>
>>107786439
you're an idiot.
>>
>>107785538
what exactly stops one from doing that in a regular terminal emulator though? I've had a gallery-dl instance running in a powershell window for the last 2 weeks scrapping terabytes of femboy pornography, notably, on a personal computer
>>
>>107786904
oh wait you probably mean like on vps through ssh, I already said that this is a diffrent use case
you can always stream x11 over ssh but this is mostly just a curiosity
>>
Tmux is pretty cool, but nvim has a similar deamonize and detachment feature, now, which combined with running :mksession, and netrw, seems like it would fuck tmux up bad, but I don't have any real experience with remote servers.
>>
>>107787314
It's actually kind of a pain in the ass to connect to sessions. You have to get the name of the session from :echo v:session, according to the help page. I'd be surprised if nobody's written a telescope picker for them yet.
>>
>>107785319
>tfw you realize /g/ is full of incompetent zoomers
>tfw you took the bait
>tfw my tmux sessions are all running
>>
Yes, GNU screen just works
>>
>>107785357
I can watch youtube from the tty.
>>
>>107786299
You're doing it wrong retard
>>
dwm gives me built-in tmux on all of my windows, its amazing
however tmux still has its uses, some people prefer raw tty for programming or you might be stuck there for some reason (e.g. ssh into machine -> no display server -> no fancy gui terminalz)
>>
Another “I hear about this tool a lot but don’t know what it’s for. Why do you need it” but secretly I just want to argue about something I don’t know about for no reason thread. As always, there’s several posts already explaining good reasons to want tmux that are ignored in favor of people who don’t know what they are talking about arguing with people who don’t know what they are talking about. Tmux works well, it’s been around for a while, it’s not the only way to do things but it’s a good option and it’s especially good when you want to keep server session alive without having to keep your computer connect. You can also set up your .ssh/config file so some hosts start in a tmux session with a given name so you always reopen a session (you can even dynamically name the host like
ssh host-1
opens a host in a tmux session named 1. Then you can manage multiple session and open them on different computers/phones whatever. It’s nice. There is nothing to argue about. That’s what it’s used for. If you don’t need it or you want to use something else that doesn’t mean tmux isn’t useful. Shut up
>>
>Write efficient scripts with proper file handling and status reporting
>Run it quickly or make it idempotent
>Don't need to rely on reusing windows if you know what you're doing

No need for screen or tmux.
>>
when i tried tmux it wouldn't load my bashrc for some reason and i uninstalled it.
>>
How do you all get trolled every goddamned time?
Two retards in a discord call post a thread like this instead of doing their fucking CS homework because they're currently banned from League for the next hour.
Stop fucking responding to the retards so we can start extorting them on Grindr for young bussy.
>>
tmux is great when you pop a dev or admin laptop you can just pull up their existing tmux ssh sessions into all their dev, prod and infrastructure. It makes hacking so much easier.
>>
>>107788556
cool story bro, but you run tmux after sshing, not run tmux and then ssh.
>>
>>107785581
>>107785667
so just screen(1)?
>>
>>107787433
so it turns out, you just tell it to listen to an arbitrary socket. nvim --listen /tmp/termshark.sock or some shit. Then, you can :detach and nvim --server /tmp/termshark.sock. You just need conventional names that you can alias or remember, or write a wrapper that implements a nomenclature and stores a list of active sessions.
>>
>>107788998
So the .vim session files made with mksession are, in a sense, inactive sessions. You could have the tmp file named after the names of these .vim files. Then you could have a table of these "sessions," showing which are active, inactive, or those which started without a session file. You could then use this data to manage your sessions, like a dashboard. Ideally with some kind of neovim plugin.
>>
>>107785319
Tmux just werks everywhere, including servers
>>
tmux is retarded and runs in a login shell, login shells don't read .bashrc. you have to tell .bash_profile to read .bashrc
>>
>>107785319
Sounds like you've never had to fix shit in the field or on large scale.

Sometimes you don't have nice things.
>>
>>107786286
Isn't & still tied to your user session tho?
>>
File: screenshot.png (1012 KB, 1920x1080)
1012 KB
1012 KB PNG
for me, it's Zellij - super comfy but then again I never tried tmux, but I don't see any reason to bc Zellij does everything I need it to do
>>
>>107785319
What is the point of ''''modern terminal emulators''' which can't provide those features over ssh, are slow, don't have good keybinding, scripting and customizability
>>
>>107789985
weak.
I have tmux running on Alaritty with full transparency so I can watch ASMR Glow on full screen in the background on my terminal.
>>
it's more "minimal" than in-built tabbing on some terminals
like Ghostty in particular has massive GTK tabs, but tmux can be customized to take up just half a line
>>
>>107785319
>sessions, layouts and tabs have to implemented in every terminal program instead of just once and reusable in tmux
seems like the garbage is elsewhere
>>
>>107785319
I've used many terminal emulators on various systems - Linux, FreeBSD, Cygwin, WSL. On linux I was a fun of rxvt, later urxvt. But then I just got back to xterm, because depending on the packaging of urxvt - the experience varied a lot. It was annoying having a nice configuration, and it just didn't had extensions I had configured on previous system. I tried couple different ones, but ended at xterm, because it just works and have most compatibility. Regardless of terminal emulator TMUX always works and is more than just splits/tabs (panes/windows).
>>107785456
You can write a wrapper for any terminal emulator. You just need to script moving terminal on the screen. Unless you cucked yourself into using Wayland.
>>
>>107785644
same, switching to particular window when there are many of the same type sucks
on the other hand you can "tab" into arbitrary pane/window and even other session in tmux with one shortcut Ctrl+<leader_key> w which is basically "Alt+tab" for tmux
>>
>>107785319
I use dtach and it works really well for me. I don't think most people need all of what tmux has to offer, but the bundle it provides probably gives everyone something they'd use. But that's the problem
>>
>>107785644
don't you guys use a wm/de which provides and have separate tasks in separate workspaces? or you guys never used workspaces or what
>>
>>107786299
nohup
>>
Why do you all call software "memes"
>>
>>107790172
uuuh anon, I want to get some work done too - not getting lost in her eyes all the time :3
>>
>>107785319
>is <x, y, z> a meme?
who cares?
if it's a meme then people will swap to something else in a few years. if not then whatever.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.