2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-10 01:10:25 +00:00
dotbare/dotbare.plugin.zsh

8 lines
161 B
Bash
Raw Normal View History

2020-05-22 03:05:20 +00:00
# Standardized $0 handling
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
local _path="${0:h}"
if [[ -z "${path[(r)$_path]}" ]]; then
path+=( "$_path" )
fi