23 Commits

Author SHA1 Message Date
Ville Skyttä
e8daf2d279 tar: Recognize taz and tb2 as compressed tarballs.
http://en.wikipedia.org/wiki/Tar_(computing)#Naming_of_compressed_tar_files
2013-01-12 18:13:00 +02:00
Ville Skyttä
9c80d8b521 tar: Simplify bzip patterns. 2013-01-12 18:07:52 +02:00
Ville Skyttä
f321357991 tar: Don't take -I to mean bzip2.
It hasn't meant bzip2 since GNU tar 1.13.18 (2000) and means something
different since 1.22 (2009).
2012-09-24 23:09:34 +03:00
Igor Murzov
3622f2f9e5 tar: Fix detection if the $prev is a tar file.
It also makes the completion work better with long options (Debian: #685223)
2012-09-06 17:58:35 +04:00
Ville Skyttä
3b8ef29ef3 Cleanups: Use [[ instead of [. 2011-11-09 23:28:11 +02:00
Ville Skyttä
0d10b94e7a Move Emacs indentation settings from every file to .dir-locals.el. 2011-11-01 22:14:45 +02:00
Ville Skyttä
20c05b43b6 Load completions in separate files dynamically, get rid of have(). 2011-10-12 00:19:50 +03:00
Ville Skyttä
a54857cd05 _init_completion: Add -s for splitting long options, use it in completions. 2011-05-02 00:04:26 +03:00
Ville Skyttä
6e809d032c Remove = from COMP_WORDBREAKS when using _split_longopt().
Without this, it does not do anything useful in bash >= 4.0.
2011-04-25 00:09:50 +03:00
Ville Skyttä
9f45e81e65 Drop no longer needed _compopt_o_filenames().
Use compopt -o filenames directly instead.
2011-04-21 12:33:05 +03:00
Ville Skyttä
8048917968 Use _init_completion() in completions/[q-z]*. 2011-04-21 11:15:01 +03:00
Ville Skyttä
9af6f3504e Abort completion file loading earlier if required commands are not available.
Cuts ~10% from bash completion load time on two different systems I
just tested.
2011-04-05 00:37:55 +03:00
Ville Skyttä
f973eb043c More tar *[cr]*f completion improvements. 2011-03-20 18:43:12 +02:00
Ville Skyttä
0ae464e580 Improve tar *[cr]*f completions (Debian: #618734). 2011-03-20 18:22:21 +02:00
Ville Skyttä
4f4c7f2d1f Add bunch of tar option completions. 2011-03-20 18:05:54 +02:00
Ville Skyttä
87227ceccd Don't lose J if present in original tar command when finding out how to untar. 2011-03-20 17:21:02 +02:00
Ville Skyttä
91c13f0eed Fix completion of files inside *.tar.bz2 archives when [Ijy] is not given. 2011-03-20 17:12:52 +02:00
Ville Skyttä
70d5ff09e0 Add *.spkg (Sage Package) to tar filename completions. 2010-12-11 12:56:52 +02:00
Ville Skyttä
0f450219b6 Remove most "-o filenames" options to "complete".
Turn it on dynamically when needed instead; see doc/styleguide.txt for
a longer explanation.  This fixes many non-filename completions which
had been previously more or less broken due to unwanted
escape-as-filenames behavior.
2010-11-01 19:29:45 +02:00
Ville Skyttä
494c44f5a3 Protect filenames with spaces within tar files. 2010-11-01 19:29:45 +02:00
Ville Skyttä
0073c92980 Add *.gem to tar completions. 2010-10-24 23:40:55 +03:00
Ville Skyttä
b822b7cceb Indentation fix. 2010-09-19 13:15:07 +03:00
Guillaume Rousse
cb7fc2f7c4 rename 'contrib' directory to 'completions' 2010-09-12 16:42:21 +02:00