1
0
Fork 0
mirror of https://github.com/zplug/zplug synced 2024-06-03 13:26:10 +02:00

✏️ Delete `--self` option from `update` command.

zplug/zplug#318
This commit is contained in:
Aoi Tachibana 2016-12-21 21:29:22 +09:00
parent f39db66938
commit 9eb3d31a91
No known key found for this signature in database
GPG Key ID: 41539C1B0D4FD430
4 changed files with 6 additions and 37 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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
--------

View File

@ -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.