|
1 | | -# According to the Zsh Plugin Standard: |
2 | | -# https://github.com/z-shell/zi/wiki/Zsh-Plugin-Standard |
3 | | - |
4 | | -0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}" |
| 1 | +# Standardized 0ドル Handling |
| 2 | +# https://z.digitalclouds.dev/community/zsh_plugin_standard#zero-handling |
| 3 | +0="${ZERO:-${${0:#$ZSH_ARGZERO}:-${(%):-%N}}}" |
5 | 4 | 0="${${(M)0:#/*}:-$PWD/0ドル}" |
6 | 5 |
|
| 6 | +# Functions directory |
| 7 | +# https://z.digitalclouds.dev/community/zsh_plugin_standard#funtions-directory |
7 | 8 | if [[ $PMSPEC != *f* ]] { |
8 | | - fpath+=( "${0:h}/functions" ) |
| 9 | + fpath+=( "${0:h}/functions" ) |
9 | 10 | } |
10 | 11 |
|
11 | 12 | zmodload zsh/system 2>/dev/null |
12 | 13 |
|
| 14 | +# API-like functions |
| 15 | +# https://z.digitalclouds.dev/community/zsh_plugin_standard#the-proposed-function-name-prefixes |
13 | 16 | autoload -Uz \ |
14 | 17 | @str-parse-json \ |
15 | 18 | @str-read-all \ |
|
0 commit comments