mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 15:37:24 +00:00
f2b5292bcb
commit 33358874f1c275d8b08186e29f24a7889d2b5224 Author: maxfl <gmaxfl@gmail.com> Date: Thu Jun 14 11:01:13 2012 +0400 revert fish_pager commit cee1bc8a66ec3adc9573b76e1aca3131cd32db83 Author: maxfl <gmaxfl@gmail.com> Date: Thu Jun 14 10:57:41 2012 +0400 revert fish_pager.cpp commit 27f3bd39dd9903009503d20a59a9e2ba84add07a Author: maxfl <gmaxfl@gmail.com> Date: Wed Jun 13 17:35:20 2012 +0400 __fish_complete_command now can understand '--arg=option' tokens latexmk completion is updated commit 97b53a4b53de9389675783f3e90f58215d936356 Author: maxfl <gmaxfl@gmail.com> Date: Wed Jun 13 16:46:47 2012 +0400 . completion commit d5b63b9963b0a02a71f564e7392171c5eab005cd Author: maxfl <gmaxfl@gmail.com> Date: Wed Jun 13 16:46:13 2012 +0400 a lot of new completions commit ceab87d99425124aa010c64ed062e27202b850d2 Author: Maxim Gonchar <gonchar@myhost.localdomain> Date: Tue Jun 12 20:19:31 2012 +0400 A lot of new completions. Some small updates and fixes of old functions and completions. commit 950aecd570b51e1b9dc444cc651b282a220e8d94 Author: Maxim Gonchar <gonchar@myhost.localdomain> Date: Tue Jun 12 20:03:44 2012 +0400 step-coloring initial set_color correction
37 lines
2.5 KiB
Fish
37 lines
2.5 KiB
Fish
function __fish_complete_atool --description 'Complete atool' --argument-names cmd
|
|
complete -c $cmd -r -d 'Manage file archives of various types'
|
|
|
|
##Commands:
|
|
complete -c $cmd -s l -l list -d 'list files in archive (als)'
|
|
complete -c $cmd -s x -l extract -d 'extract files from archive (aunpack)'
|
|
complete -c $cmd -s X -l extract-to -r -d 'extract archive to specified directory'
|
|
complete -c $cmd -s a -l add -d 'create archive (apack)'
|
|
complete -c $cmd -s c -l cat -d 'extract file to standard out (acat)'
|
|
complete -c $cmd -s d -l diff -d 'generate a diff between two archives (adiff)'
|
|
complete -c $cmd -s r -l repack -d 'repack archives to a different format (arepack)'
|
|
complete -c $cmd -l help -d 'display this help and exit'
|
|
complete -c $cmd -l version -d 'output version information and exit'
|
|
|
|
##Options:
|
|
complete -c $cmd -s e -l each -d 'execute command above for each file specified'
|
|
complete -c $cmd -s F -l format -d 'override archive format (see below)' -xa "(man atool | sgrep -E '^\s+(\S+)\s+\(\..+\)' | sed -r 's/\s+(\S+)\s+\((.+)\)/\1\t\2/')"
|
|
complete -c $cmd -s O -l format-option -x -d 'give specific options to the archiver'
|
|
complete -c $cmd -s D -l subdir -d 'always create subdirectory when extracting'
|
|
complete -c $cmd -s f -l force -d 'allow overwriting of local files'
|
|
complete -c $cmd -s q -l quiet -d 'decrease verbosity level by one'
|
|
complete -c $cmd -s v -l verbose -d 'increase verbosity level by one'
|
|
complete -c $cmd -s V -l verbosity -d 'specify verbosity (0, 1 or 2)' -xa '(seq 0 2)'
|
|
complete -c $cmd -s p -l page -d 'send output through pager'
|
|
complete -c $cmd -s 0 -l null -d 'filenames from standard in are null-byte separated'
|
|
complete -c $cmd -s E -l explain -d 'explain what is being done by atool'
|
|
complete -c $cmd -s S -l simulate -d 'simulation mode - no filesystem changes are made'
|
|
complete -c $cmd -s o -l option -x -d 'override a configuration optioni (KEY=VALUE)'
|
|
complete -c $cmd -l config -r -d 'load configuration defaults from file'
|
|
|
|
switch $cmd
|
|
case als aunpack acat
|
|
complete -c $cmd -a '(__fish_complete_atool_archive_contents)' -d 'Achive content'
|
|
end
|
|
#man -P cat atool | grep '(default')'
|
|
|
|
end
|