Logo
Explore Help
Register Sign In
mirrors/ohmyzsh
1
0
Fork 0
You've already forked ohmyzsh
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2025-06-03 22:04:31 +08:00
Code Issues Projects Releases Wiki Activity
ohmyzsh/plugins/z/z.plugin.zsh

7 lines
220 B
Bash
Raw Normal View History

refactor: handle `$0` according to the Zsh plugin standard (#10518) For details and rationale, see: https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html Closes #10518
2021-12-18 14:53:49 -06:00
# Handle $0 according to the standard:
chore: fix comment bulk replace
2021-12-28 14:16:54 +01:00
# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
refactor: handle `$0` according to the Zsh plugin standard (#10518) For details and rationale, see: https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html Closes #10518
2021-12-18 14:53:49 -06:00
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
0="${${(M)0:#/*}:-$PWD/$0}"
z plugin: fix loading from custom location The old implementation would attempt to load both the default and custom implementations, with the custom one coming first, so it would get clobbered by the default version.
2015-11-03 15:26:12 -05:00
source "${0:h}/z.sh"
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 1119ms Template: 5ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API