diff options
author | axel <axel@liljencrantz.se> | 2007-01-28 21:44:15 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2007-01-28 21:44:15 +1000 |
commit | bbd229b206ed921cab13e6bf637453d2613b1989 (patch) | |
tree | 3fbb12744e9d9ed2ddfd2c17c97252a13c8a3b40 /share/completions/locate.fish | |
parent | 6a60377e02b7a2520932e37a92e2eb0fc2d0b14f (diff) |
Add command specific completions for file and locate, written by Velko Hristov
darcs-hash:20070128114415-ac50b-f5844d6523a9aed3ca0e881c6c125072caee4978.gz
Diffstat (limited to 'share/completions/locate.fish')
-rw-r--r-- | share/completions/locate.fish | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/share/completions/locate.fish b/share/completions/locate.fish index 7e16ffd6..d824f89d 100644 --- a/share/completions/locate.fish +++ b/share/completions/locate.fish @@ -1,19 +1,23 @@ +#completion for locate -complete -c locate -s b -l basename --description "Match only the base name against the specified patterns" -complete -c locate -s c -l count --description "Instead of writing file names on standard output, write the number of matching entries only" -complete -c locate -s d -l database --description "Replace the default database with specified path" -r -complete -c locate -s e -l existing --description "Print only entries that refer to files existing at the time locate is run" -complete -c locate -s L -l follow --description "Follow symlinks when checking for existing files" -complete -c locate -s h -l help --description "Display help and exit" -complete -c locate -s i -l ignore-case --description "Ignore case distinctions when matching patterns" -complete -c locate -s l -s n -l limit --description "Exit successfully after finding specified number of entires" -r -complete -c locate -s m -l mmap --description "Ignored" -complete -c locate -s P -s H -l nofollow --description "Do not follow symlinks when checking for existing files" -complete -c locate -s 0 -l null --description "Separate the entries on output using the ASCII NUL character instead of writing each entry on a separate line" -complete -c locate -s S -l statistics --description "Write statistics about each read database to standard output" -complete -c locate -s q -l quiet --description "Write no messages about errors encountered" -complete -c locate -s r -l regexp --description "Search for specified basic regex" -r -complete -c locate -l regex --description "Interpret all patterns as extended regexps" -complete -c locate -s s -l stdio --description "Ignored" -complete -c locate -s V -l version --description "Display version and exit" -complete -c locate -s w -l wholename --description "Match only the whole path name against the specified patterns" +complete -c locate -s A -l all --description 'Print only names which match all non-option arguments' +complete -c locate -s c -l count --description 'Print the total number of matches found' +complete -c locate -s e -l existing --description 'Only print out such names that currently exist' +complete -c locate -s E -l non-existing --description 'Only print out such names that currently do not exist' +complete -c locate -s L -l follow --description 'Consider broken symbolic links to be non-existing files' +complete -c locate -s P -l nofollow --description 'Treat broken symbolic links as if they were existing' +complete -c locate -s H -l nofollow --description 'Treat broken symbolic links as if they were existing' +complete -c locate -s i -l ignore-case --description 'Ignore case distinctions between pattern and file names' +complete -c locate -s m -l mmap --description 'Does nothing. For compatibility with BSD locate' +complete -c locate -s 0 -l null --description 'Use ASCII NUL as a separator, instead of newline' +complete -c locate -s p -l print --description 'Print search results when they normally would not' +complete -c locate -s w -l whole-name --description 'Match against the whole name of the file' +complete -c locate -s b -l base-name --description 'Match against the final component of the file name' +complete -c locate -s r -l regex --description 'The pattern is regular expression instead of glob pattern' +complete -c locate -s s -l stdio --description 'Does nothing. For compatibility with BSD locate' +complete -c locate -s S -l statistics --description 'Print statistics about each locate database and exit' +complete -c locate -l help --description 'Print a summary of the options to locate and exit' +complete -c locate -l version --description 'Print the version number of locate and exit' + +complete -r -c locate -s d -l database --description 'Search the file name databases in these directories' +complete -r -c locate -s l -l limit --description 'Limit the number of matches' |