Skip to content

Implement 2 paragraphs (1st and 5th) of the plugin standard#124

Open
psprint wants to merge 1 commit intotarjoilija:masterfrom
psprint:master
Open

Implement 2 paragraphs (1st and 5th) of the plugin standard#124
psprint wants to merge 1 commit intotarjoilija:masterfrom
psprint:master

Conversation

@psprint
Copy link
Copy Markdown

@psprint psprint commented Oct 24, 2019

I thought that I'll implement some of the paragraphs of the plugin standard. The PR implements paragraph 1 and 5:

  1. Provide the $ZERO parameter – a sister parameter to the $0.
  2. Provide the $zsh_loaded_plugins array.

The details are on the link. The PR doesn't cover Prezto modules, however they don't rely on $ZERO and $zsh_loaded_plugins parameters. The standard has some adoption now, e.g.:
GitHub search. Most of the plugins are mine, however c.a. 50% are other authors.

Example init.zsh generated:

# {{{
# Generated by zgen.
# This file will be overwritten the next time you run zgen save!

ZSH=/root/.zgen/robbyrussell/oh-my-zsh-master

# ### General modules
typeset -ga zsh_loaded_plugins

# zdharma/zconvey
zsh_loaded_plugins+=( "zdharma/zconvey" )
ZERO="/root/.zgen/zdharma/zconvey-master/zconvey.plugin.zsh"
source "/root/.zgen/zdharma/zconvey-master/zconvey.plugin.zsh"

# fast-syntax-highlighting
zsh_loaded_plugins+=( "/fast-syntax-highlighting" )
ZERO="/root/my-plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh"
source "/root/my-plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh"

# robbyrussell/oh-my-zsh/oh-my-zsh.sh
zsh_loaded_plugins+=( "robbyrussell/oh-my-zsh/oh-my-zsh.sh" )
ZERO="/root/.zgen/robbyrussell/oh-my-zsh-master/oh-my-zsh.sh"
source "/root/.zgen/robbyrussell/oh-my-zsh-master/oh-my-zsh.sh"

# robbyrussell/oh-my-zsh/lib/git.zsh
zsh_loaded_plugins+=( "robbyrussell/oh-my-zsh/lib/git.zsh" )
ZERO="/root/.zgen/robbyrussell/oh-my-zsh-master/lib/git.zsh"
source "/root/.zgen/robbyrussell/oh-my-zsh-master/lib/git.zsh"

# robbyrussell/oh-my-zsh/plugins/git
zsh_loaded_plugins+=( "robbyrussell/oh-my-zsh/plugins/git" )
ZERO="/root/.zgen/robbyrussell/oh-my-zsh-master/plugins/git/git.plugin.zsh"
source "/root/.zgen/robbyrussell/oh-my-zsh-master/plugins/git/git.plugin.zsh"
unset ZERO

# ### Plugins & Completions
fpath=(/root/my-plugins/fast-syntax-highlighting /root/.zgen/zdharma/zconvey-master /root/.zgen/robbyrussell/oh-my-zsh-master/plugins/git /root/.zgen/robbyrussell/oh-my-zsh-master/lib ${fpath})

# }}}

@jubishop
Copy link
Copy Markdown

this is awesome.

@psprint
Copy link
Copy Markdown
Author

psprint commented Jan 30, 2020

Hi.
Any update on this? I could revise the PR and thoroughly test it once more if it has any chance of merging.

jandamm pushed a commit to jandamm/zgenom that referenced this pull request Sep 19, 2020
I thought that I'll implement some of the paragraphs of the plugin
standard. The PR implements paragraph 1 and 5:

1. Provide the $ZERO parameter – a sister parameter to the $0.
2. Provide the $zsh_loaded_plugins array.

http://zdharma.org/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html

Closes tarjoilija/zgen#124
jandamm added a commit to jandamm/zgenom that referenced this pull request Dec 11, 2020
1. Standardized $0 Handling              - Yes
2. Functions Directory                   - Yes
3. Binaries Directory                    - Sort of*
4. Unload Function                       - Doesn't apply
5. @zsh-plugin-run-on-unload Call        - Doesn't apply
6. @zsh-plugin-run-on-update Call        - No
7. Plugin Manager Activity Indicator     - Yes
8. Global Parameter ZPFX                 - Yes
9. Global Parameter holding capabilities - Yes

\* I don't think it is a good idea to automatically add every `bin`
folder to the PATH. If the user wants this `zgenom bin <repo>` does so.

Closes #27
Closes tarjoilija/zgen#104
Closes tarjoilija/zgen#124
jandamm added a commit to jandamm/zgenom that referenced this pull request Dec 16, 2020
1. Standardized $0 Handling              - Yes
2. Functions Directory                   - Yes
3. Binaries Directory                    - Sort of*
4. Unload Function                       - Doesn't apply
5. @zsh-plugin-run-on-unload Call        - Doesn't apply
6. @zsh-plugin-run-on-update Call        - No
7. Plugin Manager Activity Indicator     - Yes
8. Global Parameter ZPFX                 - Yes
9. Global Parameter holding capabilities - Yes

\* I don't think it is a good idea to automatically add every `bin`
folder to the PATH. If the user wants this `zgenom bin <repo>` does so.

Closes #27
Closes tarjoilija/zgen#104
Closes tarjoilija/zgen#124
forivall pushed a commit to forivall/zgen that referenced this pull request Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants