Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Announcement of Zplugin ver. 300 commits
- X-seq: zsh-users 21233
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Announcement of Zplugin ver. 300 commits
- Date: Thu, 4 Feb 2016 17:29:17 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=FsuvnhSS8y1kwRUxPY9YnYz3CNADcsBShy7G7oM2CIQ=; b=q6vyezchvOwAvWvQjS5ENjrO3Zyzmg+UmiZuBRtsn74iIxJR0anuitiwR80/3ObPDK jMY/EYsLNS3WtX1TQWov7CzDcZaZ4EX7zXA7SwOIyBmIZdXl42wNbaYuQOgV7HeKUDh0 +18biYsLgASAJYwP4K6FyWnSdRFggR1vF8x8MBw5tI+AWu4Dlbo8ZOT0BcgcevGntNne 7aXoYh6ueBmeN7+Z1Mu5A3GNbmChZRkA95YdQ7g61381k0XspuHrSHsYQ+QgZTd2++2z dgHqaJk2w0Fay/pGgSffVA9lyHy9QJekCk1c32iSMp96GcRHcv57b+kdNnh3tnYNO6CR McNg==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hello,
nearly 300 commits have been added to Zplugin. The project is about
tracing what plugins do. An answer to injecting naive *.plugin.zsh
code into session. The feature base is very large, but one example can
say much:
to use Oh-My-Zsh sessions, one needs their libs/git.zsh. Snippet
feature allows to source that code:
zplugin snippet http://github.com/robbyrussell/oh-my-zsh/raw/master/lib/git.zsh
Now it's possible to load most of OMZ themes. However, what has
actually happened during the source? The feature, Dtrace, allows to
tell:
https://asciinema.org/a/79tig2hyjq61r6o3ww7hl5uti
% zplg dtrace
% zplugin snippet
http://github.com/robbyrussell/oh-my-zsh/raw/master/lib/git.zsh
% zplg dstop
% zplg dreport
Plugin report for _dtrace/_dtrace
---------------------------------
Functions created:
git_commits_ahead git_current_branch
git_prompt_ahead git_prompt_behind
git_prompt_info git_prompt_long_sha
git_prompt_remote git_prompt_short_sha
git_prompt_status git_remote_status
parse_git_dirty
Variables added or redefined:
POST_1_7_2_GIT [ "" -> scalar ]
% zplg dunload
Deleting function git_commits_ahead
Deleting function git_current_branch
Deleting function git_prompt_ahead
Deleting function git_prompt_behind
Deleting function git_prompt_info
Deleting function git_prompt_long_sha
Deleting function git_prompt_remote
Deleting function git_prompt_short_sha
Deleting function git_prompt_status
Deleting function git_remote_status
Deleting function parse_git_dirty
Unsetting variable POST_1_7_2_GIT
dtrace report saved to $LASTREPORT
That's what Zplugin does. Tracks and reports, and unloads – zstyles,
bindkeys, aliases, zle widgets, PATH and FPATH elements, options,
variables. Plugins are tracked without Dtrace, it's their standard
mode of operation, unless "light" load is done, provided for trusted
code loading (like z-sy-h ;) and saving few CPU cycles. Naive code
cannot survive Zplugin eyes, hopefully. Tested 43 plugins and few OMZ
themes (some of them don't work because they use git _plugin_, that's
OMZ issue that they don't provide enough in lib/git.zsh).
https://github.com/psprint/zplugin
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author