zgen
====

A light plugin manager for zsh inspired by Antigen.

## Usage

`zgen oh-my-zsh` clone and run oh-my-zsh

`zgen oh-my-zsh <script>` shortcut for the command below

`zgen load <github repo> <script>` clone the repo and run the script

`zgen save` save all loaded scripts into an init script so they'll get run each time you source zgen

`zgen saved` returns 0 if there's an init script

`zgen update` update all repositories and remove the init script

## Example .zshrc

```zsh
# load zgen
source "${HOME}/proj/zgen/zgen.zsh"

# check if there's no init script
if ! zgen saved; then
    echo "creating a zgen save"

    zgen oh-my-zsh

    # plugins
    zgen oh-my-zsh plugins/git
    zgen oh-my-zsh plugins/npm
    zgen oh-my-zsh plugins/pip
    zgen oh-my-zsh plugins/command-not-found
    zgen oh-my-zsh plugins/sudo
    zgen load zsh-users/zsh-syntax-highlighting

    # theme
    zgen oh-my-zsh themes/arrow

    # save all to init script
    zgen save
fi
```

zgen
====

A light plugin manager for zsh inspired by Antigen.

## Usage

`zgen oh-my-zsh` clone and run oh-my-zsh

`zgen oh-my-zsh <script>` shortcut for the command below

`zgen load <github repo> <script>` clone the repo and run the script

`zgen save` save all loaded scripts into an init script so they'll get run each time you source zgen

`zgen saved` returns 0 if there's an init script

`zgen update` update all repositories and remove the init script

## Example .zshrc

```zsh
# load zgen
source "${HOME}/proj/zgen/zgen.zsh"

# check if there's no init script
if ! zgen saved; then
    echo "creating a zgen save"

    zgen oh-my-zsh

    # plugins
    zgen oh-my-zsh plugins/git
    zgen oh-my-zsh plugins/npm
    zgen oh-my-zsh plugins/pip
    zgen oh-my-zsh plugins/command-not-found
    zgen oh-my-zsh plugins/sudo
    zgen load zsh-users/zsh-syntax-highlighting
    zgen load /path/to/super-secret-private-plugin

    # theme
    zgen oh-my-zsh themes/arrow

    # save all to init script
    zgen save
fi
```

Add example of using zgen load with a local path
Add example of using zgen load with a local path
