Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid multiple calling compinit even if it could be in the first call. #87

Open
wants to merge 2 commits into
base: rolling
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions ament_index_python/completion/ament_index-argcomplete.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

autoload -U +X compinit && compinit
autoload -U +X bashcompinit && bashcompinit
if ! type compdef > /dev/null 2>&1; then
autoload -U +X compinit && compinit
fi

if ! type complete > /dev/null 2>&1; then
autoload -U +X bashcompinit && bashcompinit
fi

# Get this scripts directory
__ament_index_completion_dir=${0:a:h}
Expand Down