about summary refs log tree commit diff
path: root/Completion/User
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/User')
-rw-r--r--Completion/User/.distfiles2
-rw-r--r--Completion/User/_ps2
-rw-r--r--Completion/User/_tar1
-rw-r--r--Completion/User/_use_lo10
4 files changed, 13 insertions, 2 deletions
diff --git a/Completion/User/.distfiles b/Completion/User/.distfiles
index 07fddc134..c96f2ba3e 100644
--- a/Completion/User/.distfiles
+++ b/Completion/User/.distfiles
@@ -1,6 +1,6 @@
 DISTFILES_SRC='
     .distfiles
     _a2ps _chown _compress _configure _dd _dvi _find _groups _gunzip _gzip
-    _hosts _make _man _mh _pdf _ps _rcs _rlogin _strip _stty
+    _hosts _use_lo _make _man _mh _pdf _ps _rcs _rlogin _strip _stty
     _tar _tar_archive _tex _uncompress _x_options _xfig 
 '
diff --git a/Completion/User/_ps b/Completion/User/_ps
index 6c0d91a23..39e357b69 100644
--- a/Completion/User/_ps
+++ b/Completion/User/_ps
@@ -1,3 +1,3 @@
-#compdef  gs ghostview gview psnup psselect pswrap pstops pstruct lpr
+#compdef  gs ghostview gv gview psnup psselect pswrap pstops pstruct lpr lp
 
 _files -g '*([pP][sS]|eps)'
diff --git a/Completion/User/_tar b/Completion/User/_tar
index f443fefb7..5fcce5c67 100644
--- a/Completion/User/_tar
+++ b/Completion/User/_tar
@@ -75,6 +75,7 @@ if [[ "$PREFIX" = --* ]]; then
   _long_options '--owner*'          "_tilde" \
                 '*=(PROG|COMMAND)*' "_command_names" \
 		'*=ARCHIVE*'        "_tar_archive" \
+		'*=NAME*'           "_files" \
 		'*=CONTROL*'        "[t numbered nil existing never simple]"
 
 elif [[ ( CURRENT -gt 2 && "$words[CURRENT-1]" = -*f* &&
diff --git a/Completion/User/_use_lo b/Completion/User/_use_lo
new file mode 100644
index 000000000..e469154ea
--- /dev/null
+++ b/Completion/User/_use_lo
@@ -0,0 +1,10 @@
+#compdef gls gdiff
+
+# This is for GNU-like commands which understand the --help option,
+# but which do not otherwise require special completion handling.
+
+if [[ $PREFIX = --* ]]; then
+  _long_options
+else
+  _default
+fi