mirror of https://github.com/kazhala/dotbare
Merge pull request #4 from NICHOLAS85/zsh-plugin
Create simple zsh plugin which can be loaded by most major plugin managerspull/5/head
commit
21dad0be4a
@ -0,0 +1,7 @@
|
||||
# Standardized $0 handling
|
||||
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
|
||||
local _path="${0:h}"
|
||||
|
||||
if [[ -z "${path[(r)$_path]}" ]]; then
|
||||
path+=( "$_path" )
|
||||
fi
|
Loading…
Reference in New Issue