mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
Make plugin compatible with zsh plugin standard
This commit is contained in:
@@ -1 +1,9 @@
|
|||||||
fpath+="${0:h}/src"
|
# Standarized $0 handling, following:
|
||||||
|
# https://github.com/zdharma/Zsh-100-Commits-Club/blob/master/Zsh-Plugin-Standard.adoc
|
||||||
|
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
|
||||||
|
0="${${(M)0:#/*}:-$PWD/$0}"
|
||||||
|
|
||||||
|
if [[ $PMSPEC != *f* ]] {
|
||||||
|
fpath+=( "${0:h}/functions" )
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user