[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-380-g9e4605b
Ville Skyttä
ville.skytta at iki.fi
Sat Jun 18 12:53:59 UTC 2011
The following commit has been merged in the master branch:
commit 2a5cb99b940193c9f792a79c5e8226501613b63c
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sat Jun 18 15:06:51 2011 +0300
lpr, lpq: Install completions even if earlier commands in cups are not installed.
diff --git a/completions/cups b/completions/cups
index 499a2b0..b37e400 100644
--- a/completions/cups
+++ b/completions/cups
@@ -1,7 +1,6 @@
# bash completion for cups
-have cancel || return
-
+have cancel &&
_cancel()
{
local cur prev words cword
@@ -11,8 +10,7 @@ _cancel()
} &&
complete -F _cancel cancel
-have lpr || return
-
+have lpr &&
_lpr()
{
local cur prev words cword
@@ -43,8 +41,7 @@ _lpr()
} &&
complete -F _lpr lpr
-have lpq || return
-
+have lpq &&
_lpq()
{
local cur prev words cword
--
bash-completion
More information about the Bash-completion-commits
mailing list