1
0
mirror of https://github.com/zplug/zplug synced 2025-04-05 15:19:13 +02:00
zplug/base/core/commands.zsh
2016-08-07 17:34:29 +09:00

24 lines
401 B
Bash

__zplug::core::commands::get()
{
__zplug::core::core::get_interfaces \
"commands" \
"$argv[@]"
}
__zplug::core::commands::user_defined()
{
local -a user_cmds
# reset
reply=()
user_cmds=( ${^path[@]}/zplug-*(N-.:t:gs:zplug-:) )
if (( $#user_cmds > 0 )); then
# Be unique
reply+=( "${(u)user_cmds[@]}" )
return 0
fi
return 1
}