mirror of https://github.com/kazhala/dotbare
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
161 B
Bash
8 lines
161 B
Bash
4 years ago
|
# Standardized $0 handling
|
||
|
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
|
||
|
local _path="${0:h}"
|
||
|
|
||
|
if [[ -z "${path[(r)$_path]}" ]]; then
|
||
|
path+=( "$_path" )
|
||
|
fi
|