Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
f776af2a
Commit
f776af2a
authored
Sep 30, 2020
by
Marc Cornellà
Browse files
Remove redundant bashcompinit calls
Fixes #9246
parent
a8828aad
Changes
5
Show whitespace changes
Inline
Side-by-side
plugins/aws/aws.plugin.zsh
View file @
f776af2a
...
...
@@ -64,7 +64,6 @@ fi
# AWS CLI v2 comes with its own autocompletion. Check if that is there, otherwise fall back
if
command
-v
aws_completer &> /dev/null
;
then
autoload
-Uz
bashcompinit
&&
bashcompinit
complete
-C
aws_completer aws
else
function
_awscli-homebrew-installed
()
{
...
...
plugins/compleat/compleat.plugin.zsh
View file @
f776af2a
...
...
@@ -10,11 +10,8 @@ if (( ${+commands[compleat]} )); then
local
setup
=
"
${
prefix
}
/share/compleat-1.0/compleat_setup"
if
[[
-f
"
$setup
"
]]
;
then
if
!
bashcompinit
>
/dev/null 2>&1
;
then
autoload
-U
bashcompinit
bashcompinit
-i
fi
source
"
$setup
"
fi
unset
prefix setup
fi
plugins/drush/drush.plugin.zsh
View file @
f776af2a
...
...
@@ -99,6 +99,4 @@ alias drvg="drush variable-get"
alias
drvs
=
"drush variable-set"
# Enable drush autocomplete support
autoload bashcompinit
bashcompinit
source
$(
dirname
$0
)
/drush.complete.sh
plugins/stack/stack.plugin.zsh
View file @
f776af2a
((
$+
commands[stack]
))
||
return
autoload
-U
+X bashcompinit
&&
bashcompinit
source
<
(
stack
--bash-completion-script
stack
)
plugins/wp-cli/wp-cli.plugin.zsh
View file @
f776af2a
...
...
@@ -138,7 +138,6 @@ alias wpwm='wp widget move'
alias
wpwu
=
'wp widget update'
autoload
-U
+X bashcompinit
&&
bashcompinit
# bash completion for the `wp` command
_wp_complete
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment