logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

zplug-if - The conditions under which to install and/or use the package

Authors

zplug was originally written by Masaki Ishiyama (a.k.a @b4b4r07). Many people have contributed to it.

Copying

Copyright (C) 2015-2016 Masaki Ishiyama MIT License

Description

By using if tag, you can choose whether the package you want to install will be installed as the plugin or as the command. Table1.zplugiftag ┌─────────────────┬───────────────┐ │ PossiveValuesDefaultvalue │ ├─────────────────┼───────────────┤ │ │ │ │ plugin, command │ plugin │ └─────────────────┴───────────────┘ Besides, by using zstyle command, you can change default value: $ zstyle ":zplug:tag" if "[[ $OSTYPE == *darwin* ]]"

Examples

Load if the local directory exists: $ zplug "~/.zsh" \ from:local, \ use:"*.{sh,zsh}", \ if:"[ -d ~/.zsh ]"

Further Documentation

See the references in official wiki page to get started using zplug. The wiki may perhaps be overwhelming for first-time users.

Name

zplug-if - The conditions under which to install and/or use the package

Reporting Bugs

Report bugs to the zplug issues ZPLUG Manual 11/21/2016 ZPLUG-IF(5)

See Also

zplug(1)

Synopsis

zplug"username/reponame", if:(($+commands[git])) The word ´package´ refers to the string in the format: "username/reponame".

See Also