I’ve started re-learning pacman commands (been 3 years), and backing up my yay commands while also working on some Debian based machines (for work and friends).
I have seen myself starting to use jargon, or command line salad by mixing suffixes from these environments.
Does this happen to others, or am I alone on this boat?
Sounds like a candidate for alias expansion! For example I have an update alias:
On Arch based = pacman -Syu
On Deb based = sudo apt update && sudo apt upgrade
This sort of thing covers most of my systems, but similar ‘sets’ of command can be ‘rosetta stoned’ as necessary for other distros. Keep the amount of thinking required down to a dull roar!
I have a larger than normal .bashrc (220+ lines) … any commands I use even semi regularly are reduced to a 1-4 character aliases or parameterised bash functions.
Distro-specific aliases are almost essential these days unless you tend to stick to one type. My .bash_aliases file has been around for close to fifteen years and travels with me. It saves a world of pain in the long run.
I think you will find you get used it if you stick with it. At this point, at least for basic actions, I can move seamlessly between most of the major distros package managers. At the very least, pacman, dnf, zypper, apt, nix-env, xbps and eopkg.
It is harder if you are learning multiple distros at the same time but it will still untangle over time.
Trying to hide the differences in aliases is a crutch I think you will regret in the long run. It isn’t that aliases are bad, but in this case, it will hinder your learning process. Further, since the commands structures for each type of distro is so different, when you need to something more involved than updating the system or installing a single package, you will be more lost because you haven’t been learning the basics.
I see. So instead of checking the distribution you check the specific software that is installed. I was a little conserned that you can have for example both apt and pacman installed but now that I think about it, it sounds stupid.