"Fossies" - the Fresh Open Source Software Archive

Member "atool-0.39.0/extra/bash-completion-atool_0.1-1" (10 Dec 2007, 688 Bytes) of package /linux/privat/old/atool-0.39.0.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # atool(1) completion by Roman G <chesercat@gmail.com>
    2 
    3 _atool() 
    4 {
    5 	local cur
    6 
    7 	COMPREPLY=()
    8 	cur=${COMP_WORDS[COMP_CWORD]}
    9 
   10 	case "$cur" in
   11 	    -*)
   12 		COMPREPLY=( $( compgen -W '-l -x -X -a -c- -d -r \
   13 		-e -F -D -f -q -v -p -o -E -S --list --extract --extract-to= \
   14                 --add --cat --diff --repack --each --format= --subdir --force \
   15                 --quiet --verbose --page --null --explain --simulate --config=' -- $cur ) )
   16 		;;
   17 	    *)
   18 		_filedir '@(rar|RAR|zip|ZIP|tar.gz|tgz|tar.bz|tbz|tar.Z|tZ|tar.lzo|tzo|tar.7z|t7z|tar|jar|JAR|war|lha|lzh|7z|ace|ACE|arj|ARJ|a|arc|ARC|rpm|deb|gz|bz|bz2|Z|lzo|cpio)'
   19 		;;
   20 	esac
   21   
   22 	return 0
   23 
   24 }
   25 complete -F _atool -o filenames atool
   26