Jumping Steps
Jumping Steps
Jumping Steps
You're viewing a single thread.
After over a decade of using it exclusively at home and partially at work I still googled how to add users to a group last week.
Well yeah. You barely use groups on a personal machine - maybe once and done for audio and VMs, depending on what distro you use - and at work you'd automate that shit, probably have it centralised.
I try to remember commands backwards by how they look(
<command>
<flags>
<arguments>
), if they are short, have capital letters and so on... Is that weird? If I give up I open the history file or my good ol' cheat sheet.(Tip: Most shells allow you to press Ctrl+R to interactively search through history, meaning you won't have to open a separate file.)
Oh. My. Word.
I thought I was clever by using history | grep <bit of command I remember>
I KNEW there had to be a better way!
There's a lot of docs in e.g. man bash
.
Thank you, I already have it configured with fzf aswell, and another to search folders to jump to them.
You need https://starship.rs/
I did use it but the only real benefit for me as a hobbyist was the git status indicator on the prompt and the easy to configure prompt. The rest of the indicators did not help me since I'm not a developer. Now I just have my custom prompt with colors, and custom git info.
But it autocompletes pretty well, isn’t it? 🤔or was it fish doing that
I quite sure fish has it, but I use zsh without autocompletions, I just press tab until I find what I need. And the fzf history shortcuts for the rest.
Fish does history autocomplete, not Starship — you still have autocomplete using unconfigured Fish, and you don't get autocompletion by enabling Starship for other shells.
Was it "groupadd" or "addgroup"...? I can never remember xD
usermod -aG group user
mnemonic: user mod append group
groupdel
, groupadd
userdel
, adduser
😆I ask AI for that