Fabian Homborg
3941ded193
completions/rustup: Remove errant complete -c
...
This was an oversight in 7fb3880b96
, and would have spewed the existing rustup completions if this file was sourced twice (which probably won't happen given autoloading, to be fair).
2022-03-10 15:14:16 +01:00
Missu
ff882d8326
Add asd
completion
...
This is `anything-sync-daemon`
2022-03-05 20:49:43 +01:00
Missu
1da25fd916
Add completion for rc-status
( #8757 )
...
`rc-status` is part of OpenRC
2022-03-05 20:49:21 +01:00
lelgenio
02c34a30eb
completions/sv.fish: update completion for sv, a part of runit.
...
This should fix finding the correct active svdir in most cases.
Search for services in the following order:
$SVDIR - User defined override
/run/runit/runsvdir/current - Value patched in by Void[1]
/run/runit/service - Value patched in by Artix[2]
/etc/service - Value patched in by Debian[3]
/services - Default value for runit[4]
Also don't use /etc for searching since it is not guaranteed that there
is an instance of runsvdir running in that directory.
Finally return quietly if there is no svdir.
[1] 75403cef76/srcpkgs/runit/template (L29)
[2] c9d691ce86/x86_64/core/PKGBUILD (L9)
[3] https://sources.debian.org/src/runit/2.1.2-41/debian/patches/0001-default-directory-for-services-on-Debian-is-etc-servi.diff/
[4] hard-coded in sv.c
Closes #8738
2022-03-02 22:14:50 +01:00
exploide
e0bc944d5c
added kubectl completion
2022-02-19 20:03:45 +01:00
Marcin Zajączkowski
d485ed3d87
Add gnome-extensions completion
2022-02-17 20:47:14 +01:00
Jose Riha
9d6b8266f4
Fix typo (fist -> first)
2022-02-15 14:20:05 +01:00
Kevin F. Konrad
707c7a7f1e
replace helm completions with autogenerated script
...
Helm 3 provides an autogenerated completion since version 3.4.0.
The previous implementation is replaced by this because it was specific to the
now-deprecated helm 2.
The completions appear to be fully featured including descriptions and
completion for dynamic arguments such as namespaces and releases.
2022-02-13 16:52:30 +01:00
Johannes Altmanninger
47b0d0c293
Make __fish_is_nth_token and __fish_nth_token private again
...
Their names are not perfect, so let's keep them as internal functions,
until we figure out how/if we want to expose this.
This reverts 0445126c2
(Undunder __fish_is_nth_token, 2021-06-29) (but I
did it without "git revert").
Closes #8008
2022-02-13 10:45:38 +01:00
Pierrick Guillaume
2164d40b73
Allow better completion for git submodules ( #8716 )
...
* Allow better completion for git submodules
* Add change for git completion in changelog
* Fix git submodule absobgitdirs description
2022-02-11 15:56:14 +01:00
Marius Müller
920e89e2ac
Extend dnf completions
...
to include syntax for the dnf-plugin system-upgrade
2022-02-11 09:23:01 +01:00
Mahmoud Al-Qudsi
6c81e2a627
zfs: Complete values for all properties
...
This patch adds completions for the values of properties, emitted once the
current token matches the name of a zfs property in full, for the various places
where such a property can be assigned.
e.g.
zfs set canmoun<TAB> continues to only provide "canmount" as a completion, but
zfs set canmount<TAB> will provide a list of all valid values for the property.
The existing code made an attempt to complete the values for the specific case
of `zfs set PROP=` but I could never get it to work for me under FreeBSD, so I
presume it was Linux-specific. This patch should be cross-platform and extends
the completions to anywhere where a property may be set.
2022-02-09 14:24:06 -06:00
Mahmoud Al-Qudsi
b3142a29e7
Fix zfs add
completions
2022-02-08 14:17:00 -06:00
Mahmoud Al-Qudsi
5b7dd5e806
Fix zpool attach
completions
...
The previous behavior vs the current (hopefully ideal) behavior:
* zpool attach [lists pools and devices - should list only pools]
* zpool attach tank [lists pools and devices - should list only devices already
part of pool "tank"]
* zpool attach tank da1 [lists pools and devices - should list only devices not
already part of pool "tank" or any pool, depending on -f flag to attach]
2022-02-08 14:17:00 -06:00
Mahmoud Al-Qudsi
8d386a27f3
zfs completions: Factor out OpenZFS features and support
...
As of FreeBSD 13 (released April 2021), FreeBSD has rebased its zfs support on
top of the OpenZFS distribution previously used only/chiefly by Linux;
accordingly, it has gained support for some previously Linux-only completions.
This patch changes some completions previously predicated on a Linux ZFS
installation to the presence of an OpenZFS installation. Note that there
continue to be (and probably always will be) separate Linux-only and
FreeBSD-only completions (and not just when it comes to interacting with the
device subsystem, etc).
2022-02-08 14:17:00 -06:00
Tristan McLain
06c474da2e
Shortened quilt definitions ( #8667 )
...
* shortened quilt function definitions
* fixed some changes with quilt definitions
Co-authored-by: Tristan McLain <tristan@Tristans-Laptop.localdomain>
2022-02-08 20:19:03 +01:00
Johannes Altmanninger
e8372db781
completions/set: only show foreground/background colors if relevant
...
Cursory experiments reveal that there are only three color options where
the background color is not ignored (though I didn't check all of them).
For these three options, the foreground color is ignored. Similar for
bold/italics/underline.
Teach set completions to only show the colors that won't be ignored.
Unrelated observation: we write
-a '--background=(set_color --print-colors)'
instead of
-l background -a '(set_color --print-colors)'
because we want all colors to show straight away (there are no other
meaningful arguments).
2022-02-07 20:53:55 +01:00
Johannes Altmanninger
1a0fed2800
completions/set: fix completion of locales
...
4b018a760
(set completions: add more special variables, fix colors, 2021-12-13)
changed a global variable to a local, which is no longer visible to this
function. Fix this, so "set LANG <TAB>" works again.
2022-02-07 20:53:55 +01:00
Johannes Altmanninger
13edce3671
share/**.fish: reformat with fish_indent
2022-02-07 20:53:55 +01:00
Jakub Panek
964b7a729a
completions(apk.fish): remove non-existent short flags, add prune flag
...
Signed-off-by: Jakub Panek <me@panekj.dev>
2022-02-06 08:41:56 +01:00
Emily Grace Seville
1b12719364
Extend mono completions
...
Work on mono.fish
- rewrite runtime option completions
Add new mono tools:
- gacutil
- xsp
- mkbundle
- ilasm
- monodis
- ikdasm
- monop
- sqlsharp
- gendarme
- csharp
Closes #8452
2022-02-05 20:09:45 +01:00
Aaron Gyes
6b586d3e09
non-GNU id
completions
2022-02-01 00:33:11 -08:00
Aaron Gyes
8e0d192f50
mdfind: Update with shorter descriptions
2022-01-31 23:38:19 -08:00
Aaron Gyes
c75603c475
env completions: Update for FreeBSD env
...
This isn't perfect, NetBSD for example takes -0 but not -v, -P,
or -S.
2022-01-31 23:12:30 -08:00
Aaron Gyes
12a4091774
df completions: shorten a description
2022-01-31 22:33:16 -08:00
Aaron Gyes
1d9f34e8bf
cut completions: fix for BSD/macOS
...
Sharpened the pencil on a few description strings as well.
2022-01-31 22:30:14 -08:00
Aaron Gyes
d40f805d94
cp completions: update for current macOS
...
macOS has learned a few FreeBSD flags since I put this together:
-s, -x, -l
2022-01-31 22:15:53 -08:00
Aaron Gyes
9ec359d133
update chown completions
...
Add completions that are correct on darwin and probably bsd.
Add missing -H, -L, -P completions to GNU chown.
Remove errant GNU completion claiming -h is short for --help.
2022-01-31 21:56:02 -08:00
Aaron Gyes
56a4920856
chgrp, chmod completions: pipe both stderr and stdout to /dev/null
...
Seems like --version output writes to stdout on the GNU utils.
2022-01-31 21:29:05 -08:00
Aaron Gyes
e575a63232
chmod completions for non-GNU chmod
...
And chgrp fixup.
2022-01-30 19:53:48 -08:00
Johannes Altmanninger
63960f646b
completions/ln: sort flags to match the GNU ln man page
2022-01-30 15:01:29 +01:00
NextAlone
9121e14279
Add ln completion -r --relative
2022-01-30 14:34:11 +01:00
Aaron Gyes
7c022753cf
chgrp: do not-GNU
...
Add versions for macOS.
2022-01-29 22:49:48 -08:00
Aaron Gyes
c3e5cc5652
macOS cat completions: add the -l lock option
2022-01-29 22:31:09 -08:00
Aaron Gyes
cdb81e4001
basename: add completions
...
simple ones for the two options mine supports
2022-01-29 22:24:18 -08:00
NextAlone
76bde0839f
Fix gradle tasks completion ( #8672 )
...
The regex for task names was a bit off, so
- include uppercase letters, to support `TMessagesProj:assembleMiniRelease`
- don't include characters like `[]` (which happen to lie between ASCII `A` and `z`)
- include numbers, which are presumably valid in an identifier
- explicitly include the optional ` - ` bit in the regex
2022-01-29 11:27:00 +01:00
Aaron Gyes
77fa3df7dc
killall completions: let pager combine signal numbers and names
...
Before:
https://user-images.githubusercontent.com/291142/151565480-80eccc8e-2c00-4e5a-a718-a5b51f224e14.png
After:
https://user-images.githubusercontent.com/291142/151569789-aa2d94f8-4bcc-4c60-a62f-54ca19b58b12.png
2022-01-28 07:02:02 -08:00
ridiculousfish
b8fd6b5f31
Run fish_indent over new Windows completions
2022-01-26 22:02:23 -08:00
EmilySeville7cfg
cdae6536fd
Standardize complex commands:
...
- attributes
- reg
- schtasks
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
78bd0f9cdb
Prettify all commands:
...
- rename *list* functions to *print*
- use short options everywhere
- delegate less work to functions
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
7ae194cb03
Rename __fish_list_windows_drives function:
...
- new name is __fish_print_windows_drives
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
c5a8e700bb
Replace "generate" to "complete" in functions
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
f047ef4ea2
Remove __fish_generate_password function
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
72ce745f60
Use --description for clean command
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
bc52198b5e
Simplify choice completion
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
3f7cfdd144
Concise option/value descriptions
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
d3ad5fe398
Remove complete for internal cmd commands
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
7bf82bfd32
Update __schtasks_list_tasks function
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
1cd0726913
Clean-up md/rd completions:
...
- use __fish_list_windows_drives
- hide dependent options
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
e22e8932a5
Clean-up schtasks completion:
...
- conditionally show /u, /p options
- use __fish_list_windows_users function
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
f38cba9a2d
Clean-up attrib completion:
...
- remove __fish_list_windows_drives call
- hide /d, /l without /s
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
cf59ef1435
Fix setx completion:
...
- more accurate hints for /s, /u, /p opts
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
2683dc4af8
Clean-up vol completion:
...
- use __fish_list_windows_drives
- reformat
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
4d3039059d
Reformat cmd completion
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
430cae58bf
Clean-up cleanmgr completion:
...
- use __fish_list_windows_drives
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
1ee3f1fc8c
Clean-up attributes completion:
...
- distribute code to several functions
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
a2ae67f629
Clean-up attrib completion:
...
- use __fish_list_windows_drives
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
fbbf498afb
Enhance setx completion:
...
- more accurate hints
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
05ba662dcd
Fix reg completion:
...
- /s description fix
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
cd64ed5d27
Fix awk command for cmdkey
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
e118bde5c8
Enhance cmdkey completion:
...
- error fixes
- more accurate hints
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
2c55213b81
Replace ! with not for attributes
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
5f1384c6c3
Distribute code into several functions for reg
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
ee74ebd314
Completion for powershell command
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
c7534b2dd5
Completion for schtasks command
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
16c1850ae0
Complete for md command
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
c3f928b2fa
Hide /-y, /y when needed for copy command
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
61a77ef9fc
Hide /c, /k when needed for cmd command
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
cd991d5936
/d support for cleanmgr command
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
656d3479dc
Drive suggestions for attrib command
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
e137df393a
Better /u, /p support for setx command
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
76e200e3f5
Completions for cmdkey command
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
9de5e1918f
+/- hints for attrib command
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
5574d13622
Fix setx completion
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
da1fdc758b
Fix reg completion
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
1bd01436d9
Completion for setx command
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
4b6e4fb7f0
Remove unused var in reg.fish
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
3a89363132
Completion for reg command
2022-01-26 21:37:39 -08:00
EmilySeville7cfg
080c215d48
Completion for pause command
2022-01-26 21:37:38 -08:00
EmilySeville7cfg
529f82a990
Clean-up all completions
2022-01-26 21:37:38 -08:00
EmilySeville7cfg
7c2e05f223
Completion for forfiles command
2022-01-26 21:37:38 -08:00
EmilySeville7cfg
2bd7daec20
Completion for copy command
2022-01-26 21:37:38 -08:00
EmilySeville7cfg
3c943d2836
Completion for comp command
2022-01-26 21:37:38 -08:00
EmilySeville7cfg
1a005a76ef
Completion for ver command
2022-01-26 21:37:38 -08:00
EmilySeville7cfg
36eb310732
Completion for vol command
2022-01-26 21:37:38 -08:00
EmilySeville7cfg
8092d40cb7
Completion for cmd command
2022-01-26 21:37:38 -08:00
EmilySeville7cfg
064fd61bc4
Completion for cls command
2022-01-26 21:37:38 -08:00
EmilySeville7cfg
555166425b
Completion for cleanmgr command
2022-01-26 21:37:38 -08:00
EmilySeville7cfg
bedb20e4b3
Completion for clean command
2022-01-26 21:37:38 -08:00
EmilySeville7cfg
63165085e1
Completion for choice command
2022-01-26 21:37:38 -08:00
EmilySeville7cfg
bf72247e1a
Completion for attributes command
2022-01-26 21:37:38 -08:00
EmilySeville7cfg
4f07bb8824
Completion for attrib
2022-01-26 21:37:38 -08:00
Spenser Black
eb7603f1c6
Make __fish_git_is_rebasing
respect git -C
...
Co-authored-by: Johannes Altmanninger <aclopte@gmail.com>
2022-01-26 18:43:57 +01:00
Spenser Black
3b690214dc
Add git checkout --[no-]recurse-submodules
2022-01-26 18:43:57 +01:00
Spenser Black
03b3891d73
Add git rebase --edit-todo
completion
2022-01-26 18:43:57 +01:00
Spenser Black
3575bc6c19
Hide interactive rebase options when not rebasing
...
`--abort`, `--skip`, and `--continue` are hidden when a rebase isn't in
progress.
2022-01-26 18:43:57 +01:00
Spenser Black
4ae29ec1fe
Add --prune
option to git fetch
and git pull
2022-01-26 18:43:57 +01:00
Spenser Black
2fcea496a9
Complete only filenames after git show --
2022-01-26 18:43:57 +01:00
EmilySeville7cfg
36699d49d8
Specify program versions
2022-01-23 21:52:17 +08:00
EmilySeville7cfg
f881f70992
Completion for matlab command
2022-01-23 21:52:17 +08:00