Blame bash-completion-1.0-yeswehave.patch
|
Ville Skyttä |
81689c |
diff -up bash-completion-1.0/bash_completion~ bash-completion-1.0/bash_completion
|
|
Ville Skyttä |
81689c |
--- bash-completion-1.0/bash_completion~ 2009-04-02 23:01:39.000000000 +0300
|
|
Ville Skyttä |
81689c |
+++ bash-completion-1.0/bash_completion 2011-04-15 23:12:46.497273696 +0300
|
|
Ville Skyttä |
81689c |
@@ -182,7 +182,11 @@ complete -b builtin
|
|
Ville Skyttä |
81689c |
have()
|
|
Ville Skyttä |
81689c |
{
|
|
Ville Skyttä |
81689c |
unset -v have
|
|
Ville Skyttä |
81689c |
- PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin type $1 &>/dev/null &&
|
|
Ville Skyttä |
81689c |
+ # In this packaged setup we don't need to do the availability test
|
|
Ville Skyttä |
81689c |
+ # below because only completions for commands that are actually
|
|
Ville Skyttä |
81689c |
+ # available should be in /etc/bash_completion.d anyway; not doing the
|
|
Ville Skyttä |
81689c |
+ # test improves our load time significantly.
|
|
Ville Skyttä |
81689c |
+ #PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin type $1 &>/dev/null &&
|
|
Ville Skyttä |
81689c |
have="yes"
|
|
Ville Skyttä |
81689c |
}
|
|
Ville Skyttä |
81689c |
|