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:
@@ -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)"
|
||||
|
||||
@@ -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)"
|
||||
|
||||
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user