From 1343e4ed78aa68500d05c4b9452e2a922e8fd2b6 Mon Sep 17 00:00:00 2001 From: Chase Adams Date: Fri, 9 Feb 2018 20:54:52 -0800 Subject: [PATCH 01/17] update verbiage --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 412965da..24853469 100644 --- a/README.md +++ b/README.md @@ -48,9 +48,7 @@ latest | stable $ curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh| zsh ``` -If you wonder this installation, please check it out: - -- [zplug/installer](https://github.com/zplug/installer/blob/master/installer.zsh) +Curious about the installation script? Check it out at [zplug/installer](https://github.com/zplug/installer/blob/master/installer.zsh). ### Using [Homebrew](https://github.com/Homebrew/brew) (OS X) From 3d47ef8f7aaf8179406fd8367435b9dbdea89582 Mon Sep 17 00:00:00 2001 From: Aoi Tachibana <39e@users.noreply.github.com> Date: Wed, 14 Feb 2018 09:00:58 +0900 Subject: [PATCH 02/17] Fix: ZPLUG_BIN for PATH --- base/core/core.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/core/core.zsh b/base/core/core.zsh index 3fdec7c4..a395730c 100644 --- a/base/core/core.zsh +++ b/base/core/core.zsh @@ -95,7 +95,7 @@ __zplug::core::core::prepare() # Add to the PATH path=( ${ZPLUG_ROOT:+"$ZPLUG_ROOT/bin"} - ${ZPLUG_BIN:+"$ZPLUG_BIN"} + ${ZPLUG_BIN:-"$ZPLUG_HOME/bin"} "$path[@]" ) From 368febd7995943821ea6c6a6b47a7b775dcd8ddb Mon Sep 17 00:00:00 2001 From: Aoi Tachibana <39e@users.noreply.github.com> Date: Wed, 14 Feb 2018 09:15:59 +0900 Subject: [PATCH 03/17] update ci script Change S1cK94/minimal -> b4b4r07/ultimate --- misc/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/zshrc b/misc/zshrc index 11509d23..293c1b8f 100644 --- a/misc/zshrc +++ b/misc/zshrc @@ -22,7 +22,7 @@ zplug clear as:command, \ use:"bin/{histuniq,color}" # theme - zplug "S1cK94/minimal", \ + zplug "b4b4r07/ultimate", \ as:theme tests+=( From aefa372004565eac2f41a7c72fb33386c2b20890 Mon Sep 17 00:00:00 2001 From: Bryan Bennett Date: Wed, 31 Jan 2018 10:21:52 -0500 Subject: [PATCH 04/17] Add additional glob for matching exact binaries in gh-r downloads --- base/utils/releases.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/base/utils/releases.zsh b/base/utils/releases.zsh index 88450c38..a446f9c7 100644 --- a/base/utils/releases.zsh +++ b/base/utils/releases.zsh @@ -213,6 +213,7 @@ __zplug::utils::releases::index() # TODO: more strictly binaries=() + binaries+=(**/$cmd(N-.)) # contains files named exactly $cmd binaries+=(**/*$cmd*(N-.)) # contains $cmd name files binaries+=(**/*(N-*)) # contains executable files binaries+=( $(file **/*(N-.) | awk -F: '$2 ~ /executable/{print $1}') ) From 6781c463047846f8b88f685e3fc331afca96b620 Mon Sep 17 00:00:00 2001 From: dohq Date: Fri, 23 Feb 2018 23:58:10 +0900 Subject: [PATCH 05/17] [fix] Fix for #463 --- base/base/base.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/base/base.zsh b/base/base/base.zsh index bb037035..3ae8328b 100644 --- a/base/base/base.zsh +++ b/base/base/base.zsh @@ -107,7 +107,7 @@ __zplug::base::base::git_version() fi __zplug::base::base::version_requirement \ - ${(M)${(z)"$(git --version)"}:#[0-9]*[0-9]} ">" "${@:?}" + ${(M)${(z)"$(git --version|head -1)"}:#[0-9]*[0-9]} ">" "${@:?}" return $status } From e0cdba88974891be42fe63d0a12d086b7088aa07 Mon Sep 17 00:00:00 2001 From: Paulo McNally Date: Tue, 20 Mar 2018 11:20:59 -0600 Subject: [PATCH 06/17] Fix 404: Not Found Add space to fix 404: Not Found in terminal --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 24853469..1eaa8407 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ latest | stable ### The best way ```console -$ curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh| zsh +$ curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh ``` Curious about the installation script? Check it out at [zplug/installer](https://github.com/zplug/installer/blob/master/installer.zsh). From 238caa23e8561fde5d82349c5e9933a6918883c0 Mon Sep 17 00:00:00 2001 From: Aoi Tachibana <39e@users.noreply.github.com> Date: Sat, 7 Apr 2018 09:53:41 +0900 Subject: [PATCH 07/17] Setup paths after variables have been initialized --- base/core/core.zsh | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/base/core/core.zsh b/base/core/core.zsh index a395730c..0ba9e00c 100644 --- a/base/core/core.zsh +++ b/base/core/core.zsh @@ -88,24 +88,6 @@ __zplug::core::core::run_interfaces() __zplug::core::core::prepare() { - # Unique array - typeset -gx -U path - typeset -gx -U fpath - - # Add to the PATH - path=( - ${ZPLUG_ROOT:+"$ZPLUG_ROOT/bin"} - ${ZPLUG_BIN:-"$ZPLUG_HOME/bin"} - "$path[@]" - ) - - # Add to the FPATH - fpath=( - "$ZPLUG_ROOT"/misc/completions(N-/) - "$ZPLUG_ROOT/base/sources" - "$fpath[@]" - ) - # Check whether you meet the requirements for using zplug # 1. zsh 4.3.9 or more # 2. git @@ -144,6 +126,24 @@ __zplug::core::core::prepare() # Release zplug variables and export __zplug::core::core::variable || return 1 + # Unique array + typeset -gx -U path + typeset -gx -U fpath + + # Add to the PATH + path=( + ${ZPLUG_ROOT:+"$ZPLUG_ROOT/bin"} + ${ZPLUG_BIN:-${ZPLUG_HOME:+"$ZPLUG_HOME/bin"}} + "$path[@]" + ) + + # Add to the FPATH + fpath=( + "$ZPLUG_ROOT"/misc/completions(N-/) + "$ZPLUG_ROOT/base/sources" + "$fpath[@]" + ) + mkdir -p "$ZPLUG_HOME"/{,log} mkdir -p "$ZPLUG_BIN" mkdir -p "$ZPLUG_CACHE_DIR" From 6655600ebb30c80877674630d48cdf38f061c9f2 Mon Sep 17 00:00:00 2001 From: Masaki ISHIYAMA Date: Sat, 12 May 2018 17:54:07 +0900 Subject: [PATCH 08/17] Update new issue templates About issue and pull request templates - User Documentation https://help.github.com/articles/about-issue-and-pull-request-templates/ --- .github/ISSUE_TEMPLATE/Bug_report.md | 55 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/Feature_request.md | 17 +++++++ 2 files changed, 72 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/Bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/Feature_request.md diff --git a/.github/ISSUE_TEMPLATE/Bug_report.md b/.github/ISSUE_TEMPLATE/Bug_report.md new file mode 100644 index 00000000..ad802f9f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/Bug_report.md @@ -0,0 +1,55 @@ +--- +name: Bug report +about: Create a report to help us improve + +--- + + + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Env (please complete the following information):** + - `zplug version`: + - `zsh --version`: + - `uname -a`: + +**Minimal zshrc (with less than 30 lines)** + +Create a minimal reproducing set of configurations for this issue. Please remove all unnecessary parts! + +```zsh +source ~/.zplug/init.zsh + +#zplug "foo/bar", tag:baz +#zplug "... + +if zplug check || zplug install; then + zplug load --verbose +fi +``` + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/Feature_request.md b/.github/ISSUE_TEMPLATE/Feature_request.md new file mode 100644 index 00000000..53842951 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/Feature_request.md @@ -0,0 +1,17 @@ +--- +name: Feature request +about: Suggest an idea for this project + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. From 3d6f272374c9e4842fd0cafcf43164a054f4050f Mon Sep 17 00:00:00 2001 From: b4b4r07 Date: Sat, 12 May 2018 18:49:39 +0900 Subject: [PATCH 09/17] Return zero exit code on help command fixes #462 --- autoload/options/__help__ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/options/__help__ b/autoload/options/__help__ index 766cafce..a36657e0 100644 --- a/autoload/options/__help__ +++ b/autoload/options/__help__ @@ -86,4 +86,4 @@ fi printf "\n" } >&2 -return 1 +return 0 From eddb07388901c422d46028ccdefeddb617bc76fd Mon Sep 17 00:00:00 2001 From: b4b4r07 Date: Mon, 14 May 2018 22:42:29 +0900 Subject: [PATCH 10/17] Add Dockerfile for testing zplug --- .gitignore | 2 ++ .zshrc | 22 ++++++++++++++++++++++ Dockerfile | 25 +++++++++++++++++++++++++ build.sh | 9 +++++++++ run.sh | 7 +++++++ 5 files changed, 65 insertions(+) create mode 100644 .zshrc create mode 100644 Dockerfile create mode 100755 build.sh create mode 100755 run.sh diff --git a/.gitignore b/.gitignore index eb3528e8..b339edab 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,5 @@ zcompdump.zwc # OS X .DS_Store **/.DS_Store + +.ssh diff --git a/.zshrc b/.zshrc new file mode 100644 index 00000000..cec2f705 --- /dev/null +++ b/.zshrc @@ -0,0 +1,22 @@ +# Sample zshrc + +ZPLUG_SUDO_PASSWORD= +ZPLUG_PROTOCOL=ssh + +source $HOME/.zplug/init.zsh + +zplug "b4b4r07/ultimate", as:theme +zplug 'b4b4r07/zplug-doctor', lazy:yes +zplug 'b4b4r07/zplug-cd', lazy:yes +zplug 'b4b4r07/zplug-rm', lazy:yes + +if ! zplug check --verbose; then + printf "Install? [y/N]: " + if read -q; then + echo; zplug install + fi + echo +fi + +zplug load + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..fd6dea49 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM ubuntu:xenial + +RUN apt update && apt-get install -y software-properties-common && \ + add-apt-repository -y ppa:jonathonf/vim && \ + apt-get update && apt-get install -y locales build-essential openssh-server git vim zsh tmux curl unzip sudo && \ + rm -rf /var/lib/apt/lists/* + +RUN locale-gen en_US.UTF-8 + +RUN groupadd -g 1000 zplug && \ + useradd -g zplug -G sudo -m -s /bin/zsh zplug && \ + echo 'zplug:zplug' | chpasswd + +# .ssh dir needs to be copied from your home +ADD .ssh /home/zplug/.ssh + +RUN chown -R zplug:zplug /home/zplug +RUN chmod 600 /home/zplug/.ssh/id_rsa + +USER zplug +WORKDIR /home/zplug + +RUN git clone https://github.com/zplug/zplug ~/.zplug + +CMD ["/bin/zsh"] diff --git a/build.sh b/build.sh new file mode 100755 index 00000000..2065381c --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -e + +cp -R ~/.ssh .ssh + +docker build -t zplug -f Dockerfile . + +rm -rf .ssh diff --git a/run.sh b/run.sh new file mode 100755 index 00000000..37fedfdd --- /dev/null +++ b/run.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +set -e + +zshrc_path=${1:-${PWD}/.zshrc} + +docker run --rm -v $zshrc_path:/home/zplug/.zshrc -it zplug From de174fec047f22feda904f97731b70df6f690a50 Mon Sep 17 00:00:00 2001 From: b4b4r07 Date: Mon, 14 May 2018 23:49:42 +0900 Subject: [PATCH 11/17] Do not clone in Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd6dea49..364770b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,12 +14,12 @@ RUN groupadd -g 1000 zplug && \ # .ssh dir needs to be copied from your home ADD .ssh /home/zplug/.ssh +ADD . /home/zplug/.zplug + RUN chown -R zplug:zplug /home/zplug RUN chmod 600 /home/zplug/.ssh/id_rsa USER zplug WORKDIR /home/zplug -RUN git clone https://github.com/zplug/zplug ~/.zplug - CMD ["/bin/zsh"] From 2d9041f11c68a97e5c6df4fa09acd839f0c35545 Mon Sep 17 00:00:00 2001 From: b4b4r07 Date: Tue, 15 May 2018 00:04:09 +0900 Subject: [PATCH 12/17] Add .github/CODEOWNERS --- .github/CODEOWNERS | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..b78cd484 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,3 @@ +# https://help.github.com/articles/about-codeowners/ + +* @zplug/maintainer From 1ceaf8e5a5cf71f609d142c864a129d5dce80603 Mon Sep 17 00:00:00 2001 From: b4b4r07 Date: Tue, 15 May 2018 01:06:44 +0900 Subject: [PATCH 13/17] Make `zplug help` works like the same as `zplug --help` fixes #451 --- autoload/commands/__help__ | 89 ++++++++++++++++++++++++++++++++++++++ autoload/zplug | 2 +- 2 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 autoload/commands/__help__ diff --git a/autoload/commands/__help__ b/autoload/commands/__help__ new file mode 100644 index 00000000..a36657e0 --- /dev/null +++ b/autoload/commands/__help__ @@ -0,0 +1,89 @@ +#!/usr/bin/env zsh +# Description: +# Display the help message + +local f arg +local -a fs args + +local -A opts cmds +local obj opt cmd +local -i max=0 + +while (( $# > 0 )) +do + arg="$1" + case "$arg" in + -*|--*) + break + ;; + "") + ;; + *) + fs=( "$(echo $ZPLUG_HOME/doc/man/man(1|5)/(zplug-|)${arg}.(1|5)(N))" ) + # Non-existing man page + if [[ $fs[1] == "" ]]; then + __zplug::io::print::f \ + --die \ + --zplug \ + "$arg: no such subcommand or tag\n" + return 1 + fi + # List all hits pages + for f in "${fs[@]}" + do + if [[ -f $f ]]; then + args+=( "$f" ) + fi + done + ;; + esac + shift +done + +if (( $#args > 0 )); then + man "${args[@]}" + return $status +fi + +# Measure max length +{ + cmds=( "${(kv)_zplug_commands[@]}" ) + for opt in "${(k)_zplug_options[@]}" + do + opts[--$opt]="$_zplug_options[$opt]" + done + + for obj in "${(k)cmds[@]}" "${(k)opts[@]}" + do + if (( $#obj > $max )); then + max=$#obj + fi + done +} + +# Help message format +{ + printf "usage: zplug [OPTIONS] [COMMANDS [options] [args]]\n" + printf " zplug is a next-generation plugin manager for zsh\n" + + for obj in \ + OPTIONS "${(k)opts[@]}" \ + COMMANDS "${(k)cmds[@]}"; do \ + case "$obj" in + OPTIONS | COMMANDS) + printf "\n$obj:\n" + ;; + *) + desc="(None)" + [[ -n $opts[$obj] ]] && desc="$opts[$obj]" + [[ -n $cmds[$obj] ]] && desc="$cmds[$obj]" + printf " %-${max}s %s\n" \ + "$obj" \ + "$desc" + ;; + esac + done + printf "\n" +} >&2 + +return 0 diff --git a/autoload/zplug b/autoload/zplug index cb158725..f7912767 100644 --- a/autoload/zplug +++ b/autoload/zplug @@ -7,7 +7,7 @@ case "$arg" in __zplug::core::options::parse "$argv[@]" ;; - check | install | update | list | clean | status | clear | load | info) + check | install | update | list | clean | status | clear | load | info | help) shift __zplug::core::core::run_interfaces \ "$arg" \ From fdc2bf46a6cc29430b947362f20d3a643edc0f3a Mon Sep 17 00:00:00 2001 From: Klaus Helenius Date: Sat, 25 Mar 2017 05:17:10 +0200 Subject: [PATCH 14/17] added option to disable loading logs --- base/core/core.zsh | 2 ++ base/core/load.zsh | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/base/core/core.zsh b/base/core/core.zsh index 0ba9e00c..d2474e34 100644 --- a/base/core/core.zsh +++ b/base/core/core.zsh @@ -171,6 +171,8 @@ __zplug::core::core::variable() typeset -gx ZPLUG_SUDO_PASSWORD typeset -gx ZPLUG_ERROR_LOG=${ZPLUG_ERROR_LOG:-$ZPLUG_HOME/.error_log} + typeset -gx ZPLUG_LOG_LOAD_SUCCESS=${ZPLUG_LOG_LOAD_SUCCESS:-true} + typeset -gx ZPLUG_LOG_LOAD_FAILURE=${ZPLUG_LOG_LOAD_FAILURE:-true} typeset -gx ZPLUG_BIN=${ZPLUG_BIN:-$ZPLUG_HOME/bin} typeset -gx ZPLUG_CACHE_DIR=${ZPLUG_CACHE_DIR:-$ZPLUG_HOME/cache} diff --git a/base/core/load.zsh b/base/core/load.zsh index 497690c1..49c98e69 100644 --- a/base/core/load.zsh +++ b/base/core/load.zsh @@ -3,8 +3,8 @@ __zplug::core::load::prepare() setopt nomonitor zstyle ':zplug:core:load' 'verbose' no - __zplug::io::file::rm_touch "$_zplug_load_log[success]" - __zplug::io::file::rm_touch "$_zplug_load_log[failure]" + $ZPLUG_LOG_LOAD_SUCCESS && __zplug::io::file::rm_touch "$_zplug_load_log[success]" + $ZPLUG_LOG_LOAD_FAILURE && __zplug::io::file::rm_touch "$_zplug_load_log[failure]" } __zplug::core::load::from_cache() @@ -116,9 +116,9 @@ __zplug::core::load::as_plugin() if [[ -n $hook ]]; then eval ${=hook} fi - __zplug::job::handle::flock "$_zplug_load_log[success]" "$repo" + $ZPLUG_LOG_LOAD_SUCCESS && __zplug::job::handle::flock "$_zplug_load_log[success]" "$repo" else - __zplug::job::handle::flock "$_zplug_load_log[failure]" "$repo" + $ZPLUG_LOG_LOAD_FAILURE && __zplug::job::handle::flock "$_zplug_load_log[failure]" "$repo" fi return $status_code @@ -171,9 +171,9 @@ __zplug::core::load::as_command() if [[ -n $hook ]]; then eval ${=hook} fi - __zplug::job::handle::flock "$_zplug_load_log[success]" "$repo" + $ZPLUG_LOG_LOAD_SUCCESS && __zplug::job::handle::flock "$_zplug_load_log[success]" "$repo" else - __zplug::job::handle::flock "$_zplug_load_log[failure]" "$repo" + $ZPLUG_LOG_LOAD_FAILURE && __zplug::job::handle::flock "$_zplug_load_log[failure]" "$repo" fi return $status_code From 6abc7c0b193634d97c380d202c9efb92a86cab33 Mon Sep 17 00:00:00 2001 From: b4b4r07 Date: Tue, 15 May 2018 03:12:25 +0900 Subject: [PATCH 15/17] Update README --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 1eaa8407..01e4dd73 100644 --- a/README.md +++ b/README.md @@ -348,6 +348,14 @@ Defaults to `$ZPLUG_HOME/repos`. You can change where the repositories are clone Defaults to `''`. You can set sudo password for zplug's `hook-build` tag. However, this variable should not be managed in dotfiles and so on. +#### `ZPLUG_LOG_LOAD_SUCCESS` + +Defaults to `false`. If true, zplug spit the log about its success operation out to file (you can see it with `zplug --log`). + +#### `ZPLUG_LOG_LOAD_FAILURE` + +Defaults to `false`. If true, zplug spit the log about its failure operation out to file (you can see it with `zplug --log`). + ```zsh # your .zshrc source ~/.zshrc_secret From cf25e57ac85e13fe34c765f1d6c6579d14027e77 Mon Sep 17 00:00:00 2001 From: b4b4r07 Date: Tue, 15 May 2018 03:17:09 +0900 Subject: [PATCH 16/17] Defaults to false (ZPLUG_LOG_LOAD_SUCCESS) --- base/core/core.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/core/core.zsh b/base/core/core.zsh index d2474e34..4e2624fb 100644 --- a/base/core/core.zsh +++ b/base/core/core.zsh @@ -171,8 +171,8 @@ __zplug::core::core::variable() typeset -gx ZPLUG_SUDO_PASSWORD typeset -gx ZPLUG_ERROR_LOG=${ZPLUG_ERROR_LOG:-$ZPLUG_HOME/.error_log} - typeset -gx ZPLUG_LOG_LOAD_SUCCESS=${ZPLUG_LOG_LOAD_SUCCESS:-true} - typeset -gx ZPLUG_LOG_LOAD_FAILURE=${ZPLUG_LOG_LOAD_FAILURE:-true} + typeset -gx ZPLUG_LOG_LOAD_SUCCESS=${ZPLUG_LOG_LOAD_SUCCESS:-false} + typeset -gx ZPLUG_LOG_LOAD_FAILURE=${ZPLUG_LOG_LOAD_FAILURE:-false} typeset -gx ZPLUG_BIN=${ZPLUG_BIN:-$ZPLUG_HOME/bin} typeset -gx ZPLUG_CACHE_DIR=${ZPLUG_CACHE_DIR:-$ZPLUG_HOME/cache} From 6d580aaa30736e3953330b5f57066732d7bcb897 Mon Sep 17 00:00:00 2001 From: Juan Gonzalez Date: Tue, 3 Jul 2018 16:18:01 -0400 Subject: [PATCH 17/17] Fix typos: 'Command to after' -> 'Commands to run after' --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 01e4dd73..a89b5603 100644 --- a/README.md +++ b/README.md @@ -251,8 +251,8 @@ All that's left is to run `zplug update`. | `rename-to` | Specify the filename you want to rename the command to (use this only with `as:command`) | *filename* (-) | `rename-to:fzf` | | `dir` | Installed directory of the package | **READ ONLY** | `dir:/path/to/user/repo` | | `if` | Specify the conditions under which to install and use the package | *boolean* (-) | `if:"[ -d ~/.zsh ]"` | -| `hook-build` | Commands to after installation/update | *commands* (-) | `hook-build:"make install"` | -| `hook-load` | Commands to after loading | *commands* (-) | `hook-load:"echo 'Loaded!'"` | +| `hook-build` | Commands to run after installation/update | *commands* (-) | `hook-build:"make install"` | +| `hook-load` | Commands to run after loading | *commands* (-) | `hook-load:"echo 'Loaded!'"` | | `frozen` | Do not update unless explicitly specified | truthy,falsy (false) | `frozen:1` | | `on` | Load this package only if a different package is installed | *package* | `on:user/repo` | | `defer` | Defers the loading of a package. If the value is 2 or above, zplug will source the plugin after `compinit` (see also [#26](https://github.com/zplug/zplug/issues/26)) | 0..3 (0) | `defer:2` |