mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 11:22:52 +08:00
Add completions for cdrecord, patch and xargs
darcs-hash:20060306232645-ac50b-89f38afaa1ae3106c18fc55acc75fc0dd702bd9a.gz
This commit is contained in:
parent
60065614bd
commit
d722fa59ca
92
share/completions/cdrecord.fish
Normal file
92
share/completions/cdrecord.fish
Normal file
|
@ -0,0 +1,92 @@
|
|||
#
|
||||
# Completions for Cdrecord
|
||||
#
|
||||
|
||||
complete -c cdrecord -o version -d (N_ "Display version and exit")
|
||||
complete -c cdrecord -s v -d (N_ "Increment the level of general verbosity by one")
|
||||
complete -c cdrecord -s V -d (N_ "Increment the verbose level in respect of SCSI command transport by one")
|
||||
complete -c cdrecord -a "debug={1,2,3,4,5}" -d (N_ "Set the misc debug value to #")
|
||||
complete -c cdrecord -s d -d (N_ "Increment the misc debug level by one") -a "1 2 3 4 5"
|
||||
complete -c cdrecord -s s -o silent -d (N_ "Do not print out a status report for failed SCSI commands")
|
||||
complete -c cdrecord -o force -d (N_ "Force to continue on some errors")
|
||||
complete -c cdrecord -o immed -d (N_ "Tell cdrecord to set the SCSI IMMED flag in certain commands")
|
||||
complete -c cdrecord -a "minbuf={25,35,45,55,65,75,85,95}" -d (N_ "Defines the minimum drive buffer fill ratio for the experimental ATAPI wait mode intended to free the IDE bus to allow hard disk and CD/DVD writer on the same IDE cable")
|
||||
complete -c cdrecord -o dummy -d (N_ "Complete CD/DVD-Recorder recording process with the laser turned off")
|
||||
complete -c cdrecord -o clone -d (N_ "Tells cdrecord to handle images created by readcd -clone")
|
||||
complete -c cdrecord -o dao
|
||||
complete -c cdrecord -o sao -d (N_ "Set SAO (Session At Once) mode, usually called Disk At Once mode")
|
||||
complete -c cdrecord -o tao -d (N_ "Set TAO (Track At Once) writing mode")
|
||||
complete -c cdrecord -o raw -d (N_ "Set RAW writing mode")
|
||||
complete -c cdrecord -o raw96r -d (N_ "Select Set RAW writing, the preferred raw writing mode")
|
||||
complete -c cdrecord -o raw96p -d (N_ "Select Set RAW writing, the less preferred raw writing mode")
|
||||
complete -c cdrecord -o raw16 -d (N_ "Select Set RAW writing, the preferred raw writing mode if raw96r is not supported")
|
||||
complete -c cdrecord -o multi -d (N_ "Allow multi session CDs to be made")
|
||||
complete -c cdrecord -o msinfo -d (N_ "Retrieve multi session info in a form suitable for mkisofs-1.10 or later")
|
||||
complete -c cdrecord -o toc -d (N_ "Retrieve and print out the table of content or PMA of a CD")
|
||||
complete -c cdrecord -o atip -d (N_ "Retrieve and print out the ATIP (absolute Time in Pre-groove) info")
|
||||
complete -c cdrecord -o fix -d (N_ "The disk will only be fixated")
|
||||
complete -c cdrecord -o nofix -d (N_ "Do not fixate the disk after writing the tracks")
|
||||
complete -c cdrecord -o waiti -d (N_ "Wait for input to become available on standard input before trying to open the SCSI driver")
|
||||
complete -c cdrecord -o load -d (N_ "Load the media and exit")
|
||||
complete -c cdrecord -o lock -d (N_ "Load the media, lock the door and exit")
|
||||
complete -c cdrecord -o eject -d (N_ "Eject disk after doing the work")
|
||||
complete -c cdrecord -a "speed={0,150,172,1385}" -d (N_ "Set the speed factor of the writing process to #")
|
||||
complete -c cdrecord -a "blank={help,all,fast,track,unreserve,trtail,unclose,session}" -d (N_ "Blank a CD-RW and exit or blank a CD-RW before writing")
|
||||
complete -c cdrecord -o format -d (N_ "Format a CD-RW/DVD-RW/DVD+RW disc")
|
||||
complete -c cdrecord -a "fs=" -d (N_ "Set the FIFO (ring buffer) size to #")
|
||||
complete -c cdrecord -a "ts=" -d (N_ "Set the maximum transfer size for a single SCSI command to #")
|
||||
complete -c cdrecord -a "dev=" -d (N_ "Sets the SCSI target for the CD/DVD-Recorder")
|
||||
complete -c cdrecord -a "gracetime=" -d (N_ "Set the grace time before starting to write to ># seconds")
|
||||
complete -c cdrecord -a "timeout=" -d (N_ "Set the default SCSI command timeout value to # seconds")
|
||||
complete -c cdrecord -a "driver={help,mmc_cd,mmc_cd_dvd,mmc_cdr,mmc_cdr_sony,mmc_dvd,mmc_dvdplus,mmc_dvdplusr,mmc_dvdplusrw,cw_7501,kodak_pcd_600,philips_cdd521,philips_cdd521_old,philips_cdd522,philips_dumb,pioneer_dws114x,plasmon_rf4100,ricoh_ro1060c,ricoh_ro1420c,scsi2_cd,sony_cdu924,teac_cdr50,tyuden_ew50,yamaha_cdr100,cdr_simul,dvd_simul}" -d (N_ "Allows the user to manually select a driver for the device")
|
||||
|
||||
# TODO: This argument accepts a comma separated list of arguments
|
||||
|
||||
complete -c cdrecord -a "driveropts=" -d (N_ "Set driver specific options")
|
||||
complete -c cdrecord -o setdropts -d (N_ "Set the driveropts specified by driveropts=option list, the speed of the drive and the dummy flag and exit")
|
||||
complete -c cdrecord -o checkdrive -d (N_ "Checks if a driver for the current drive is present and exit")
|
||||
complete -c cdrecord -o prcap -d (N_ "Print the drive capabilities for SCSI-3/mmc compliant drives as obtained from mode page 0x2A")
|
||||
complete -c cdrecord -o inq -d (N_ "Do an inquiry for the drive, print the inquiry info and exit")
|
||||
complete -c cdrecord -o scanbus -d (N_ "Scan all SCSI devices on all SCSI busses and print the inquiry strings")
|
||||
complete -c cdrecord -o reset -d (N_ "Try to reset the SCSI bus where the CD recorder is located")
|
||||
complete -c cdrecord -o abort -d (N_ "Try to send an abort sequence to the drive")
|
||||
complete -c cdrecord -o overburn -d (N_ "Allow cdrecord to write more than the official size of a medium")
|
||||
complete -c cdrecord -o ignsize -d (N_ "Ignore the known size of the medium, use for debugging only")
|
||||
complete -c cdrecord -o useinfo -d (N_ "Use *.inf files to overwrite audio options")
|
||||
complete -c cdrecord -a "defpregap=" -d (N_ "Set the default pre-gap size for all tracks except track nr 1")
|
||||
complete -c cdrecord -o packet -d (N_ "Set Packet writing mode (experimental interface)")
|
||||
complete -c cdrecord -a "pktsize=" -d (N_ "Set the packet size to #, forces fixed packet mode (experimental)")
|
||||
complete -c cdrecord -o noclose -d (N_ "Do not close the current track, only when in packet writing mode (experimental)")
|
||||
complete -c cdrecord -a "mcn=" -d (N_ "Set the Media Catalog Number of the CD")
|
||||
complete -c cdrecord -o text -d (N_ "Write CD-Text info based on info taken from a file that contains ascii info for the text strings")
|
||||
complete -c cdrecord -a "textfile=" -d (N_ "Write CD-Text based on info found in the binary file filename")
|
||||
complete -c cdrecord -a "cuefile=" -d (N_ "Take all recording related info from a CDRWIN compliant CUE sheet file")
|
||||
|
||||
# These completions are TRACK OPTIONS
|
||||
|
||||
complete -c cdrecord -a "isrc=" -d (N_ "Set the International Standard Recording Number for the next track")
|
||||
complete -c cdrecord -a "index=" -d (N_ "Sets an index list for the next track")
|
||||
complete -c cdrecord -o audio -d (N_ "All subsequent tracks are written in CD-DA audio format")
|
||||
complete -c cdrecord -o swab -d (N_ "Audio data is assumed to be in byte-swapped (little-endian) order")
|
||||
complete -c cdrecord -o data -d (N_ "All subsequent tracks are written in CD-ROM mode 1 (Yellow Book) format")
|
||||
complete -c cdrecord -o mode2 -d (N_ "All subsequent tracks are written in CD-ROM mode 2 format")
|
||||
complete -c cdrecord -o xa -d (N_ "All subsequent tracks are written in CD-ROM XA mode 2 form 1 format")
|
||||
complete -c cdrecord -o xa1 -d (N_ "All subsequent tracks are written in CD-ROM XA mode 2 form 1 format")
|
||||
complete -c cdrecord -o xa2 -d (N_ "All subsequent tracks are written in CD-ROM XA mode 2 form 2 format")
|
||||
complete -c cdrecord -o xamix -d (N_ "All subsequent tracks are written in a way that allows a mix of CD-ROM XA mode 2 form 1/2 format")
|
||||
complete -c cdrecord -o cdi -d (N_ "The TOC type for the disk is set to CDI, with XA only")
|
||||
complete -c cdrecord -o isosize -d (N_ "Use the ISO-9660 file system size as the size of the next track")
|
||||
complete -c cdrecord -o pad -d (N_ "15 sectors of zeroed data will be added to the end of this and each subsequent data track")
|
||||
complete -c cdrecord -a "padsize=" -d (N_ "Set the amount of data to be appended as padding to the next track")
|
||||
complete -c cdrecord -o nopad -d (N_ "Do not pad the following tracks - the default")
|
||||
complete -c cdrecord -o shorttrack -d (N_ "Allow all subsequent tracks to violate the Red Book track length standard (min 4 s)")
|
||||
complete -c cdrecord -o noshorttrack -d (N_ "Re-enforce the Red Book track length standard (min 4 s)")
|
||||
complete -c cdrecord -a "pregap=" -d (N_ "Set the pre-gap size for the next track")
|
||||
complete -c cdrecord -o preemp -d (N_ "All TOC entries for subsequent audio tracks will indicate that the audio data has been sampled with 50/15 microsec pre-emphasis")
|
||||
complete -c cdrecord -o nopreemp -d (N_ "All TOC entries for subsequent audio tracks will indicate that the audio data has been mastered with linear data")
|
||||
complete -c cdrecord -o copy -d (N_ "All TOC entries for subsequent audio tracks of the resulting CD will indicate that the audio data has permission to be copied without limit")
|
||||
complete -c cdrecord -o nocopy -d (N_ "All TOC entries for subsequent audio tracks of the resulting CD will indicate that the audio data has permission to be copied only once for personal use")
|
||||
complete -c cdrecord -o scms -d (N_ "All TOC entries for subsequent audio tracks of the resulting CD will indicate that the audio data has no permission to be copied")
|
||||
complete -c cdrecord -a "tsize=" -d (N_ "If the master image for the next track has been stored on a raw disk, use this option to specify the valid amount of data on this disk")
|
||||
|
||||
|
41
share/completions/patch.fish
Normal file
41
share/completions/patch.fish
Normal file
|
@ -0,0 +1,41 @@
|
|||
#
|
||||
#Completions for patch
|
||||
#
|
||||
|
||||
complete -c patch -s b -l backup -d (N_ "Make backup files, when patching a file, rename or copy the original instead of removing it")
|
||||
complete -c patch -l backup-if-mismatch -d (N_ "Back up a file if the patch does not match the file exactly")
|
||||
complete -c patch -l no-backup-if-mismatch -d (N_ "Do not back up a file if the patch does not match the file exactly")
|
||||
complete -c patch -s B -l prefix -r -f -d (N_ "Prefix pref to a file name when generating its simple backup file name")
|
||||
complete -c patch -l binary -d (N_ "Read and write all files in binary mode")
|
||||
complete -c patch -s c -l context -d (N_ "Interpret the patch file as a ordinary context diff")
|
||||
complete -c patch -s d -l directory -r -f -d (N_ "Change to the directory dir immediately")
|
||||
complete -c patch -s D -l ifdef -r -f -d (N_ "Use the #ifdef ... #endif construct to mark changes")
|
||||
complete -c patch -l dry-run -d (N_ "Print the results of applying the patches without actually changing any files")
|
||||
complete -c patch -s e -l ed -d (N_ "Interpret the patch file as an ed script")
|
||||
complete -c patch -s E -l remove-empty-files -d (N_ "Remove output files that are empty after the patches have been applied")
|
||||
complete -c patch -s f -l force -d (N_ "Assume that the user knows exactly what he/she is doing, and do not ask questions")
|
||||
complete -c patch -s F -l fuzz -r -f -d (N_ "Set the maximum fuzz factor")
|
||||
complete -c patch -s g -l get -r -f -d (N_ "This option controls patch's actions when a file is under RCS or SCCS control, and does not exist or is read-only and matches the default version, or when a file is under ClearCase control and does not exist")
|
||||
complete -c patch -l help -d (N_ "Display help and exit")
|
||||
complete -c patch -s i -l input -r -f -d (N_ "Read the patch from patchfile")
|
||||
complete -c patch -s l -l ignore-whitespace -d (N_ "Match patterns loosely, in case tabs or spaces have been munged in your files")
|
||||
complete -c patch -s n -l normal -d (N_ "Interpret the patch file as a normal diff")
|
||||
complete -c patch -s N -l forward -d (N_ "Ignore patches that seem to be reversed or already applied")
|
||||
complete -c patch -s o -l output -r -f -d (N_ "Send output to outfile instead of patching files in place")
|
||||
complete -c patch -s p -l strip -r -f -d (N_ "Strip the smallest prefix containing num leading slashes from each file name found in the patch file")
|
||||
complete -c patch -l posix -d (N_ "Conform more strictly to the POSIX standard")
|
||||
complete -c patch -l quoting-style -r -f -d (N_ "Use style word to quote output names")
|
||||
complete -c patch -s r -l reject-file -r -f -d (N_ "Put rejects into rejectfile instead of the default .rej file")
|
||||
complete -c patch -s R -l reverse -d (N_ "Assume that this patch was created with the old and new files swapped")
|
||||
complete -c patch -s s -l silent -l quiet -d (N_ "Work silently, unless an error occurs")
|
||||
complete -c patch -s t -l batch -d (N_ "Suppress questions like -f, but make some different assumptions")
|
||||
complete -c patch -s T -l set-time -d (N_ "Set the modification and access times of patched files from time stamps given in context diff headers, local time")
|
||||
complete -c patch -s u -l unified -d (N_ "Interpret the patch file as a unified context diff")
|
||||
complete -c patch -s v -l version -d (N_ "Display version and exit")
|
||||
complete -c patch -s V -l version-control -r -f -d (N_ "Use method to determine backup file names")
|
||||
complete -c patch -l verbose -d (N_ "Output extra information about the work being done")
|
||||
complete -c patch -s x -l debug -r -f -d (N_ "Set internal debugging flags of interest only to patch patchers")
|
||||
complete -c patch -s Y -l basename-prefix -r -f -d (N_ "Prefix pref to the basename of a file name when generating its simple backup file name")
|
||||
complete -c patch -s z -l suffix -r -f -d (N_ "Use suffix as the simple backup suffix")
|
||||
complete -c patch -s Z -l set-utc -d (N_ "Set the modification and access times of patched files from time stamps given in context diff headers, UTC, GMT")
|
||||
|
20
share/completions/xargs.fish
Normal file
20
share/completions/xargs.fish
Normal file
|
@ -0,0 +1,20 @@
|
|||
#
|
||||
#Completions for xargs
|
||||
#
|
||||
|
||||
complete -c xargs -s 0 -l null -d (N_ "Input filenames are terminated by a null character instead of by whitespace, and the quotes and backslash are not special")
|
||||
complete -c xargs -s e -l eof -d (N_ "Set the end of file string to eof-str")
|
||||
complete -c xargs -s E -r -f -d (N_ "Set the end of file string to eof-str")
|
||||
complete -c xargs -l help -d (N_ "Display help and exit")
|
||||
complete -c xargs -s i -l replace -d (N_ "Replace replace-str in the initial arguments with names from standard input")
|
||||
complete -c xargs -s I -r -f -d (N_ "Replace replace-str in the initial arguments with names from standard input")
|
||||
complete -c xargs -s l -l max-lines -d (N_ "Use at most max-lines nonblank input lines per command line")
|
||||
complete -c xargs -s L -r -f -d (N_ "Use at most max-lines nonblank input lines per command line")
|
||||
complete -c xargs -s n -l max-args -r -f -d (N_ "Use at most max-args arguments per command line")
|
||||
complete -c xargs -s p -l interactive -d (N_ "Prompt the user about whether to run each command line and read a line from the terminal")
|
||||
complete -c xargs -s r -l no-run-if-empty (N_ "If the standard input does not contain any nonblanks, do not run the command")
|
||||
complete -c xargs -s s -l max-chars -r -f -d (N_ "Use at most max-chars characters per command line")
|
||||
complete -c xargs -s t -l verbose -d (N_ "Print the command line on the standard error output before executing it")
|
||||
complete -c xargs -l version -d (N_ "Display version and exit")
|
||||
complete -c xargs -s x -l exit -d (N_ "Exit if the size is exceeded")
|
||||
complete -c xargs -s P -l max-procs -r -f (N_ "Run up to max-procs processes at a time")
|
Loading…
Reference in New Issue
Block a user