Skip to content

Commit 0570940

Browse files
committed
ZSH argcomplete: call compinit only if needed
1 parent e840a81 commit 0570940

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rosidl_cli/completion/rosidl-argcomplete.zsh

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
autoload -U +X compinit && compinit
15+
if (( ! ${+_comps} )); then
16+
autoload -U +X compinit && compinit
17+
fi
1618
autoload -U +X bashcompinit && bashcompinit
1719

1820
# Get this scripts directory

0 commit comments

Comments
 (0)