diff --git a/rc/bashrc b/rc/bashrc index 87adba1c..29e9e872 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -923,6 +923,12 @@ else } 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. # acme.sh diff --git a/rc/zshrc b/rc/zshrc index 501d15f4..5a9a55ec 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -901,6 +901,12 @@ else } 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. # acme.sh