Closed pbzweihander closed 6 years ago
Very nice!
@pbzweihander Is this patch really work? Looks like it is (( $+commands[shrink_path] ))
instead of (( $+functions[shrink_path] ))
.
Oh I see since shrink_path
is a function defined by oh-my-zsh, so you used $+functions
instead of $+commands
right?
Yes, I already tested it and it works perfectly!
According to this article,
$+functions[foo]
is much faster thantype foo > /dev/null
in zsh.