~yerinalexey/miniplug

81acde55596eb00ce7d791c293bfcc0cb72dc1c3 — Alexey Yerin 5 months ago 3b7e4a7
Default to $XDG_DATA_HOME/miniplug
2 files changed, 5 insertions(+), 4 deletions(-)

M README.md
M miniplug.zsh
M README.md => README.md +4 -3
@@ 51,10 51,11 @@ miniplug load
```

## Changing plugin folder
Plugins will be downloaded to `~/.miniplug` by default, to change that
location, set `MINIPLUG_HOME` environment variable with a new path:
Plugins will be downloaded to `$XDG_DATA_HOME/miniplug` (or `~/.local/share/miniplug` if not set)
by default. To change that location, set `MINIPLUG_HOME` environment variable
to a new path:
```sh
export MINIPLUG_HOME="$HOME/.local/share/miniplug"
export MINIPLUG_HOME="$HOME/.config/zsh/plugins"
```

## Updating plugins

M miniplug.zsh => miniplug.zsh +1 -1
@@ 5,7 5,7 @@
# Copyright 2020 Alexey Yerin

# Globals
declare MINIPLUG_HOME="${MINIPLUG_HOME:-$HOME/.miniplug}"
declare MINIPLUG_HOME="${MINIPLUG_HOME:-${XDG_DATA_HOME:-$HOME/.local/share}/miniplug}"
declare MINIPLUG_THEME="${MINIPLUG_THEME:-}"
declare MINIPLUG_PLUGINS=()