mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-10 02:29:22 +01:00
{bash,zsh}rc: add adduser-to-group() as I never remember the order otherwise
This commit is contained in:
parent
b4c7de8ab2
commit
76b088e0ce
@ -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
|
||||||
|
6
rc/zshrc
6
rc/zshrc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user