From 52e5039a09e517b4300d318a4bb56896ffad61ad Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Tue, 18 Jan 2022 07:56:57 +0200 Subject: [PATCH] Add git-subrepo to git completion --- .zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.zshrc b/.zshrc index f2a6cf9..793a797 100644 --- a/.zshrc +++ b/.zshrc @@ -60,6 +60,11 @@ function chpwd_leave_profile_krakul() { } chpwd_profiles + +# for some reason zsh does not pick up git-subrepo custom command +# I have to add it manually to git completion +zstyle ':completion:*:*:git:*' user-commands subrepo:'perform git-subrepo operations' + # First clear grml-zsh-config provided directory hashes hash -d -r # shorten dir name in prompt