mirror of
https://github.com/zplug/zplug
synced 2025-04-30 13:17:57 +02:00
commit
680cc7fa2f
12
README.md
12
README.md
@ -199,7 +199,7 @@ Finally, use `zplug install` to install your plugins and reload `.zshrc`.
|
||||
| `install` | Install packages in parallel | (None) |
|
||||
| `load` | Source installed plugins and add installed commands to `$PATH` | `--verbose` |
|
||||
| `list` | List installed packages (more specifically, view the associative array `$zplugs`) | `--select` |
|
||||
| `update` | Update installed packages in parallel | `--self`,`--select`,`--force` |
|
||||
| `update` | Update installed packages in parallel | `--select`,`--force` |
|
||||
| `check` | Return true if all packages are installed, false otherwise | `--verbose` |
|
||||
| `status` | Check if the remote repositories are up to date | `--select` |
|
||||
| `clean` | Remove repositories which are no longer managed | `--force`,`--select` |
|
||||
@ -227,15 +227,7 @@ fi
|
||||
|
||||
#### Let zplug manage zplug
|
||||
|
||||
If you want to manage zplug by itself, run this command (after installing zplug, of course):
|
||||
|
||||
```console
|
||||
$ zplug update --self
|
||||
```
|
||||
|
||||
By using the `--self` option, zplug will be cloned to `$ZPLUG_HOME/repos` so that zplug can be managed by itself.
|
||||
|
||||
To manage zplug in the same way as any other packages, put the following in your `.zshrc`.
|
||||
To manage zplug itself like other packages, write the following in your `.zshrc`.
|
||||
|
||||
```zsh
|
||||
zplug "zplug/zplug"
|
||||
|
@ -200,7 +200,7 @@ Finally, use `zplug install` to install your plugins and reload `.zshrc`.
|
||||
| `install` | 並列インストール | (なし) |
|
||||
| `load` | インストール済みプラグインを読み込み、インストール済みコマンドを `$PATH` に追加する | `--verbose` |
|
||||
| `list` | インストール済みパッケージを表示する (端的に連想配列 `$zplugs` を表示する) | `--select` |
|
||||
| `update` | インストール済みパッケージを並列でアップデートする | `--self`,`--select`,`--force` |
|
||||
| `update` | インストール済みパッケージを並列でアップデートする | `--select`,`--force` |
|
||||
| `check` | 未インストールなパッケージがないなら真を返し、そうでなければ偽を返す | `--verbose` |
|
||||
| `status` | パッケージが最新かどうか確認する| `--select` |
|
||||
| `clean` | 管理されていないパッケージを削除する | `--force`,`--select` |
|
||||
@ -228,15 +228,7 @@ fi
|
||||
|
||||
#### zplug を zplug で管理する
|
||||
|
||||
zplug 自身を管理するなら以下を実行する (zplug のインストール後に):
|
||||
|
||||
```console
|
||||
$ zplug update --self
|
||||
```
|
||||
|
||||
`--self` オプションを利用すると zplug が `$ZPLUG_HOME/repos` にインストールされ、zplugは自身により管理される。
|
||||
|
||||
zplug を他のパッケージと同様に管理するには `.zshrc` に以下を書き込む。
|
||||
他のパッケージと同様に zplug を管理するには `.zshrc` に以下を書き込む。
|
||||
|
||||
```zsh
|
||||
zplug "zplug/zplug"
|
||||
|
@ -11,7 +11,7 @@ zplug-update - Update installed packages in parallel
|
||||
SYNOPSIS
|
||||
--------
|
||||
[verse]
|
||||
'zplug update' [--force] [--self|--select ['"username/reponame"']]
|
||||
'zplug update' [--force] [--select ['"username/reponame"']]
|
||||
|
||||
The word 'package' refers to the string in the format: "username/reponame".
|
||||
|
||||
@ -23,9 +23,6 @@ Update installed packages and zplug by itself.
|
||||
|
||||
OPTIONS
|
||||
-------
|
||||
*--self*::
|
||||
Use this command to update your copy of zplug.
|
||||
|
||||
*--select*::
|
||||
Choose the package that is not updated from the list and update it.
|
||||
|
||||
@ -54,17 +51,6 @@ Updated! zsh-users/zsh-completions (4.00s)
|
||||
|
||||
------------
|
||||
|
||||
Update zplug:
|
||||
|
||||
------------
|
||||
$ zplug update --self
|
||||
* zplug self management
|
||||
Updating... zplug/zplug
|
||||
Up-to-date zplug/zplug (2.42s)
|
||||
Everything is ready. (~/.zplug/zplug)
|
||||
|
||||
------------
|
||||
|
||||
|
||||
SEE ALSO
|
||||
--------
|
||||
|
@ -96,9 +96,8 @@ COMMANDS
|
||||
Fetch the newest version of the installed packages by zplug.
|
||||
`--select` does the same as what's described above.
|
||||
|
||||
*update* [--self] [--select] [--force] ['package']::
|
||||
*update* [--select] [--force] ['package']::
|
||||
Update 'package'. If no package is given, updates all registered packages.
|
||||
If `--self` is given, update zplug itself.
|
||||
`--select` does the same as what's described above.
|
||||
|
||||
|
||||
|
@ -63,13 +63,6 @@ case "$words[1]" in
|
||||
'*:: :( "${(k)zplugs[@]}" )'
|
||||
ret=0
|
||||
;;
|
||||
update)
|
||||
_arguments \
|
||||
'(- 1 *)--self[update zplug by itself]' \
|
||||
'(--select)--select[select items with interactive filters]' \
|
||||
'*:: :( "${(k)zplugs[@]}" )'
|
||||
ret=0
|
||||
;;
|
||||
install)
|
||||
_arguments \
|
||||
'(--verbose)--verbose[show non-installed items in output]' \
|
||||
@ -82,7 +75,7 @@ case "$words[1]" in
|
||||
'(--verbose)--verbose[display loading files]'
|
||||
ret=0
|
||||
;;
|
||||
status|list)
|
||||
status|list|update)
|
||||
_arguments \
|
||||
'(--select)--select[select items with interactive filters]' \
|
||||
'*:: :( "${(k)zplugs[@]}" )'
|
||||
|
Loading…
Reference in New Issue
Block a user