2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-19 15:25:46 +00:00
dotbare/dotbare.plugin.zsh
2020-05-21 23:05:20 -04:00

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