mirror of
https://github.com/kazhala/dotbare
synced 2024-11-16 00:12:47 +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
|