mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-12 01:52:31 +01:00
feat(adduser): add adduser plugin (#10441)
Automatic "Oh My ZSH" installation when adding new users
This commit is contained in:
parent
904f8685f7
commit
ecc5aab0e7
2 changed files with 81 additions and 0 deletions
26
plugins/adduser/README.md
Normal file
26
plugins/adduser/README.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# 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:
|
||||
|
||||
```zsh
|
||||
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.<br>*(In rare cases people provide the group as last argument)*
|
||||
- `useradd` behaviour is not changed.
|
||||
|
||||
## Author
|
||||
|
||||
[Nikolas Garofil](https://github.com/ngaro)
|
||||
Loading…
Add table
Add a link
Reference in a new issue