Skip to content

Commit

Permalink
ZSH argcomplete: call compinit only if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbogusz committed Jan 17, 2023
1 parent e840a81 commit 0570940
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rosidl_cli/completion/rosidl-argcomplete.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

autoload -U +X compinit && compinit
if (( ! ${+_comps} )); then
autoload -U +X compinit && compinit
fi
autoload -U +X bashcompinit && bashcompinit

# Get this scripts directory
Expand Down

0 comments on commit 0570940

Please sign in to comment.