1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-30 09:40:09 +00:00
ohmyzsh/plugins/adduser
2021-12-22 20:02:11 +01:00
..
adduser.plugin.zsh Fix(adduser): better changing of shell 2021-12-22 20:02:11 +01:00
README.md feat(adduser): add adduser plugin (#10441) 2021-12-21 19:40:46 +01:00

adduser

This plugin adds support for installing "Oh My ZSH" when adding new users.

To use it, add adduser to the plugins array of your ~/.zshrc file:

plugins=(... adduser)

Usage

Just run adduser as you normally would do and now:

  1. The regular adduser command will run.
  2. The shell of the new user will switch to zsh
  3. "Oh My zsh will be installed (as if he would have ran install.sh himself).

NOTES

  • It is assumed that the last argument will be the username.
    (In rare cases people provide the group as last argument)
  • useradd behaviour is not changed.

Author

Nikolas Garofil