mirror of
https://github.com/kazhala/dotbare
synced 2024-11-04 06:00:45 +00:00
8 lines
161 B
Bash
8 lines
161 B
Bash
# Standardized $0 handling
|
|
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
|
|
local _path="${0:h}"
|
|
|
|
if [[ -z "${path[(r)$_path]}" ]]; then
|
|
path+=( "$_path" )
|
|
fi
|