1
0
mirror of https://github.com/openSUSE/osc.git synced 2026-01-31 01:49:00 +01:00

Fix loading shell completions for 'git-obs'

Don't load the completions when /usr/bin/register-python-argcomplete is not available
This commit is contained in:
2025-06-05 13:43:59 +02:00
parent 89014e8026
commit 1b24e1f654
3 changed files with 9 additions and 0 deletions

View File

@@ -1 +1,4 @@
# exit immediately if argcomplete is not available
[ -e '/usr/bin/register-python-argcomplete' ] || exit 0
eval "$(register-python-argcomplete --shell bash git-obs)"

View File

@@ -1 +1,4 @@
# exit immediately if argcomplete is not available
[ -e '/usr/bin/register-python-argcomplete' ] || exit 0
eval "$(register-python-argcomplete --shell fish git-obs)"

View File

@@ -1 +1,4 @@
# exit immediately if argcomplete is not available
[ -e '/usr/bin/register-python-argcomplete' ] || exit 0
eval "$(register-python-argcomplete --shell zsh git-obs)"