Skip to content

Commit 2628102

Browse files
committed
ZSH argcomplete: call compinit only if needed
Signed-off-by: Maciej Bogusz <[email protected]>
1 parent e840a81 commit 2628102

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rosidl_cli/completion/rosidl-argcomplete.zsh

Lines changed: 3 additions & 1 deletion
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)