{bash,zsh}rc: add adduser-to-group() as I never remember the order otherwise

This commit is contained in:
Aminda Suomalainen 2024-07-28 11:19:38 +03:00
parent b4c7de8ab2
commit 76b088e0ce
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 12 additions and 0 deletions

View File

@ -923,6 +923,12 @@ else
} }
fi fi
# In Debian there is "sudo adduser whoever whatever", but I keep forgetting
# that the more common way is usermod -aG whatever,whereever whoever
adduser-to-group() {
usermod -aG "$2" "$1"
}
# Source files for miscannellious modifications. # Source files for miscannellious modifications.
# acme.sh # acme.sh

View File

@ -901,6 +901,12 @@ else
} }
fi fi
# In Debian there is "sudo adduser whoever whatever", but I keep forgetting
# that the more common way is usermod -aG whatever,whereever whoever
adduser-to-group() {
usermod -aG "$2" "$1"
}
# Source files for miscannellious modifications. # Source files for miscannellious modifications.
# acme.sh # acme.sh