1
0
mirror of https://github.com/zplug/zplug synced 2025-04-05 15:19:13 +02:00
zplug/doc/txt/zplug-if.txt
2016-11-21 18:54:05 +09:00

81 lines
1.5 KiB
Plaintext

zplug-if(5)
===========
Masaki Ishiyama b4b4r07@gmail.com
:man manual: ZPLUG Manual
NAME
----
zplug-if - The conditions under which to install and/or use the package
SYNOPSIS
--------
[verse]
'zplug' '"username/reponame"', 'if:(( $+commands[git] ))'
The word 'package' refers to the string in the format: "username/reponame".
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.
.zplug if tag
[options="header"]
|================================
| Possive Values | Default value
| 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 ]"
------------
SEE ALSO
--------
*zplug(1)*
Further Documentation
---------------------
See the references in https://github.com/zplug/zplug/wiki[official wiki page] to get started using zplug.
The wiki may perhaps be overwhelming for first-time users.
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
Reporting Bugs
--------------
Report bugs to the https://github.com/zplug/zplug/issues[zplug issues]
// vim:ft=asciidoc