mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03:00
format: use 4-space indents in more files
Change some files which have lines whose indentation is not a multiple of the 4 spaces specified in the editorconfig file. Some of these changes are fixes or clear improvements (e.g. in Rust macros which rustfmt can't format properly). Other changes don't clearly improve the code style, and in some cases it might actually get worse. The goal is to eventually be able to use our editorconfig for automated style checks, but there are a lot of cases where conforming to the limited editorconfig style spec does not make sense, so I'm not sure how useful such automated checks can be. Closes #12408
This commit is contained in:
committed by
Johannes Altmanninger
parent
1df7a8ba29
commit
c5e4fed021
@@ -4,25 +4,31 @@ complete -c ansible-galaxy -s h -l help -d "Show help message"
|
||||
complete -c ansible-galaxy -n __fish_use_subcommand -s v -l verbose -d "Verbose mode (-vvv for more, -vvvv for connection debugging)"
|
||||
|
||||
# first subcommand
|
||||
complete -c ansible-galaxy -n __fish_use_subcommand -xa "collection\t'Manage a collection'
|
||||
role\t'Manage a role'"
|
||||
complete -c ansible-galaxy -n __fish_use_subcommand -xa "
|
||||
collection\t'Manage a collection'
|
||||
role\t'Manage a role'
|
||||
"
|
||||
|
||||
# second subcommand (for collection)
|
||||
complete -c ansible-galaxy -n '__fish_seen_subcommand_from collection' -a "download\t'Download collections as tarball'
|
||||
init\t'Initialize new collection with the base structure'
|
||||
build\t'Build collection artifact that can be published'
|
||||
publish\t'Publish collection artifact to Ansible Galaxy'
|
||||
install\t'Install collections'
|
||||
list\t'Show collections installed'
|
||||
verify\t'Compare checksums of local and remote collections'"
|
||||
complete -c ansible-galaxy -n '__fish_seen_subcommand_from collection' -a "
|
||||
download\t'Download collections as tarball'
|
||||
init\t'Initialize new collection with the base structure'
|
||||
build\t'Build collection artifact that can be published'
|
||||
publish\t'Publish collection artifact to Ansible Galaxy'
|
||||
install\t'Install collections'
|
||||
list\t'Show collections installed'
|
||||
verify\t'Compare checksums of local and remote collections'
|
||||
"
|
||||
|
||||
# second subcommand (for role)
|
||||
complete -c ansible-galaxy -n '__fish_seen_subcommand_from role' -a "init\t'Initialize new role with the base structure'
|
||||
remove\t'Delete roles from roles_path'
|
||||
delete\t'Removes the role from Galaxy'
|
||||
list\t'Show roles installed'
|
||||
search\t'Search the Galaxy database by keywords'
|
||||
import\t'Import role into a galaxy server'
|
||||
setup\t'Manage integration between Galaxy and the given source'
|
||||
info\t'View details about a role'
|
||||
install\t'Install roles'"
|
||||
complete -c ansible-galaxy -n '__fish_seen_subcommand_from role' -a "
|
||||
init\t'Initialize new role with the base structure'
|
||||
remove\t'Delete roles from roles_path'
|
||||
delete\t'Removes the role from Galaxy'
|
||||
list\t'Show roles installed'
|
||||
search\t'Search the Galaxy database by keywords'
|
||||
import\t'Import role into a galaxy server'
|
||||
setup\t'Manage integration between Galaxy and the given source'
|
||||
info\t'View details about a role'
|
||||
install\t'Install roles'
|
||||
"
|
||||
|
||||
@@ -31,7 +31,7 @@ data = json.load(json_data)
|
||||
json_data.close()
|
||||
packages = itertools.chain(data.get('require', {}).keys(), data.get('require-dev', {}).keys())
|
||||
print(\"\n\".join(packages))
|
||||
" | $python -S
|
||||
" | $python -S
|
||||
end
|
||||
|
||||
function __fish_composer_installed_packages
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
complete -c dvipdf -k -x -a "(
|
||||
__fish_complete_suffix .dvi
|
||||
)"
|
||||
complete -c dvipdf -k -x -a "(__fish_complete_suffix .dvi)"
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
complete -c dvipdfm -k -x -a "
|
||||
(
|
||||
__fish_complete_suffix .dvi
|
||||
)"
|
||||
complete -c dvipdfm -k -x -a "(__fish_complete_suffix .dvi)"
|
||||
|
||||
@@ -1469,11 +1469,13 @@ complete -f -c git -n '__fish_git_using_command commit' -l fixup -d 'Fixup commi
|
||||
complete -f -c git -n '__fish_git_using_command commit' -l squash -d 'Squash commit to be used with rebase --autosquash'
|
||||
complete -c git -n '__fish_git_using_command commit' -l reset-author -d 'When amending, reset author of commit to the committer'
|
||||
complete -x -c git -n '__fish_git_using_command commit' -l author -d 'Override the commit author'
|
||||
complete -x -c git -n '__fish_git_using_command commit' -l cleanup -a "strip\t'Leading/trailing whitespace/empty lines, #commentary'
|
||||
whitespace\t'Like strip but keep #commentary'
|
||||
verbatim\t'Do not change the message'
|
||||
scissors\t'Like whitespace but also remove after scissor lines'
|
||||
default\t'Like strip if the message is to be edited, whitespace otherwise'" -d 'How to clean up the commit message'
|
||||
complete -x -c git -n '__fish_git_using_command commit' -l cleanup -a "
|
||||
strip\t'Leading/trailing whitespace/empty lines, #commentary'
|
||||
whitespace\t'Like strip but keep #commentary'
|
||||
verbatim\t'Do not change the message'
|
||||
scissors\t'Like whitespace but also remove after scissor lines'
|
||||
default\t'Like strip if the message is to be edited, whitespace otherwise'
|
||||
" -d 'How to clean up the commit message'
|
||||
complete -x -c git -n '__fish_git_using_command commit' -l date -d 'Override the author date'
|
||||
complete -x -c git -n '__fish_git_using_command commit' -s m -l message -d 'Use the given message as the commit message'
|
||||
complete -f -c git -n '__fish_git_using_command commit' -l no-edit -d 'Use the selected commit message without launching an editor'
|
||||
@@ -1793,26 +1795,26 @@ complete -c git -n '__fish_git_using_command log' -l no-standard-notes
|
||||
complete -c git -n '__fish_git_using_command log' -l show-signature
|
||||
complete -c git -n '__fish_git_using_command log' -l relative-date
|
||||
complete -x -c git -n '__fish_git_using_command log shortlog' -l date -a '
|
||||
relative
|
||||
local
|
||||
iso
|
||||
iso-local
|
||||
iso8601
|
||||
iso8601-local
|
||||
iso-strict
|
||||
iso-strict-local
|
||||
iso8601-strict
|
||||
iso8601-strict-local
|
||||
rfc-local
|
||||
rfc2822-local
|
||||
short
|
||||
short-local
|
||||
raw
|
||||
human
|
||||
unix
|
||||
format:
|
||||
default
|
||||
default-local
|
||||
relative
|
||||
local
|
||||
iso
|
||||
iso-local
|
||||
iso8601
|
||||
iso8601-local
|
||||
iso-strict
|
||||
iso-strict-local
|
||||
iso8601-strict
|
||||
iso8601-strict-local
|
||||
rfc-local
|
||||
rfc2822-local
|
||||
short
|
||||
short-local
|
||||
raw
|
||||
human
|
||||
unix
|
||||
format:
|
||||
default
|
||||
default-local
|
||||
'
|
||||
complete -c git -n '__fish_git_using_command log' -l parents
|
||||
complete -c git -n '__fish_git_using_command log' -l children
|
||||
@@ -1848,10 +1850,10 @@ complete -c git -n '__fish_git_using_command log' -l name-status
|
||||
complete -f -c git -n '__fish_git_using_command log' -l color -a 'always never auto'
|
||||
complete -c git -n '__fish_git_using_command log' -l no-color
|
||||
complete -f -c git -n '__fish_git_using_command log' -l word-diff -a '
|
||||
color
|
||||
plain
|
||||
porcelain
|
||||
none
|
||||
color
|
||||
plain
|
||||
porcelain
|
||||
none
|
||||
'
|
||||
complete -f -c git -n '__fish_git_using_command log' -l color-words
|
||||
complete -c git -n '__fish_git_using_command log' -l no-renames
|
||||
|
||||
@@ -6,11 +6,11 @@ complete -c i3-msg -l version -s v -d 'Display version number and exit'
|
||||
complete -c i3-msg -l help -s h -d 'Display help and exit'
|
||||
complete -c i3-msg -l socket -s s -d 'Set socket'
|
||||
complete -c i3-msg -s t -x -d 'Specify ipc message type' -a '
|
||||
command\t"Payload is a command"
|
||||
get_workspaces\t"Get current workspace"
|
||||
get_outputs\t"Get current outputs"
|
||||
get_tree\t"Get layout tree"
|
||||
get_marks\t"Get list of marks"
|
||||
get_bar_config\t"Get list of configured binding modes"
|
||||
get_version\t"Get i3 version"
|
||||
command\t"Payload is a command"
|
||||
get_workspaces\t"Get current workspace"
|
||||
get_outputs\t"Get current outputs"
|
||||
get_tree\t"Get layout tree"
|
||||
get_marks\t"Get list of marks"
|
||||
get_bar_config\t"Get list of configured binding modes"
|
||||
get_version\t"Get i3 version"
|
||||
'
|
||||
|
||||
@@ -3,49 +3,49 @@ complete -c mono -s h -l help -d 'Show help'
|
||||
complete -c mono -s V -l version -a number -f -d 'Show version'
|
||||
|
||||
complete -c mono -l aot -a '(__fish_append , \\
|
||||
asmonly\t"Instruct the AOT compiler to output assembly code instead of an object file" \\
|
||||
bind-to-runtime-version\t"Force the generated AOT files to be bound to the runtime version of the compiling Mono" \\
|
||||
data-outfile\t"Instruct the AOT code generator to output certain data constructs into a separate file" \\
|
||||
direct-icalls\t"Invoke icalls directly instead of going through the operating system symbol lookup operation" \\
|
||||
direct-pinvoke\t"Invoke PInvoke methods directly instead of going through the operating system symbol lookup operation" \\
|
||||
dwarfdebug\t"Instruct the AOT compiler to emit DWARF debugging information" \\
|
||||
full\t"Create binaries which can be used with the --full-aot option" \\
|
||||
hybrid\t"Create binaries which can be used with the --hybrid-aot option" \\
|
||||
llvm\t"Perform AOT with the LLVM backend instead of the Mono backend where possible" \\
|
||||
llvmonly\t"Perform AOT with the LLVM backend exclusively and the Mono backend will not be used" \\
|
||||
llvmopts\t"Specify flags to the built-in set of flags passed to the LLVM optimizer" \\
|
||||
llvmllc\t"Specify flags to the built-in set of flags passed to the LLVM static compiler (llc)" \\
|
||||
mcpu\t"Allow AOT mode to use all instructions current CPU supports" \\
|
||||
dedup-include\t"Pass compilation where we compile the methods that we had previously skipped" \\
|
||||
info\t"Print the architecture the AOT in this copy of Mono targets and quit" \\
|
||||
interp\t"Generate all required wrappers, so that it is possible to run --interpreter without any code generation at runtime" \\
|
||||
depfile\t"Output a gcc -M style dependency file" \\
|
||||
ld-flags\t"Specify flags to pass to the C linker (if the current AOT mode calls for invoking it)" \\
|
||||
llvm-path\t"Same for the llvm tools \\\'opt\\\' and \\\'llc\\\'" \\
|
||||
msym-dir\t"Instruct the AOT compiler to generate offline sequence points .msym files" \\
|
||||
mtriple\t"Use the GNU style target triple <TRIPLE> to determine some code generation options" \\
|
||||
nimt-trampolines\t"Precreate IMT trampolines in the AOT image" \\
|
||||
ngsharedvt-trampolines\t"Precreate value type generic sharing trampolines in the AOT image" \\
|
||||
nodebug\t"Instruct the AOT compiler to not output any debugging information" \\
|
||||
no-direct-calls\t"Prevent the AOT compiler from generating direct calls to a method" \\
|
||||
nrgctx-trampolines\t"Precreate generic sharing trampolines in the AOT image" \\
|
||||
nrgctx-fetch-trampolines\t"Precreate generic sharing fetch trampolines in the AOT image" \\
|
||||
ntrampolines\t"Precreate method trampolines in the AOT image" \\
|
||||
outfile\t"Instruct the AOT compiler to save the output to the specified file" \\
|
||||
print-skipped-methods\t"Output the skipped methods to the console" \\
|
||||
profile\t"Specify a file to use for profile-guided optimization" \\
|
||||
profile-only\t"" \\
|
||||
readonly-value\t"Override the value of a static readonly field" \\
|
||||
save-temps,keep-temps\t"Instruct the AOT compiler to keep temporary files" \\
|
||||
soft-debug\t"Instruct the compiler to generate sequence point checks" \\
|
||||
static\t"Create an ELF object file (.o) or .s file which can be statically linked into an executable when embedding the mono runtime" \\
|
||||
stats\t"Print various stats collected during AOT compilation" \\
|
||||
temp-path\t"Specify path to store temporary files created during AOT compilation" \\
|
||||
threads\t"Use multiple threads when compiling the methods" \\
|
||||
tool-prefix\t"Prepend <PREFIX> to the name of tools ran by the AOT compiler" \\
|
||||
verbose\t"Print additional information about type loading failures" \\
|
||||
write-symbols,no-write-symbols\t"Instruct the AOT compiler to emit (or not emit) debug symbol information" \\
|
||||
no-opt\t"Instruct the AOT compiler tot no call opt when compiling with LLVM")' \
|
||||
asmonly\t"Instruct the AOT compiler to output assembly code instead of an object file" \\
|
||||
bind-to-runtime-version\t"Force the generated AOT files to be bound to the runtime version of the compiling Mono" \\
|
||||
data-outfile\t"Instruct the AOT code generator to output certain data constructs into a separate file" \\
|
||||
direct-icalls\t"Invoke icalls directly instead of going through the operating system symbol lookup operation" \\
|
||||
direct-pinvoke\t"Invoke PInvoke methods directly instead of going through the operating system symbol lookup operation" \\
|
||||
dwarfdebug\t"Instruct the AOT compiler to emit DWARF debugging information" \\
|
||||
full\t"Create binaries which can be used with the --full-aot option" \\
|
||||
hybrid\t"Create binaries which can be used with the --hybrid-aot option" \\
|
||||
llvm\t"Perform AOT with the LLVM backend instead of the Mono backend where possible" \\
|
||||
llvmonly\t"Perform AOT with the LLVM backend exclusively and the Mono backend will not be used" \\
|
||||
llvmopts\t"Specify flags to the built-in set of flags passed to the LLVM optimizer" \\
|
||||
llvmllc\t"Specify flags to the built-in set of flags passed to the LLVM static compiler (llc)" \\
|
||||
mcpu\t"Allow AOT mode to use all instructions current CPU supports" \\
|
||||
dedup-include\t"Pass compilation where we compile the methods that we had previously skipped" \\
|
||||
info\t"Print the architecture the AOT in this copy of Mono targets and quit" \\
|
||||
interp\t"Generate all required wrappers, so that it is possible to run --interpreter without any code generation at runtime" \\
|
||||
depfile\t"Output a gcc -M style dependency file" \\
|
||||
ld-flags\t"Specify flags to pass to the C linker (if the current AOT mode calls for invoking it)" \\
|
||||
llvm-path\t"Same for the llvm tools \\\'opt\\\' and \\\'llc\\\'" \\
|
||||
msym-dir\t"Instruct the AOT compiler to generate offline sequence points .msym files" \\
|
||||
mtriple\t"Use the GNU style target triple <TRIPLE> to determine some code generation options" \\
|
||||
nimt-trampolines\t"Precreate IMT trampolines in the AOT image" \\
|
||||
ngsharedvt-trampolines\t"Precreate value type generic sharing trampolines in the AOT image" \\
|
||||
nodebug\t"Instruct the AOT compiler to not output any debugging information" \\
|
||||
no-direct-calls\t"Prevent the AOT compiler from generating direct calls to a method" \\
|
||||
nrgctx-trampolines\t"Precreate generic sharing trampolines in the AOT image" \\
|
||||
nrgctx-fetch-trampolines\t"Precreate generic sharing fetch trampolines in the AOT image" \\
|
||||
ntrampolines\t"Precreate method trampolines in the AOT image" \\
|
||||
outfile\t"Instruct the AOT compiler to save the output to the specified file" \\
|
||||
print-skipped-methods\t"Output the skipped methods to the console" \\
|
||||
profile\t"Specify a file to use for profile-guided optimization" \\
|
||||
profile-only\t"" \\
|
||||
readonly-value\t"Override the value of a static readonly field" \\
|
||||
save-temps,keep-temps\t"Instruct the AOT compiler to keep temporary files" \\
|
||||
soft-debug\t"Instruct the compiler to generate sequence point checks" \\
|
||||
static\t"Create an ELF object file (.o) or .s file which can be statically linked into an executable when embedding the mono runtime" \\
|
||||
stats\t"Print various stats collected during AOT compilation" \\
|
||||
temp-path\t"Specify path to store temporary files created during AOT compilation" \\
|
||||
threads\t"Use multiple threads when compiling the methods" \\
|
||||
tool-prefix\t"Prepend <PREFIX> to the name of tools ran by the AOT compiler" \\
|
||||
verbose\t"Print additional information about type loading failures" \\
|
||||
write-symbols,no-write-symbols\t"Instruct the AOT compiler to emit (or not emit) debug symbol information" \\
|
||||
no-opt\t"Instruct the AOT compiler tot no call opt when compiling with LLVM")' \
|
||||
-f -d 'Precompile CIL code to native code'
|
||||
|
||||
complete -c mono -l aot-path -d 'Show additional directories to search for AOT images'
|
||||
@@ -58,13 +58,13 @@ complete -c mono -l attach -a disable -f -d 'Disable the attach functionality'
|
||||
complete -c mono -l config -d 'Read configuration from file instead of using default one'
|
||||
|
||||
complete -c mono -l debugger-agent -a '(__fish_append , \\
|
||||
address\t"Specify the IP address where your debugger client is listening to" \\
|
||||
loglevel\t"Specify the diagnostics log level for" \\
|
||||
logfile\t"Instruct the AOT code generator to output certain data constructs into a separate file" \\
|
||||
server\t"Specify the file where the log will be stored, it defaults to standard output" \\
|
||||
setpgid\t"If set to yes, Mono will call setpgid(0, 0) on startup" \\
|
||||
suspend\t"Suspend the vm on startup until it connects successfully to a debugger front end" \\
|
||||
transport\t"Specify the transport that the debugger will use to communicate")' \
|
||||
address\t"Specify the IP address where your debugger client is listening to" \\
|
||||
loglevel\t"Specify the diagnostics log level for" \\
|
||||
logfile\t"Instruct the AOT code generator to output certain data constructs into a separate file" \\
|
||||
server\t"Specify the file where the log will be stored, it defaults to standard output" \\
|
||||
setpgid\t"If set to yes, Mono will call setpgid(0, 0) on startup" \\
|
||||
suspend\t"Suspend the vm on startup until it connects successfully to a debugger front end" \\
|
||||
transport\t"Specify the transport that the debugger will use to communicate")' \
|
||||
-f -d 'Use a debugging agent inside the Mono runtime and connect it to a client user interface'
|
||||
|
||||
complete -c mono -l desktop \
|
||||
@@ -84,30 +84,30 @@ complete -c mono -l llvm -d 'Use the LLVM optimization and code generation engin
|
||||
complete -c mono -l ffast-math -d 'Use Mono and LLVM aggressive floating point optimizations'
|
||||
|
||||
complete -c mono -s o -l optimize -a '(__fish_append , \\
|
||||
abcrem\t"Array bound checks removal" \\
|
||||
all\t"Turn on all optimizations" \\
|
||||
aot\t"Usage of Ahead Of Time compiled code" \\
|
||||
branch\t"Branch optimizations" \\
|
||||
cfold\t"Constant folding" \\
|
||||
cmov\t"Conditional moves [arch-dependency]" \\
|
||||
deadce\t"Dead code elimination" \\
|
||||
consprop\t"Constant propagation" \\
|
||||
copyprop\t"Copy propagation" \\
|
||||
fcmov\t"Fast x86 FP compares [arch-dependency]" \\
|
||||
float32\t"Perform 32-bit float arithmetic using 32-bit operations" \\
|
||||
gshared\t"Enable generic code sharing" \\
|
||||
inline\t"Inline method calls" \\
|
||||
intrins\t"Intrinsic method implementations" \\
|
||||
linears\t"Linear scan global reg allocation" \\
|
||||
leaf\t"Leaf procedures optimizations" \\
|
||||
loop\t"Loop related optimizations" \\
|
||||
peephole\t"Peephole postpass" \\
|
||||
precomp\t"Precompile all methods before executing Main" \\
|
||||
sched\t"Instruction scheduling" \\
|
||||
shared\t"Emit per-domain code" \\
|
||||
sse2\t"SSE2 instructions on x86 [arch-dependency]" \\
|
||||
tailc\t"Tail recursion and tail calls" \\
|
||||
transport\t"Specify the transport that the debugger will use to communicate")' \
|
||||
abcrem\t"Array bound checks removal" \\
|
||||
all\t"Turn on all optimizations" \\
|
||||
aot\t"Usage of Ahead Of Time compiled code" \\
|
||||
branch\t"Branch optimizations" \\
|
||||
cfold\t"Constant folding" \\
|
||||
cmov\t"Conditional moves [arch-dependency]" \\
|
||||
deadce\t"Dead code elimination" \\
|
||||
consprop\t"Constant propagation" \\
|
||||
copyprop\t"Copy propagation" \\
|
||||
fcmov\t"Fast x86 FP compares [arch-dependency]" \\
|
||||
float32\t"Perform 32-bit float arithmetic using 32-bit operations" \\
|
||||
gshared\t"Enable generic code sharing" \\
|
||||
inline\t"Inline method calls" \\
|
||||
intrins\t"Intrinsic method implementations" \\
|
||||
linears\t"Linear scan global reg allocation" \\
|
||||
leaf\t"Leaf procedures optimizations" \\
|
||||
loop\t"Loop related optimizations" \\
|
||||
peephole\t"Peephole postpass" \\
|
||||
precomp\t"Precompile all methods before executing Main" \\
|
||||
sched\t"Instruction scheduling" \\
|
||||
shared\t"Emit per-domain code" \\
|
||||
sse2\t"SSE2 instructions on x86 [arch-dependency]" \\
|
||||
tailc\t"Tail recursion and tail calls" \\
|
||||
transport\t"Specify the transport that the debugger will use to communicate")' \
|
||||
-f -d 'Use optimizations'
|
||||
|
||||
complete -c mono -l response -d 'Use a response file'
|
||||
@@ -119,9 +119,9 @@ complete -c mono -l verify-all \
|
||||
|
||||
# Development options
|
||||
complete -c mono -l debug -a '(__fish_append , \\
|
||||
casts\t"Produce a detailed error when throwing a InvalidCastException" \\
|
||||
mdb-optimizations\t"Disable some JIT optimizations which are usually only disabled when running inside the debugger" \\
|
||||
gdb\t"Generate and register debugging information with gdb")' \
|
||||
casts\t"Produce a detailed error when throwing a InvalidCastException" \\
|
||||
mdb-optimizations\t"Disable some JIT optimizations which are usually only disabled when running inside the debugger" \\
|
||||
gdb\t"Generate and register debugging information with gdb")' \
|
||||
-f -d 'Use the debugging mode in the runtime'
|
||||
|
||||
complete -c mono -l profile -f -d 'Use a profiler module with the given arguments'
|
||||
|
||||
@@ -19,9 +19,13 @@ complete -c mtr -s p -l split -d 'Split output'
|
||||
complete -c mtr -s n -l no-dns -d 'Do not resolve host names'
|
||||
complete -c mtr -s b -l show-ips -d 'Show IP numbers and host names'
|
||||
complete -c mtr -s o -l order -d 'Select output fields' -x
|
||||
complete -c mtr -s y -l ipinfo -d 'Select IP information in output' -x -a \
|
||||
'0\t"AS number" 1\t"IP prefix" 2\t"Country code" 3\t"RIR organization"\
|
||||
4\t"Allocation date of the IP prefix"'
|
||||
complete -c mtr -s y -l ipinfo -d 'Select IP information in output' -x -a '
|
||||
0\t"AS number"
|
||||
1\t"IP prefix"
|
||||
2\t"Country code"
|
||||
3\t"RIR organization"
|
||||
4\t"Allocation date of the IP prefix"
|
||||
'
|
||||
complete -c mtr -s z -l aslookup -d 'Display AS number'
|
||||
complete -c mtr -s i -l interval -d 'ICMP echo request interval (sec)' -x
|
||||
complete -c mtr -s c -l report-cycles -d 'Set the number of pings sent' -x
|
||||
|
||||
@@ -3,15 +3,16 @@ set -l uname (uname -s)
|
||||
## GNU mv
|
||||
if mv --version >/dev/null 2>/dev/null
|
||||
# --backup requires an argument, -b does not accept an argument
|
||||
complete -c mv -l backup -r -d "Backup each existing destination file" \
|
||||
-x -ka "none\t'Never make backups'
|
||||
off\t'Never make backups'
|
||||
numbered\t'Make numbered backups'
|
||||
t\t'Make numbered backups'
|
||||
existing\t'Numbered backups if any exist, else simple'
|
||||
nil\t'Numbered backups if any exist, else simple'
|
||||
simple\t'Make simple backups'
|
||||
never\t'Make simple backups'"
|
||||
complete -c mv -l backup -r -d "Backup each existing destination file" -x -ka "
|
||||
none\t'Never make backups'
|
||||
off\t'Never make backups'
|
||||
numbered\t'Make numbered backups'
|
||||
t\t'Make numbered backups'
|
||||
existing\t'Numbered backups if any exist, else simple'
|
||||
nil\t'Numbered backups if any exist, else simple'
|
||||
simple\t'Make simple backups'
|
||||
never\t'Make simple backups'
|
||||
"
|
||||
complete -c mv -s b -d "Backup each existing destination file"
|
||||
complete -c mv -s f -l force -d "Don't prompt to overwrite"
|
||||
complete -c mv -s i -l interactive -d "Prompt to overwrite"
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
complete -c ps2pdf -k -x -a "(
|
||||
__fish_complete_suffix .ps
|
||||
)"
|
||||
complete -c ps2pdf -k -x -a "(__fish_complete_suffix .ps)"
|
||||
|
||||
@@ -33,9 +33,10 @@ complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a unescape
|
||||
complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] escape; or contains -- (commandline -xpc)[2] unescape" -s n -l no-quoted -d "Escape with \\ instead of quotes"
|
||||
complete -x -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] escape; or contains -- (commandline -xpc)[2] unescape" -l style -d "Specify escaping style" -xa "
|
||||
(printf '%s\t%s\n' script 'For use in scripts' \
|
||||
var 'For use as a variable name' \
|
||||
regex 'For string match -r, string replace -r' \
|
||||
url 'For use as a URL')"
|
||||
var 'For use as a variable name' \
|
||||
regex 'For string match -r, string replace -r' \
|
||||
url 'For use as a URL')
|
||||
"
|
||||
complete -f -c string -n "test (count (commandline -xpc)) -lt 2" -a match
|
||||
complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] match" -s n -l index -d "Report index, length of match"
|
||||
complete -f -c string -n "test (count (commandline -xpc)) -ge 2" -n "contains -- (commandline -xpc)[2] match" -s v -l invert -d "Report only non-matches"
|
||||
|
||||
@@ -18,7 +18,7 @@ function __fish_complete_sv_list_services
|
||||
set -q svdir[1]; or return
|
||||
set -l services (path basename -- $svdir[1]/*)
|
||||
set -l sv_status (sv status $services 2>/dev/null |
|
||||
string replace -ar ';.*$' '')
|
||||
string replace -ar ';.*$' '')
|
||||
and string replace -r "^(\w+: )(.*?):" '$2\t$1' $sv_status
|
||||
or printf "%s\n" $services
|
||||
end
|
||||
|
||||
@@ -14,8 +14,9 @@ complete -c update-eix-remote -s o -d "Use the given PATH as $OVERLAYPARENT"
|
||||
# Subcommands
|
||||
set -l subcmds "
|
||||
"
|
||||
complete -c update-eix-remote -xa \
|
||||
'update\t"Fetch the eix-caches of some layman overlays into a temporary file resp. into FILE and add them to the eix database"
|
||||
fetch\t"Only fetch the overlays into FILE"
|
||||
add\t"Only add the overlays from FILE to the eix database"
|
||||
remove\t"Remove all temporarily added virtual overlays from the eix database"'
|
||||
complete -c update-eix-remote -xa '
|
||||
update\t"Fetch the eix-caches of some layman overlays into a temporary file resp. into FILE and add them to the eix database"
|
||||
fetch\t"Only fetch the overlays into FILE"
|
||||
add\t"Only add the overlays from FILE to the eix database"
|
||||
remove\t"Remove all temporarily added virtual overlays from the eix database"
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user