News for hackers. Stuff that matters.
Re:Pull of the Undercurl by triyambakam on Wednesday July 26, 2023 @11:23PM (#36888515)
Pretty amazing to see someone else using my exact same setup - alacritty, tmux and neovim. Is that like seeing a unicorn?
Re:Pull of the Undercurl by LorenzoGood on Wednesday July 26, 2023 @11:30PM (#36888571)
It's fairly common for twm users.
Re:Pull of the Undercurl by dcow on Thursday July 27, 2023 @12:12AM (#36888808)
Kitty performs better and renders font more beautifully than Alacritty, and Alacritty's devs are openly hostile to macOS users, so I've stuck with Kitty. I really want a native Rust terminal emulator to be good, though.
Re:Pull of the Undercurl by pdimitar on Thursday July 27, 2023 @03:14PM (#36898683)
> Alacritty's devs are openly hostile to macOS users

What do you mean by that? I noticed some bindings randomly stop working even though I'm explicitly configuring them -- ALT and left / right arrow are the most prominent example -- but I'm curious if your observations are rooted in other problems?

Re:Pull of the Undercurl by dcow on Thursday July 27, 2023 @04:57PM (#36900071)
It likely broke because the dev won’t touch macOS with a 39.5' pole, so they obviously don’t test changes.

I tried offering to help get the macOS build notarized (financially and logistically) so that it would work without disabling gatekeeper and was laughed out of the issue tracker for using a stupid OS. I tried explaining that I don’t always control which OS I use (not that it matters) and that since I use all of them one of the major advantages of a terminal emulator is that it works consistently across platforms. They basically told me that I’m an idiot for using macOS and put me in the middle of their ideological battle with Apple.

Re:Pull of the Undercurl by zenolove on Friday July 28, 2023 @07:57AM (#36905603)
I believe this is the issue mentioned by parent:

https://github.com/alacritty/alacritty/issues/4673

Re:Pull of the Undercurl by dcow on Saturday July 29, 2023 @11:58AM (#36921495)
The best part is the maintainer wouldn’t even approve a PR to add one sentence to the readme explaining the expectation that users need to manually add a gatekeeper exception, because helping macOS users onboard “has no value” to the project (to him).
Re:Pull of the Undercurl by igor47 on Thursday July 27, 2023 @01:12AM (#36889188)
It's my setup also!
Re:Pull of the Undercurl by DiabloD3 on Thursday July 27, 2023 @01:14AM (#36889202)
Isn't this the norm? Are we all the same person?
Re:Pull of the Undercurl by fernandotakai on Thursday July 27, 2023 @09:36AM (#36893268)
i legit thought this was an incredibly popular setup, because i have three coworkers (+ myself) with the exact same config (alacritty + tmux + neovim).
Re:Pull of the Undercurl by triyambakam on Thursday July 27, 2023 @12:01PM (#36895594)
I had no idea it was so popular! I'm the only engineer at my company that I'm aware of that uses vim (neovim), let alone alacritty or tmux.
Re:Pull of the Undercurl by lwhsiao on Thursday July 27, 2023 @01:21AM (#36889246)
This used to be my setup as well!

Nowadays I'm running wezterm, tmux, and helix.

Re:Pull of the Undercurl by oh_sigh on Thursday July 27, 2023 @04:11AM (#36890455)
It is pretty weird, that is my exact setup too. But instead of alacritty I use iterm2, and instead of tmux I use screen, and instead of neovim I use emacs. But regardless, spooky!
Re:Pull of the Undercurl by quaddo on Thursday July 27, 2023 @04:52AM (#36890745)
I'm trying to tell from your comment as well as the others' comments whether you're running screen locally, and what benefits that brings above and beyond iTerm for local shell sessions.

For anyone else using tmux locally, I'd be interested as well.

Genuinely curious. I'd consider doing likewise if the reason is compelling.

Re:Pull of the Undercurl by zokier on Thursday July 27, 2023 @05:36AM (#36891086)
I'd guess one factor is that macos has relatively poor native keyboard driven tiling capabilities, so tmux functions as kind of poor mans tiling wm.
Re:Pull of the Undercurl by paulannesley on Thursday July 27, 2023 @06:22AM (#36891460)
> what benefits that brings above and beyond iTerm for local shell sessions > For anyone else using tmux locally, I'd be interested as well.

I run tmux in iTerm2 on macOS; tmux is my window-manager of choice for terminal applications; shells, nvim, etc. I usually have 2–10 tmux “windows” (more like tabs) with 2–4 split panes in each (more like tiled windows). I generally never detach from my local tmux session.

Most things I use and love tmux for could probably be done with iTerm2 tabs and splits, or a modern text editor and its terminal integrations.

But, I can use tmux in iTerm2 or Terminal.app or Kitty or Gnome Terminal or urxvt, on macOS or Linux or FreeBSD and it works the same everywhere. Perhaps that's a key feature; decoupling your “terminal window manager” or “terminal desktop environment” from your terminal emulator (I guess that's like the X server in this analogy).

Also, tmux feels more keyboard-native… I can do everything from the keyboard, including navigating scrollbacks, finding/selecting/copying/pasting text, etc. Again, you can probably achieve at least 90% of this using a richly-featured terminal emulator like iTerm2, but tmux does it well, and it's portable.

Also, tmux feels more Unix… it has config files that can be git-managed, it has man pages, it is scriptable from bash/anything, etc.

That easy scriptability leads to some nice integrations, like I can configure key bindings in nvim that run commands (e.g. the test I have open) in a tmux split alongside nvim. Again, that's nothing that things like VS Code can't do too with their built-in terminal emulators etc. But it's nice.

(Despite loving tmux and iTerm2, the one thing I don't like is iTerm2's native tmux integration, where it uses tmux as the “engine” but replaces the UI with OS-native windows/splits etc. It's technically impressive, but mostly negates all the reasons I run tmux inside iTerm2 in the first place)

Re:Pull of the Undercurl by tambourine_man on Thursday July 27, 2023 @07:55AM (#36892138)
I’m mostly the same, but I can’t leave the native smooth infinite scrolling of the Terminal.app

iTerm2’s tmux integration seems all I have ever wanted, but somehow I keep returning to the two extremes. It maybe just habit, or there maybe something subtle missing.

Re:Pull of the Undercurl by hnlmorg on Thursday July 27, 2023 @08:21AM (#36892367)
> (Despite loving tmux and iTerm2, the one thing I don't like is iTerm2's native tmux integration, where it uses tmux as the “engine” but replaces the UI with OS-native windows/splits etc. It's technically impressive, but mostly negates all the reasons I run tmux inside iTerm2 in the first place)

I completely agree. I'm sure there are people who love it but it seems a strange implementation since it takes the best bits of tmux and replaces that with the worst bits of iTerm.

The great thing about this stuff though, is that everyone can personalise and run the set up they prefer. Whatever that might be