mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-06 09:41:07 +01:00
zsh-workers/7891
This commit is contained in:
parent
2f9472e08b
commit
986956a7ca
1 changed files with 10 additions and 0 deletions
|
|
@ -152,6 +152,11 @@ compdef() {
|
|||
|
||||
# Get the options.
|
||||
|
||||
if [[ $#* -eq 0 ]]; then
|
||||
echo "compdef needs parameters"
|
||||
return 1
|
||||
fi
|
||||
|
||||
while getopts "anpPkd" opt; do
|
||||
case "$opt" in
|
||||
a) autol=yes;;
|
||||
|
|
@ -175,6 +180,11 @@ compdef() {
|
|||
done
|
||||
shift OPTIND-1
|
||||
|
||||
if [[ $#* -eq 0 ]]; then
|
||||
echo "compdef needs parameters"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [[ -z "$delete" ]]; then
|
||||
# Adding definitions, first get the name of the function name
|
||||
# and probably do autoloading.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue