mirror of https://github.com/kazhala/dotbare
Create zsh plugin
parent
6f820d3e88
commit
4c7897ee38
@ -0,0 +1,7 @@
|
||||
# Standardized $0 handling
|
||||
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
|
||||
local _path="${0:h}"
|
||||
|
||||
if [[ -z "${path[(r)$_path]}" ]]; then
|
||||
path+=( "$_path" )
|
||||
fi
|
Loading…
Reference in New Issue