Skip to content

Commit

Permalink
Use -Uz when loading zsh function
Browse files Browse the repository at this point in the history
  • Loading branch information
evanunderscore committed Dec 8, 2023
1 parent f4b91dd commit 6095cde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion argcomplete/bash_completion.d/_python-argcomplete
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ _python_argcomplete_global() {
if [[ -z "${ZSH_VERSION-}" ]]; then
complete -o default -o bashdefault -D -F _python_argcomplete_global
else
autoload is-at-least
# -Uz is recommended for the use of functions supplied with the zsh distribution.
# https://unix.stackexchange.com/a/214306
autoload -Uz is-at-least
# The comment at the top of this file causes zsh to invoke this script directly,
# so we must explicitly call the global completion function.
_python_argcomplete_global
Expand Down

0 comments on commit 6095cde

Please sign in to comment.