format: don't use tabs for indentation

This is done in accordance with our editorconfig file.

Part of #12408
This commit is contained in:
Daniel Rainer
2026-02-02 17:12:09 +01:00
committed by Johannes Altmanninger
parent f43a79bc13
commit e0916e793b
30 changed files with 325 additions and 325 deletions

View File

@@ -1,16 +1,16 @@
complete -c gcc -o std -d "Standard mode" -x -a '
c89\t"ISO C90"
iso9899:1990\t"ISO C90"
iso9899:199409\t"ISO C90 as modified in amendment 1"
c99\t"ISO C99"
c9x \t"ISO C99"
iso9899:1999\t"ISO C99"
iso9899:199x\t"ISO C99"
gnu89\t"ISO C90 plus GNU extensions"
gnu99\t"ISO C99 plus GNU extensions"
gnu9x\t"ISO C99 plus GNU extensions"
c++98\t"ISO C++98"
gnu++98\t"ISO C++98 plus GNU extensions"
c89\t"ISO C90"
iso9899:1990\t"ISO C90"
iso9899:199409\t"ISO C90 as modified in amendment 1"
c99\t"ISO C99"
c9x \t"ISO C99"
iso9899:1999\t"ISO C99"
iso9899:199x\t"ISO C99"
gnu89\t"ISO C90 plus GNU extensions"
gnu99\t"ISO C99 plus GNU extensions"
gnu9x\t"ISO C99 plus GNU extensions"
c++98\t"ISO C++98"
gnu++98\t"ISO C++98 plus GNU extensions"
'
complete -c gcc -o ftemplate-depth -d "Set maximum template depth" -a '(seq 1 17)'

View File

@@ -5,9 +5,9 @@ complete -f -c git-sizer -s v -l verbose -d "Report all statistics"
complete -x -c git-sizer -l threshold -d "Minimum level of concern"
complete -f -c git-sizer -l critical -d "Only report critical statistics"
complete -x -c git-sizer -l names -d "How to display names of large objects" -a "
none\t'Omit footnotes entirely'
hash\t'Only show SHA-1s'
full\t'Show full names'
none\t'Omit footnotes entirely'
hash\t'Only show SHA-1s'
full\t'Show full names'
"
complete -f -c git-sizer -s j -l json -d "Output results in JSON format"
complete -x -c git-sizer -l json-version -d "JSON format version to use" -a "1 2"

View File

@@ -2010,12 +2010,12 @@ complete -f -c git -n "__fish_git_using_command notes" -n "__fish_seen_subcomman
complete -f -c git -n "__fish_git_using_command notes" -n "__fish_seen_subcommand_from merge remove prune" -s v -l verbose -d 'Be more verbose'
complete -f -c git -n "__fish_git_using_command notes" -n "__fish_seen_subcommand_from merge remove prune" -s q -l quiet -d 'Operate quietly'
complete -x -c git -n "__fish_git_using_command notes" -n "__fish_seen_subcommand_from merge" -s s -l strategy -d 'Merge strategy to use to resolve conflicts' -a "
manual\t'Instruct the user to resolve merge conflicts'
ours\t'Resolve conflicts in favour of local version'
theirs\t'Resolve conflicts in favour of remote version'
union\t'Resolve conflicts by concatenating local and remote versions'
cat_sort_uniq\t'Concatenate, sort and remove duplicate lines'
"
manual\t'Instruct the user to resolve merge conflicts'
ours\t'Resolve conflicts in favour of local version'
theirs\t'Resolve conflicts in favour of remote version'
union\t'Resolve conflicts by concatenating local and remote versions'
cat_sort_uniq\t'Concatenate, sort and remove duplicate lines'
"
complete -f -c git -n "__fish_git_using_command notes" -n "__fish_seen_subcommand_from merge" -l commit -d 'Finalize git notes merge'
complete -f -c git -n "__fish_git_using_command notes" -n "__fish_seen_subcommand_from merge" -l abort -d 'Abort git notes merge'
complete -f -c git -n "__fish_git_using_command notes" -n "__fish_seen_subcommand_from remove" -l ignore-missing -d 'Do not throw error on deleting non-existing object note'

View File

@@ -16,7 +16,7 @@ complete -c htop -l version -s V -d 'Show version and exit'
complete -c htop -l tree -s t -d 'Show processes in tree view'
complete -c htop -l highlight-changes -s H -d 'Highlight new and old processes' -x
complete -c htop -l drop-capabilities -d 'Drop unneeded Linux capabilities (Requires libpcap support)' -xka "
off
basic
strict
"
off
basic
strict
"

View File

@@ -1,25 +1,25 @@
complete -x -c ifconfig -a down -d "Stop interface"
complete -x -c ifconfig -a up -d "Start interface"
complete -x -c ifconfig -a "
{,-}arp
{,-}promisc
{,-}allmulti
metric
mtu
dstaddr
netmask
add
del
tunnel
irq
io_addr
mem_start
media
{,-}broadcast
{,-}pointopoint
hw
multicast
address
txqueuelen
{,-}arp
{,-}promisc
{,-}allmulti
metric
mtu
dstaddr
netmask
add
del
tunnel
irq
io_addr
mem_start
media
{,-}broadcast
{,-}pointopoint
hw
multicast
address
txqueuelen
"
complete -x -c ifconfig -a "(__fish_print_interfaces)" -d "Network interface"

View File

@@ -13,7 +13,7 @@ function __fish_list_kldload_options
# print name and description
for kld in $klds
printf '%s\t%s\n' $kld (test -f /usr/share/man/man4/$kld.4.gz;
and __kld_whatis $kld; or echo "kernel module")[1]
and __kld_whatis $kld; or echo "kernel module")[1]
end
else if test $kld_count -gt 0
# print name only

View File

@@ -59,24 +59,24 @@ if ls --version >/dev/null 2>/dev/null
complete -c ls -l si -d "Human readable sizes, powers of 1000"
complete -c ls -l show-control-chars -d "Non-graphic characters printed as-is"
complete -c ls -l sort -x -d "Sort criteria" -a "
extension\t'Sort by file extension'
none\tDon\'t\ sort
size\t'Sort by size'
time\t'Sort by modification time'
version\t'Sort by version'
status\t'Sort by file status modification time'
atime\t'Sort by access time'
access\t'Sort by access time'
use\t'Sort by access time'
"
extension\t'Sort by file extension'
none\tDon\'t\ sort
size\t'Sort by size'
time\t'Sort by modification time'
version\t'Sort by version'
status\t'Sort by file status modification time'
atime\t'Sort by access time'
access\t'Sort by access time'
use\t'Sort by access time'
"
complete -c ls -s T -l tabsize -x -a "1 2 3 4 5 6 7 8 9 10 11 12" -d "Assume tab stops at each COLS"
complete -c ls -l time -x -d "Show time type" -a "
time\t'Sort by modification time'
access\t'Sort by access time'
use\t'Sort by use time'
ctime\t'Sort by file status modification time'
status\t'Sort by status time'
"
time\t'Sort by modification time'
access\t'Sort by access time'
use\t'Sort by use time'
ctime\t'Sort by file status modification time'
status\t'Sort by status time'
"
complete -c ls -l time-style -x -a "full-iso long-iso iso locale" -d "Select time style"
complete -c ls -s U -d "Do not sort"
complete -c ls -s v -d "Sort by version"

View File

@@ -7,21 +7,21 @@
#
set -l mplayer_lang "
de\tGerman
dk\tDanish
en\tEnglish
es\tSpanish
fi\tFinnish
fr\tFrench
gr\tGreek
hu\tHungarian
it\tItalian
jp\tJapanese
no\tNorwegian
hu\tHungarian
pl\tPolish
pt\tPortugese
se\tSwedish
de\tGerman
dk\tDanish
en\tEnglish
es\tSpanish
fi\tFinnish
fr\tFrench
gr\tGreek
hu\tHungarian
it\tItalian
jp\tJapanese
no\tNorwegian
hu\tHungarian
pl\tPolish
pt\tPortugese
se\tSwedish
"
complete -c mplayer -o autoq -d "Dynamically change postprocessing" -x
@@ -57,25 +57,25 @@ complete -c mplayer -o utf8 -d "Handle subtitlefile as utf8"
complete -c mplayer -o vo -x -d "Video output" -a "
(
mplayer -vo help | string match -ar '\t.*\t.*|^ *[a-zA-Z0-9]+ ' | sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/'
mplayer -vo help | string match -ar '\t.*\t.*|^ *[a-zA-Z0-9]+ ' | sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/'
)
"
complete -c mplayer -o ao -x -d "Audio output" -a "
(
mplayer -ao help | string match -ar '\t.*\t|^ *[a-zA-Z0-9]+ ' | sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/'
mplayer -ao help | string match -ar '\t.*\t|^ *[a-zA-Z0-9]+ ' | sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/'
)
"
complete -c mplayer -o afm -x -d "Audio output" -a "
(
__fish_append ',' (mplayer -afm help | string match -ar '\t.*\t|^ *[a-zA-Z0-9]+ ' | sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/')
__fish_append ',' (mplayer -afm help | string match -ar '\t.*\t|^ *[a-zA-Z0-9]+ ' | sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/')
)
"
complete -c mplayer -o vfm -x -d "Video output" -a "
(
__fish_append ',' (mplayer -vfm help | string match -ar '\t.*\t|^ *[a-zA-Z0-9]+ ' | sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/')
__fish_append ',' (mplayer -vfm help | string match -ar '\t.*\t|^ *[a-zA-Z0-9]+ ' | sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/')
)
"

View File

@@ -1,32 +1,32 @@
complete -c pfctl -s s -d 'Show a filter parameter by modifier' -xa \
'queue\t"Show loaded queue definitions" \
rules\t"Show loaded filter rules" \
Anchors\t"Show anchors attached to main ruleset" \
states\t"Show state table"
Sources\t"Show source tracking table" \
info\t"Show filter information" \
labels\t"Show stats of labeled filter rules" \
timeouts\t"Show global timeouts" \
memory\t"Show pool memory hard limits" \
Tables\t"Show the list of tables" \
osfp\t"Show a list of OS fingerprints" \
Interfaces\t"List PF interfaces/drivers" \
all\t"Everything."'
rules\t"Show loaded filter rules" \
Anchors\t"Show anchors attached to main ruleset" \
states\t"Show state table"
Sources\t"Show source tracking table" \
info\t"Show filter information" \
labels\t"Show stats of labeled filter rules" \
timeouts\t"Show global timeouts" \
memory\t"Show pool memory hard limits" \
Tables\t"Show the list of tables" \
osfp\t"Show a list of OS fingerprints" \
Interfaces\t"List PF interfaces/drivers" \
all\t"Everything."'
complete -c pfctl -s F -d 'Flush filter params specified by mod' -xa \
'rules\t"Flush filter rules" \
states\t"Flush state table" \
Sources\t"Flush source tracking table" \
info\t"Flush filter information" \
Tables\t"Flush the tables" \
ospf\t"Flush the passive OS fingerprints" \
all\t"Flush everything"'
states\t"Flush state table" \
Sources\t"Flush source tracking table" \
info\t"Flush filter information" \
Tables\t"Flush the tables" \
ospf\t"Flush the passive OS fingerprints" \
all\t"Flush everything"'
complete -c pfctl -s T -d 'Table command' -xa \
'kill\t"Kill a table." \
flush\t"Flush addresses of a table" \
add\t"Add one or more addresses in table" \
delete\t"Delete one or more addresses from a table" \
expire\t"Delete addresses where stats cleared > N seconds" \
replace\t"Replace the addresses of the table" \
show\t"Show the contents of a table" \
test\t"Test if the given addresses match a table" \
zero\t"Clear all the stats of a table"'
flush\t"Flush addresses of a table" \
add\t"Add one or more addresses in table" \
delete\t"Delete one or more addresses from a table" \
expire\t"Delete addresses where stats cleared > N seconds" \
replace\t"Replace the addresses of the table" \
show\t"Show the contents of a table" \
test\t"Test if the given addresses match a table" \
zero\t"Clear all the stats of a table"'

View File

@@ -14,13 +14,13 @@ complete -c pine -s z -d "Enable suspension support"
complete -c pine -o conf -d "Produce a sample global configuration file"
complete -c pine -o pinerc -d "Produce sample configuration file" -r
complete -c pine -o sort -d "Set mail sort order" -a "
arrival
subject
from
date
size
orderedsubj
reverse
arrival
subject
from
date
size
orderedsubj
reverse
"
complete -c pine -o option -d "Config option" -x

View File

@@ -48,7 +48,7 @@ complete -c portmaster -l version -d 'display the version number El ENVIRONMENT
# Grab items from the ports directory, max depth 2
complete -c portmaster -f -d 'Ports Directory' -a "
(
string match -r '(?<=/usr/ports/)[^/]*(?:/[^/]*)?' (__fish_complete_directories /usr/ports/(commandline -ct))
string match -r '(?<=/usr/ports/)[^/]*(?:/[^/]*)?' (__fish_complete_directories /usr/ports/(commandline -ct))
)"
complete -c portmaster -f -d 'Installed package' -a "(__fish_print_port_packages)"

View File

@@ -2,25 +2,25 @@
# common section names and what they contain
set -l sections '
.bss\t"Uninitialized read-write data"
.data\t"Comment section"
.debug\t"Debugging information"
.fini\t"Runtime finalization instructions"
.init\t"Runtime initialization instructions"
.rodata\t"Read-only data"
.text\t"Executable text"
.line\t"Line info for symbolic debugging"
.note\t"Note information"
.dynamic\t"Dynamic linking information"
.dynstr\t"Strings needed for dynamic linking"
.dynsym\t"Dynamic linking symbol table"
.got\t"Global offset table"
.hash\t"Symbol hash table"
.interp\t"Path name of a program interpreter"
.plt\t"Procedure linking table"
.shstrtab\t"String table for the section header table names"
.strtab\t"String table"
.symtab\t"Symbol table"
.bss\t"Uninitialized read-write data"
.data\t"Comment section"
.debug\t"Debugging information"
.fini\t"Runtime finalization instructions"
.init\t"Runtime initialization instructions"
.rodata\t"Read-only data"
.text\t"Executable text"
.line\t"Line info for symbolic debugging"
.note\t"Note information"
.dynamic\t"Dynamic linking information"
.dynstr\t"Strings needed for dynamic linking"
.dynsym\t"Dynamic linking symbol table"
.got\t"Global offset table"
.hash\t"Symbol hash table"
.interp\t"Path name of a program interpreter"
.plt\t"Procedure linking table"
.shstrtab\t"String table for the section header table names"
.strtab\t"String table"
.symtab\t"Symbol table"
'
complete -c readelf -s a -l all -d "Equivalent to -h -l -S -s -r -d -V -A -I"

View File

@@ -9,12 +9,12 @@ complete -c rpm -l rcfile -d "List of rpm configuration files" -f
complete -c rpm -l pipe -d "Pipe output through specified command" -r
complete -c rpm -l dbpath -d "Specify directory for rpm database" -a "
(
__fish_complete_directories (commandline -ct) 'Rpm database directory'
__fish_complete_directories (commandline -ct) 'Rpm database directory'
)
"
complete -c rpm -l root -d "Specify root directory for rpm operations" -a "
(
__fish_complete_directories (commandline -ct) 'Root directory for rpm operations'
__fish_complete_directories (commandline -ct) 'Root directory for rpm operations'
)
"

View File

@@ -165,8 +165,8 @@ complete -c rsync -d Hostname -a "
(__fish_print_hostnames):
(
# Prepend any username specified in the completion to the hostname.
commandline -ct |sed -ne 's/\(.*@\).*/\1/p'
# Prepend any username specified in the completion to the hostname.
commandline -ct |sed -ne 's/\(.*@\).*/\1/p'
)(__fish_print_hostnames):
(__fish_print_users)@\tUsername
@@ -199,10 +199,10 @@ end
complete -c rsync -d "Remote path" -n "commandline -ct | string match -q '*:*'" -xa "
(
# Prepend any user@host:/path information supplied before the remote completion.
# Prepend any user@host:/path information supplied before the remote completion.
__rsync_remote_target
)(
# Get the list of remote files from the specified rsync server.
# Get the list of remote files from the specified rsync server.
rsync --list-only (__rsync_remote_target) 2>/dev/null | string replace -r '^d.*' '\$0/' |
string replace -r '(\S+\s+){4}' '' |
string match --invert './' $(set -q new_escaping[1]; or echo ' | string escape -n'; echo)

View File

@@ -5,9 +5,9 @@ complete -c scons -l cache-force -l cache-populate -d 'Populate cache with alrea
complete -c scons -l cache-show -d 'Show how a cached file would be built'
complete -c scons -l config -d 'How the Configure call should run the config tests' -a '
auto\t"Use normal dependency mechanism"
force\t"Rerun all tests"
cache\t"Take all results from cache"' -x
auto\t"Use normal dependency mechanism"
force\t"Rerun all tests"
cache\t"Take all results from cache"' -x
complete -c scons -s C -l directory -d 'Change to this directory before searching for the sconstruct file'
complete -c scons -s D -d 'Like -u except for the way default targets are handled'

View File

@@ -41,11 +41,11 @@ complete -c ssh-keygen -s u -d 'update a KRL'
complete -c ssh-keygen -s V -x -d 'specify a validity interval when signing a certificate'
complete -c ssh-keygen -s w -r -d 'path to a needed library when creating FIDO authenticator-hosted keys'
complete -c ssh-keygen -s Y -x -a "\
find-principals\t'find the principal(s) associated with the public key of a signature'
match-principals\t'find principal matching the principal name provided using the -I flag'
check-novalidate\t'check that a signature generated using -Y sign has a valid structure'
sign\t'Cryptographically sign a file or some data using an SSH key'
verify\t'Request to verify a signature generated using -Y sign'
find-principals\t'find the principal(s) associated with the public key of a signature'
match-principals\t'find principal matching the principal name provided using the -I flag'
check-novalidate\t'check that a signature generated using -Y sign has a valid structure'
sign\t'Cryptographically sign a file or some data using an SSH key'
verify\t'Request to verify a signature generated using -Y sign'
"
complete -c ssh-keygen -s y -d 'print an OpenSSH public key from a private OpenSSH format file'
# Note: `ssh -Q` is not available on old versions

View File

@@ -3,13 +3,13 @@
### sub commands specification ###
complete -c sysbench -f -a "run\t'Run the test'"
complete -c sysbench -n "__fish_contains_opt test=fileio" -a "
prepare\t'Prepare and create test file'
cleanup\t'Cleanup test files'
"
prepare\t'Prepare and create test file'
cleanup\t'Cleanup test files'
"
complete -c sysbench -n "__fish_contains_opt test=oltp" -a "
prepare\t'Prepare test table'
cleanup\t'Cleanup test table'
"
prepare\t'Prepare test table'
cleanup\t'Cleanup test table'
"
### generic long options specification ###
complete -c sysbench -x -l num-threads -d 'The total number of worker threads to create (default: 1)'
@@ -18,12 +18,12 @@ complete -c sysbench -x -l max-time -d 'Limit for total execution time in second
complete -c sysbench -x -l thread-stack-size -d 'Size of stack for each thread (default: 32K)'
complete -c sysbench -f -l init-rng -d 'Specifies if random numbers generator should be initialized from timer (default: off)' -a 'on off'
complete -c sysbench -x -l test -d 'Name of the test mode to run(required)' -a "
cpu\t'Benchmark cpu by calculating prime numbers'
threads\t'Benchmark scheduler performance'
mutex\t'Benchmark mutex implementation'
fileio\t'Benchmark various file I/O workloads'
oltp\t'Benchmark a real database performance'
"
cpu\t'Benchmark cpu by calculating prime numbers'
threads\t'Benchmark scheduler performance'
mutex\t'Benchmark mutex implementation'
fileio\t'Benchmark various file I/O workloads'
oltp\t'Benchmark a real database performance'
"
complete -c sysbench -f -l debug -d 'Print more debug info (default: off)' -a 'on off'
complete -c sysbench -f -l validate -d 'Perform validation of test results where possible (default: off)' -a 'on off'
complete -c sysbench -l help -d 'Print help on general syntax'
@@ -42,9 +42,9 @@ complete -c sysbench -n "__fish_contains_opt test=threads" -x -l thread-locks -d
### options for test=`mutex` mode ###
complete -c sysbench -n "__fish_contains_opt test=mutex" -x -l mutex-num -d 'Number of mutexes to create (default: 4096)'
complete -c sysbench -n "__fish_contains_opt test=mutex" -x -l memory-scope -d 'Specifies whether each thread uses a global or local allocation (default:global)' -a "
local\t'Allocate memory locally'
global\t'Allocate memory globally'
"
local\t'Allocate memory locally'
global\t'Allocate memory globally'
"
complete -c sysbench -n "__fish_contains_opt test=mutex" -x -l memory-total-size -d 'Total size of data to transfer (default: 100G)'
complete -c sysbench -n "__fish_contains_opt test=mutex" -x -l memory-oper -d 'Type of memory operations' -a 'read write'
@@ -53,13 +53,13 @@ complete -c sysbench -n "__fish_contains_opt test=fileio" -x -l file-num -d 'Num
complete -c sysbench -n "__fish_contains_opt test=fileio" -x -l file-block-size -d 'Block size to use in all I/O operations (default: 16K)'
complete -c sysbench -n "__fish_contains_opt test=fileio" -x -l file-total-size -d 'Total size of files (default: 2G)'
complete -c sysbench -n "__fish_contains_opt test=fileio" -x -l file-test-mode -d 'Type of workload to produce' -a "
seqwr\t'Sequential write'
seqrewr\t'Sequential rewrite'
seqrd\t'Sequential read'
rndrd\t'Random read'
rndwr\t'Random write'
rndrw\t'Random read/write'
"
seqwr\t'Sequential write'
seqrewr\t'Sequential rewrite'
seqrd\t'Sequential read'
rndrd\t'Random read'
rndwr\t'Random write'
rndrw\t'Random read/write'
"
complete -c sysbench -n "__fish_contains_opt test=fileio" -x -l file-io-mode -d 'I/O mode (default: sync)' -a 'sync async fastmmap slowmmap'
complete -c sysbench -n "__fish_contains_opt test=fileio" -x -l file-async-backlog -d 'Number of asynchronous operations to queue per thread (default: 128)'
complete -c sysbench -n "__fish_contains_opt test=fileio" -x -l file-extra-flags -d 'Additional flags to use with open(2)'
@@ -72,10 +72,10 @@ complete -c sysbench -n "__fish_contains_opt test=fileio" -x -l file-rw-ratio -d
### options for test=`oltp` mode ###
complete -c sysbench -n "__fish_contains_opt test=oltp" -x -l oltp-test-mode -d 'Execution mode: simple, complex and nontrx(non-transactional)(default: complex)' -a "
simple\t'Simple'
complex\t'Advanced transactional'
nontrx\t'Non-transactional'
"
simple\t'Simple'
complex\t'Advanced transactional'
nontrx\t'Non-transactional'
"
complete -c sysbench -n "__fish_contains_opt test=oltp" -f -l oltp-read-only -d 'Read-only mode. No UPDATE, DELETE or INSERT queries will be performed. (default: off)' -a 'on off'
complete -c sysbench -n "__fish_contains_opt test=oltp" -x -l oltp-range-size -d 'Range size for range queries (default: 100)'
complete -c sysbench -n "__fish_contains_opt test=oltp" -x -l oltp-point-selects -d 'Number of point select queries in a single transaction (default: 10)'
@@ -92,10 +92,10 @@ complete -c sysbench -n "__fish_contains_opt test=oltp" -x -l oltp-user-delay-ma
complete -c sysbench -n "__fish_contains_opt test=oltp" -x -l oltp-table-name -d 'Name of the test table (default: sbtest)'
complete -c sysbench -n "__fish_contains_opt test=oltp" -x -l oltp-table-size -d 'Number of rows in the test table (default: 10000)'
complete -c sysbench -n "__fish_contains_opt test=oltp" -x -l oltp-dist-type -d 'Distribution type of random numbers (default: special)' -a "
uniform\t'Uniform distribution'
gauss\t'Gaussian distribution'
special\t'Specified percent of numbers is generated in a specified percent of cases'
"
uniform\t'Uniform distribution'
gauss\t'Gaussian distribution'
special\t'Specified percent of numbers is generated in a specified percent of cases'
"
complete -c sysbench -n "__fish_contains_opt oltp-dist-type=special" -x -l oltp-dist-pct -d 'Percentage of values to be treated as \'special\'(default: 1)'
complete -c sysbench -n "__fish_contains_opt oltp-dist-type=special" -x -l oltp-dist-res -d 'Percentage of cases when \'special\' values are generated (default: 75)'
complete -c sysbench -n "__fish_contains_opt test=oltp" -x -l db-ps-mode -d 'Use "Prepared Statements" API if supported, otherwise - use clientside statements: disable, auto (default: auto)' -a 'disable auto'

View File

@@ -2,10 +2,10 @@ if uniq --version >/dev/null 2>/dev/null
complete -c uniq -s c -l count -d "Print number of occurrences"
complete -c uniq -s d -l repeated -d "Only print duplicates"
complete -c uniq -s D -l all-repeated -d "Remove non-duplicate lines" -f -x -a "
none\t'Remove none-duplicate lines'
prepend\t'Remove non-duplicate lines and print an empty line before each non-duplicate'
separate\t'Remove non-duplicate lines and print an empty line between each non-duplicate'
"
none\t'Remove none-duplicate lines'
prepend\t'Remove non-duplicate lines and print an empty line before each non-duplicate'
separate\t'Remove non-duplicate lines and print an empty line between each non-duplicate'
"
complete -c uniq -s f -l skip-fields -d "Avoid comparing first N fields" -r
complete -c uniq -s i -l ignore-case -d "Case insensitive"
complete -c uniq -s s -l skip-chars -d "Avoid comparing first N characters" -r

View File

@@ -10,11 +10,11 @@ if valgrind --version 2>/dev/null | string match -qr -- '-2\.[012]\.'
end
complete -xc valgrind -l $skin -d Skin -a "
memcheck\tHeavyweight\ memory\ checker
cachegrind\tCache-miss\ profiler
addrcheck\tLightweight\ memory\ checker
helgrind\tData-race\ detector
massif\tHeap\ profiler
memcheck\tHeavyweight\ memory\ checker
cachegrind\tCache-miss\ profiler
addrcheck\tLightweight\ memory\ checker
helgrind\tData-race\ detector
massif\tHeap\ profiler
"
function __fish_valgrind_skin --argument-names tool -V skin

View File

@@ -23,11 +23,11 @@ complete -c wget -l no-clobber -d "Never overwrite files with same name"
complete -c wget -o nc -d "Never overwrite files with same name"
complete -c wget -s c -l continue -d "Continue getting a partially-downloaded file"
complete -c wget -l progress -d "Select progress meter type" -a "
dot\t'Print one dot for every kB of data, 50 dots per line'
dot:default\t'Print one dot for every kB of data, 50 dots per line'
dot:binary\t'Print one dot for every 8 kB of data, 48 dots per line'
dot:mega\t'Print one dot for every 64 kB of data, 48 dots per line'
bar\t'Print progress bar'
dot\t'Print one dot for every kB of data, 50 dots per line'
dot:default\t'Print one dot for every kB of data, 50 dots per line'
dot:binary\t'Print one dot for every 8 kB of data, 48 dots per line'
dot:mega\t'Print one dot for every 64 kB of data, 48 dots per line'
bar\t'Print progress bar'
"
complete -c wget -s N -l timestamping -d "Turn on time-stamping"
complete -c wget -s S -l server-response -d "Print the headers/responses sent by servers"
@@ -44,8 +44,8 @@ complete -c wget -s Y -l proxy -d "Toggle proxy support" -xa "on off"
complete -c wget -s Q -l quota -d "Specify download quota for automatic retrievals" -x
complete -c wget -l dns-cache -d "Turn off caching of DNS lookups" -xa off
complete -c wget -l restrict-file-names -d "Change which characters found in remote URLs may show up in local file names" -a "
unix\t'Escape slash and non-printing characters'
windows\t'Escape most non-alphabetical characters'
unix\t'Escape slash and non-printing characters'
windows\t'Escape most non-alphabetical characters'
"
# HTTP options

View File

@@ -19,12 +19,12 @@ function __fish_describe_command -d "Command used to find descriptions for comma
# $argv will be inserted directly into the awk regex, so it must be escaped
set -l argv_regex (string escape --style=regex -- "$argv")
__fish_apropos "^$argv$suffix" 2>/dev/null | awk -v FS=" +- +" '{
split($1, names, ", ");
for (name in names)
if (names[name] ~ /^'"$argv_regex"'.* *\([18]\)/ ) {
sub( "( |\t)*\\\([18]\\\)", "", names[name] );
sub( " \\\[.*\\\]", "", names[name] );
print names[name] "\t" $2;
}
}'
split($1, names, ", ");
for (name in names)
if (names[name] ~ /^'"$argv_regex"'.* *\([18]\)/ ) {
sub( "( |\t)*\\\([18]\\\)", "", names[name] );
sub( " \\\[.*\\\]", "", names[name] );
print names[name] "\t" $2;
}
}'
end

View File

@@ -515,15 +515,15 @@ function __fish_git_prompt_operation_branch_bare --description "fish_git_prompt
if not set branch (command git symbolic-ref HEAD 2>/dev/null)
set detached yes
set branch (switch "$__fish_git_prompt_describe_style"
case contains
command git describe --contains HEAD
case branch
command git describe --contains --all HEAD
case describe
command git describe HEAD
case default '*'
command git describe --tags --exact-match HEAD
end 2>/dev/null)
case contains
command git describe --contains HEAD
case branch
command git describe --contains --all HEAD
case describe
command git describe HEAD
case default '*'
command git describe --tags --exact-match HEAD
end 2>/dev/null)
if test $status -ne 0
# Shorten the sha ourselves to 8 characters - this should be good for most repositories,
# and even for large ones it should be good for most commits