summary refs log tree commit diff
path: root/Completion/User/_printers
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2000-07-06 12:40:00 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2000-07-06 12:40:00 +0000
commit1c28d8c21fe9624b1b9b2fc8293b3c462fa61ecf (patch)
tree9a0149ecdd86bcf6bd868f772fad35992b5aefad /Completion/User/_printers
parentb0337944b4b85be85c8835a07112e02bcec5e675 (diff)
downloadzsh-1c28d8c21fe9624b1b9b2fc8293b3c462fa61ecf.tar.gz
zsh-1c28d8c21fe9624b1b9b2fc8293b3c462fa61ecf.tar.xz
zsh-1c28d8c21fe9624b1b9b2fc8293b3c462fa61ecf.zip
updates and additions to completions for AIX commands
Diffstat (limited to 'Completion/User/_printers')
-rw-r--r--Completion/User/_printers8
1 files changed, 7 insertions, 1 deletions
diff --git a/Completion/User/_printers b/Completion/User/_printers
index a84a5e559..d98fa433a 100644
--- a/Completion/User/_printers
+++ b/Completion/User/_printers
@@ -2,10 +2,16 @@
 
 local expl ret=1 list disp
 
+if (( $+commands[lsallq] )); then
+  # Use AIX's command to list print queues
+  _wanted printers expl printer compadd $(lsallq)
+  return
+fi
+
 if (( ! $+_lp_cache )); then
   local file entry names i
 
-   file=( /etc/(printcap|printers.conf)(N) )
+  file=( /etc/(printcap|printers.conf)(N) )
 
   _lp_cache=()
   _lp_alias_cache=()