Update zdharma and zinit refs

This commit is contained in:
Philipp Schmitt 2021-11-12 18:57:51 +01:00
parent 96189b47a7
commit 90e82e2022
No known key found for this signature in database
GPG key ID: DC439C47EACB17F9
3 changed files with 18 additions and 18 deletions

View file

@ -7,7 +7,7 @@
- [Introduction](#introduction)
- [Zstyles](#zstyles)
- [Installation](#installation)
- [Zplugin](#zplugin)
- [Zinit](#zinit)
- [Antigen](#antigen)
- [Oh-My-Zsh](#oh-my-zsh)
- [Zgen](#zgen)
@ -75,44 +75,44 @@ source {where-zconvey-is}/zconvey.plugin.zsh
to `zshrc`.
If using a plugin manager, then `Zplugin` is recommended, but you can use any
If using a plugin manager, then `Zinit` is recommended, but you can use any
other too, and also install with `Oh My Zsh` (by copying directory to
`~/.oh-my-zsh/custom/plugins`).
The plugin integrates with my other plugin [Zsh-Select](https://github.com/psprint/zsh-select).
Install it with e.g. Zplugin to be able to use `-a` option for `zc` command. It also integrates
The plugin integrates with my other plugin [Zsh-Select](https://github.com/zdharma-continuum/zsh-select).
Install it with e.g. Zinit to be able to use `-a` option for `zc` command. It also integrates
with [marzocchi/zsh-notify](https://github.com/marzocchi/zsh-notify), via `cmds/plg-zsh-notify`
script.
## [Zplugin](https://github.com/zdharma-continuum/zinit)
## [Zinit](https://github.com/zdharma-continuum/zinit)
Add `zplugin load zdharma/zconvey` to your `.zshrc` file. Zplugin will clone the plugin
the next time you start zsh. To update issue `zplugin update zdharma/zconvey`.
Add `zinit load zdharma-continuum/zconvey` to your `.zshrc` file. Zinit will clone the plugin
the next time you start zsh. To update issue `zinit update zdharma-continuum/zconvey`.
Zplugin can load in [turbo-mode](https://github.com/zdharma-continuum/zinit#turbo-mode-zsh--53),
Zinit can load in [turbo-mode](https://github.com/zdharma-continuum/zinit#turbo-mode-zsh--53),
below is an example configuration, together with adding `zc-bg-notify` to `$PATH`:
```zsh
zplugin ice wait"0"
zplugin light zdharma/zconvey
zplugin ice wait"0" as"command" pick"cmds/zc-bg-notify" silent
zplugin light zdharma/zconvey
zinit ice wait"0"
zinit light zdharma-continuum/zconvey
zinit ice wait"0" as"command" pick"cmds/zc-bg-notify" silent
zinit light zdharma-continuum/zconvey
```
## Antigen
Add `antigen bundle zdharma/zconvey` to your `.zshrc` file. Antigen will handle
Add `antigen bundle zdharma-continuum/zconvey` to your `.zshrc` file. Antigen will handle
cloning the plugin for you automatically the next time you start zsh.
## Oh-My-Zsh
1. `cd ~/.oh-my-zsh/custom/plugins`
2. `git clone git@github.com:zdharma/zconvey.git`
2. `git clone git@github.com:zdharma-continuum/zconvey.git`
3. Add `zconvey` to your plugin list
## Zgen
Add `zgen load zdharma/zconvey` to your .zshrc file in the same place you're doing
Add `zgen load zdharma-continuum/zconvey` to your .zshrc file in the same place you're doing
your other `zgen load` calls in.
# Information
@ -126,7 +126,7 @@ There are following commands:
- `zc-ls` lists all active and named sessions
- `zc-id`  shows ID and NAME of current session
- `zc-logo` the same as `zc-id`, but in a form of an on-screen logo; bound to Ctrl-O Ctrl-I
- `zc-bg-notify` in subdirectory `cmds`, link it to `/usr/local/bin`, etc. or load with e.g. Zplugin
- `zc-bg-notify` in subdirectory `cmds`, link it to `/usr/local/bin`, etc. or load with e.g. Zinit
The main command is `zc` (yet it is rather rarely used, I'm always sending to all sessions with `zc-all`).
It is used to execute commands on other sessions. `zc-ls` is the main tool

View file

@ -192,7 +192,7 @@ zsystem supports flock || typeset -g no_zsystem=1
typeset -g ZCONVEY_REPO_DIR ZCONVEY_CONFIG_DIR ZCONVEY_IO_DIR ZCONVEY_LOCKS_DIR ZCONVEY_NAMES_DIR ZCONVEY_OTHER_DIR
typeset -gA ZCONVEY_CONFIG
: ${ZCONVEY_REPO_DIR:=$HOME/.zplugin/plugins/zdharma---zconvey} # TODO: add configuration file
: ${ZCONVEY_REPO_DIR:=$HOME/.zinit/plugins/zdharma---zconvey} # TODO: add configuration file
: ${ZCONVEY_CONFIG_DIR:=${XDG_CONFIG_HOME:-$HOME/.config}/zconvey}
: ${ZCONVEY_IO_DIR:=${ZCONVEY_CONFIG_DIR}/io}
: ${ZCONVEY_LOCKS_DIR:=${ZCONVEY_CONFIG_DIR}/locks}

2
zc
View file

@ -110,7 +110,7 @@ if (( $ask )); then
if [[ "$have_id" = "0" && "$have_name" = "0" ]]; then
if ! type zsh-select 2>/dev/null 1>&2; then
__zconvey_pinfo "Zsh-Select not installed, please install it before using -a/--ask, aborting"
__zconvey_pinfo "Example installation: zplugin load psprint/zsh-select"
__zconvey_pinfo "Example installation: zinit load psprint/zsh-select"
return 1
else
export ZSHSELECT_START_IN_SEARCH_MODE=0