@mitchellh I've never touched Nu (been on fish for years), but I can still understand your snippet. That's nice.
However, there's way more reading (and typing) involved with Nu. That's a notable cost, to me at least.
Nu does seem more "scalable" though. I mean, going from one-liners to longer scripts surely works out better then with Bash.
But then, you need Nu installed everywhere, while Bash is already there...
Anyways, it will be interesting to see where your Nu experiment goes :)
I don't know about that. The "old" way still seems clear to me, and it is much shorter:
Surely there are cases where nu wins over fish, but this doesn't seem to be one of them :)
I've been looking at nu myself for a bit, but I still haven't found a strong enough reason to switch (from bash + fish as interactive shell).
@thp @zygoon this is exactly why I came up with those shortcuts and supporting scripts: any OS, any time, everything works the same, out of the box (well, after a git clone dotfiles, which you always do anyway).
I can even switch between Gnome and KDE and use the same shortcuts :D
At some point in the past, I was using the three major OS-es daily and the shortcut mess was driving me mad.
Cross-OS shortcut unification saved the day for me :)
@zygoon @thp on Linux we all do our own shortcuts 😁
I've been using the same shortcuts for more than a decade, on windows, mac and linux. Recently even on wayland, which was a pita to set up...
My muscle memory for "switch to or launch" (ctrl+alt+1 for terminal, 2 for editor, qwe for different browsers etc) works everywhere and it required some work on all OS-es. Well worth it! 😊
@zygoon here to support the KDE crowd 🙂
I've been on KDE for years, now on v6 and I find it to be the right balance of acceptable defaults and flexibility.
I try Gnome every now and then (the greener grass, so pretty), but I find it unusable without a bunch of extensions, which make it more fragile. Vanilla KDE is flexible enough though. I also learned to accept the Breeze theme, the same way I learned to live with macOS GUI 😁