mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-10 01:21:16 -03:00
Compare commits
292 Commits
Integratio
...
Integratio
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80394ea4e3 | ||
|
|
445fba4464 | ||
|
|
9cebf5c9b6 | ||
|
|
119d76bc0f | ||
|
|
cc6df6d17f | ||
|
|
77e2fa343d | ||
|
|
b864074288 | ||
|
|
c6f3b24dc5 | ||
|
|
d24b1ef229 | ||
|
|
d655f40d43 | ||
|
|
baf5102797 | ||
|
|
7b595b2e2e | ||
|
|
f82e29d320 | ||
|
|
d2e1ffc192 | ||
|
|
a6c00ee637 | ||
|
|
e2599545f2 | ||
|
|
98662ae076 | ||
|
|
72d372cca1 | ||
|
|
e2df29447f | ||
|
|
9b9cfc207f | ||
|
|
b7b20e9fac | ||
|
|
fada4f2e01 | ||
|
|
2655d9a3fa | ||
|
|
c3aefc581f | ||
|
|
36c8746870 | ||
|
|
6cd1b23502 | ||
|
|
1f9226aaa4 | ||
|
|
6da36f4ae5 | ||
|
|
8ed052079f | ||
|
|
95f6803241 | ||
|
|
47bb07eda3 | ||
|
|
c31e194120 | ||
|
|
001f797f80 | ||
|
|
b91723dab6 | ||
|
|
0e4d088b11 | ||
|
|
20d36cd9a2 | ||
|
|
be0ea9862c | ||
|
|
d6833edf54 | ||
|
|
5c532ace5a | ||
|
|
3b9b84101a | ||
|
|
4c616c56b2 | ||
|
|
8a447355a2 | ||
|
|
58d1467fb7 | ||
|
|
8508cc50b0 | ||
|
|
1b3f7cf2e5 | ||
|
|
6d9c32728e | ||
|
|
e0282d0174 | ||
|
|
dc90093f8b | ||
|
|
bfe47e5979 | ||
|
|
99254d74fe | ||
|
|
0af930d992 | ||
|
|
7c20fe8cc6 | ||
|
|
25f16f0bfd | ||
|
|
1562a6b99e | ||
|
|
1af5fb64b7 | ||
|
|
e2ab7397ac | ||
|
|
e613adda69 | ||
|
|
80cb735cbe | ||
|
|
c0cc78cb54 | ||
|
|
5b1b466f97 | ||
|
|
4d858b3f88 | ||
|
|
b28eae8be9 | ||
|
|
f6676350a7 | ||
|
|
b10611091f | ||
|
|
c1f1a92b99 | ||
|
|
25ae69dac1 | ||
|
|
963166c7ed | ||
|
|
0acf05eca0 | ||
|
|
a307ca3680 | ||
|
|
3ac531785e | ||
|
|
b11db052cb | ||
|
|
36ed2b79c2 | ||
|
|
03198b7fd3 | ||
|
|
7370e38069 | ||
|
|
ba57704276 | ||
|
|
65beb9307a | ||
|
|
afc672e52f | ||
|
|
09ac6f8703 | ||
|
|
6871f5d6e4 | ||
|
|
3a86ce87c0 | ||
|
|
7d1090b6de | ||
|
|
a976589e93 | ||
|
|
ced76a4576 | ||
|
|
83185774db | ||
|
|
6a7d93d9c5 | ||
|
|
2fe8b5d313 | ||
|
|
7008e0eec2 | ||
|
|
8707c05b7b | ||
|
|
7c21e9c36e | ||
|
|
ecf8ac6f66 | ||
|
|
6df2fac132 | ||
|
|
f116a81250 | ||
|
|
ef43069a06 | ||
|
|
2d1a6561e1 | ||
|
|
51d5764fb2 | ||
|
|
1ab24e4048 | ||
|
|
f7ce49a3a9 | ||
|
|
8319011f24 | ||
|
|
b12c36e72d | ||
|
|
c54d48f3f9 | ||
|
|
446a41e23a | ||
|
|
95c3a4045b | ||
|
|
6295e32f25 | ||
|
|
313b2993f5 | ||
|
|
112178a2ac | ||
|
|
b2ef44a277 | ||
|
|
4a618f14f1 | ||
|
|
f471810408 | ||
|
|
a51437ec83 | ||
|
|
09986f5563 | ||
|
|
c0de5dd804 | ||
|
|
efd5db4a85 | ||
|
|
8d5d0c24aa | ||
|
|
255653bf32 | ||
|
|
80000ef4d5 | ||
|
|
a7b96fc4ab | ||
|
|
657c132dee | ||
|
|
f775ab6ef4 | ||
|
|
66401f8575 | ||
|
|
3444e1cbf3 | ||
|
|
be75769564 | ||
|
|
572374333d | ||
|
|
c883d73145 | ||
|
|
211a3ceee1 | ||
|
|
64bff1a51c | ||
|
|
e1c2a4e50c | ||
|
|
85c03e4b67 | ||
|
|
6be5b02231 | ||
|
|
71ef8d317a | ||
|
|
1b98566f3d | ||
|
|
8a8c7abb0f | ||
|
|
724b44907e | ||
|
|
18c65df3c7 | ||
|
|
4b12671b1c | ||
|
|
11304f00cf | ||
|
|
ac64331217 | ||
|
|
04492a1a23 | ||
|
|
52276e4766 | ||
|
|
bd6471d2ce | ||
|
|
542e23e87b | ||
|
|
577dc2be94 | ||
|
|
3027bc355b | ||
|
|
9ea7465ab4 | ||
|
|
57bd21e7ce | ||
|
|
1119f68e66 | ||
|
|
8235fd49ce | ||
|
|
67a0c04605 | ||
|
|
465da28f20 | ||
|
|
0b1aa0b12e | ||
|
|
f82f92df13 | ||
|
|
34c19bcee1 | ||
|
|
80e5f6b2f8 | ||
|
|
65db0b2ec8 | ||
|
|
4d59d9cfb5 | ||
|
|
7815cb363c | ||
|
|
651c1d2dc8 | ||
|
|
04b2e9629f | ||
|
|
7260e1f828 | ||
|
|
136b99839b | ||
|
|
ab45e4abf2 | ||
|
|
9dc0d3a6e8 | ||
|
|
5354fe1119 | ||
|
|
85267199c7 | ||
|
|
cf955c07fc | ||
|
|
7bf704fe87 | ||
|
|
c5490893c2 | ||
|
|
4e63cc23a4 | ||
|
|
c8177bdd30 | ||
|
|
7a60613b79 | ||
|
|
d1f3058c6d | ||
|
|
7e75fe3d37 | ||
|
|
f2d8112136 | ||
|
|
cc72a88ba0 | ||
|
|
8430afbead | ||
|
|
7c44f78490 | ||
|
|
f95b8470a2 | ||
|
|
a7c8e0cdfb | ||
|
|
a573d13cf0 | ||
|
|
9892ce3a5a | ||
|
|
72edd888f1 | ||
|
|
4ba7855699 | ||
|
|
8a7a2f67ca | ||
|
|
7b9dafb9e4 | ||
|
|
330942cc30 | ||
|
|
d1b7a2e2e7 | ||
|
|
5699e7857a | ||
|
|
8525844961 | ||
|
|
74bea87244 | ||
|
|
c6c6ac1c69 | ||
|
|
0d65d5a422 | ||
|
|
f5f1db4f5b | ||
|
|
2d97e24006 | ||
|
|
feccbeeee7 | ||
|
|
47c90bf5cd | ||
|
|
3d4d0e50c6 | ||
|
|
2292d30a73 | ||
|
|
2316676019 | ||
|
|
7f8d56da16 | ||
|
|
66399b9a32 | ||
|
|
513e29f7b6 | ||
|
|
40b0a744e9 | ||
|
|
158e9b6829 | ||
|
|
a1ac529086 | ||
|
|
fc0e033b82 | ||
|
|
638a29badc | ||
|
|
87e0edf989 | ||
|
|
bdd3733b26 | ||
|
|
11f6b78dad | ||
|
|
64a2ed761b | ||
|
|
ee53095271 | ||
|
|
d733092552 | ||
|
|
7c8b309d79 | ||
|
|
8727a7f9e3 | ||
|
|
4e731123b5 | ||
|
|
43c87e13c9 | ||
|
|
480e9809f2 | ||
|
|
afd1d2a527 | ||
|
|
045173968e | ||
|
|
c7d5fafc4e | ||
|
|
a2bc5709eb | ||
|
|
5df36130b7 | ||
|
|
cf535f0f76 | ||
|
|
d49072eb0f | ||
|
|
e643bd645c | ||
|
|
bb11800d53 | ||
|
|
2c460cd664 | ||
|
|
495f6fecbd | ||
|
|
47587ee05a | ||
|
|
de5bd624d8 | ||
|
|
b4fccb114c | ||
|
|
3e638517cd | ||
|
|
f1a6e77b72 | ||
|
|
037f4b9eea | ||
|
|
3e6f5999f5 | ||
|
|
d6bd3d8dc8 | ||
|
|
252f521e95 | ||
|
|
3bef75fb79 | ||
|
|
024fae7983 | ||
|
|
da601d4d69 | ||
|
|
bc56a0436b | ||
|
|
f39bc9317d | ||
|
|
2f47f7d9c0 | ||
|
|
37e7e90bff | ||
|
|
7f867298e7 | ||
|
|
80b31e87ec | ||
|
|
e00f63b9e9 | ||
|
|
693595a6c0 | ||
|
|
a1f79b3acc | ||
|
|
88043088f2 | ||
|
|
38be704434 | ||
|
|
71dc334010 | ||
|
|
22cb03c236 | ||
|
|
6ac8d76b2b | ||
|
|
9b790287ef | ||
|
|
4497f58b3e | ||
|
|
fdd9fe27b8 | ||
|
|
b1dc7e8697 | ||
|
|
77c92d80ab | ||
|
|
74969f94fe | ||
|
|
b567bf5652 | ||
|
|
2b0f051eba | ||
|
|
2d80ed36f8 | ||
|
|
3bf3061d8c | ||
|
|
37575c5f79 | ||
|
|
1a20184ba4 | ||
|
|
338451c25c | ||
|
|
17332226e4 | ||
|
|
2419f39cfd | ||
|
|
822203d7b0 | ||
|
|
fdf075149f | ||
|
|
9f83155fca | ||
|
|
76d9de6282 | ||
|
|
89880839e8 | ||
|
|
38afce70da | ||
|
|
c42c3ebe6f | ||
|
|
c8526bfe4d | ||
|
|
c11f2cf664 | ||
|
|
3fa5a808a0 | ||
|
|
a48c787439 | ||
|
|
e92eec1ab1 | ||
|
|
ceb0389e83 | ||
|
|
7776bba8b5 | ||
|
|
f59edf23d0 | ||
|
|
d55ac1fb94 | ||
|
|
d0f1d5e595 | ||
|
|
308e0ceb9d | ||
|
|
61b87f585d | ||
|
|
2e30403f98 | ||
|
|
847119a65d | ||
|
|
c8da990652 | ||
|
|
c97a922d35 | ||
|
|
b65974bb0a |
31
.cirrus.yml
31
.cirrus.yml
@@ -8,22 +8,6 @@ linux_task:
|
||||
container: &step
|
||||
image: ghcr.io/fish-shell/fish-ci/alpine:latest
|
||||
memory: 4GB
|
||||
- name: bionic
|
||||
container:
|
||||
<<: *step
|
||||
image: ghcr.io/fish-shell/fish-ci/bionic:latest
|
||||
- name: bionic-asan-clang
|
||||
container:
|
||||
<<: *step
|
||||
image: ghcr.io/fish-shell/fish-ci/bionic-asan-clang:latest
|
||||
- name: bionic-tsan
|
||||
container:
|
||||
<<: *step
|
||||
image: ghcr.io/fish-shell/fish-ci/bionic-tsan:latest
|
||||
- name: bionic-tsan-clang
|
||||
container:
|
||||
<<: *step
|
||||
image: ghcr.io/fish-shell/fish-ci/bionic-tsan-clang:latest
|
||||
- name: centos7
|
||||
container:
|
||||
<<: *step
|
||||
@@ -36,10 +20,6 @@ linux_task:
|
||||
container:
|
||||
<<: *step
|
||||
image: ghcr.io/fish-shell/fish-ci/focal-32bit:latest
|
||||
- name: xenial
|
||||
container:
|
||||
<<: *step
|
||||
image: ghcr.io/fish-shell/fish-ci/xenial:latest
|
||||
|
||||
tests_script:
|
||||
# cirrus at times gives us 32 procs and 2 GB of RAM
|
||||
@@ -59,9 +39,6 @@ linux_arm_task:
|
||||
arm_container:
|
||||
image: ghcr.io/fish-shell/fish-ci/focal-arm64
|
||||
only_if: $CIRRUS_REPO_OWNER == 'fish-shell'
|
||||
- name: jammy-armv7-32bit
|
||||
arm_container:
|
||||
image: ghcr.io/fish-shell/fish-ci/jammy-armv7-32bit
|
||||
|
||||
tests_script:
|
||||
# cirrus at times gives us 32 procs and 2 GB of RAM
|
||||
@@ -78,15 +55,9 @@ linux_arm_task:
|
||||
|
||||
freebsd_task:
|
||||
matrix:
|
||||
- name: FreeBSD 14
|
||||
freebsd_instance:
|
||||
image_family: freebsd-14-0-snap
|
||||
- name: FreeBSD 13
|
||||
freebsd_instance:
|
||||
image: freebsd-13-0-release-amd64
|
||||
- name: FreeBSD 12.3
|
||||
freebsd_instance:
|
||||
image: freebsd-12-3-release-amd64
|
||||
image: freebsd-13-2-release-amd64
|
||||
tests_script:
|
||||
- pkg install -y cmake devel/pcre2 devel/ninja misc/py-pexpect git
|
||||
# BSDs have the following behavior: root may open or access files even if
|
||||
|
||||
232
CHANGELOG.rst
232
CHANGELOG.rst
@@ -1,7 +1,182 @@
|
||||
fish 3.6.1 (released ???)
|
||||
===================================
|
||||
fish 3.7.1 (released March 19, 2024)
|
||||
====================================
|
||||
|
||||
.. ignore: 9439 9440 9442 9452 9469 9480 9482
|
||||
This release of fish fixes the following problems identified in fish 3.7.0:
|
||||
|
||||
- Deleting the last history entry via ``history delete`` works again (:issue:`10190`).
|
||||
- Wildcards (``*``) will no longer sometimes generate paths that did not exist (:issue:`10205`).
|
||||
|
||||
This release also contains some improvements:
|
||||
|
||||
- A crash when trying to run an ELF program with a missing interpreter has been fixed. This crashed in the process after fork, so did not affect the fish process that tried to start the program (:issue:`10199`).
|
||||
- ``funced`` will now always ``source`` the file after it has written it, even if the contents did not change. This prevents issues if the file was otherwise modified (:issue:`10318`).
|
||||
- The warning for when a builtin returns a negative exit code was improved, now mentioning the original status (:issue:`10187`).
|
||||
- Added completions for
|
||||
|
||||
- ``cobra-cli`` (:issue:`10293`)
|
||||
- ``dmidecode`` (:issue:`10368`)
|
||||
- ``mycli`` (:issue:`10309`)
|
||||
- ``ollama`` (:issue:`10327`)
|
||||
- ``pstree`` (:issue:`10317`)
|
||||
|
||||
- Some improvements to documentation and completions.
|
||||
|
||||
--------------
|
||||
|
||||
fish 3.7.0 (released January 1, 2024)
|
||||
=====================================
|
||||
|
||||
This release of fish includes a number of improvements over fish 3.6.4, detailed below. Although work continues on the porting of fish internals to the Rust programming language, that work is not included in this release. fish 3.7.0 and any future releases in the 3.7 series remain C++ programs.
|
||||
|
||||
Notable improvements and fixes
|
||||
------------------------------
|
||||
- Improvements to the history pager, including:
|
||||
|
||||
- The history pager will now also attempt subsequence matches (:issue:`9476`), so you can find a command line like ``git log 3.6.1..Integration_3.7.0`` by searching for ``gitInt``.
|
||||
- Opening the history pager will now fill the search field with a search string if you're already in a search (:issue:`10005`). This makes it nicer to search something with :kbd:`↑` and then later decide to switch to the full pager.
|
||||
- Closing the history pager with enter will now copy the search text to the commandline if there was no match, so you can continue editing the command you tried to find right away (:issue:`9934`).
|
||||
|
||||
- Performance improvements for command completions and globbing, where supported by the operating system, especially on slow filesystems such as NFS (:issue:`9891`, :issue:`9931`, :issue:`10032`, :issue:`10052`).
|
||||
- fish can now be configured to wait a specified amount of time for a multi-key sequence to be completed, instead of waiting indefinitely. For example, this makes binding ``kj`` to switching modes in vi mode possible.
|
||||
The timeout can be set via the new :envvar:`fish_sequence_key_delay_ms` variable (:issue:`7401`), and may be set by default in future versions.
|
||||
|
||||
Deprecations and removed features
|
||||
---------------------------------
|
||||
- ``LS_COLORS`` is no longer set automatically by the ``ls`` function (:issue:`10080`). Users
|
||||
that set ``.dircolors`` should manually import it using other means. Typically this would be ``set -gx LS_COLORS (dircolors -c .dircolors | string split ' ')[3]``
|
||||
|
||||
Scripting improvements
|
||||
----------------------
|
||||
- Running ``exit`` with a negative number no longer crashes fish (:issue:`9659`).
|
||||
- ``fish --command`` will now return a non-zero status if parsing failed (:issue:`9888`).
|
||||
- The ``jobs`` builtin will now escape the commands it prints (:issue:`9808`).
|
||||
- ``string repeat`` no longer overflows if the count is a multiple of the chunk size (:issue:`9900`).
|
||||
- The ``builtin`` builtin will now properly error out with invalid arguments instead of doing nothing and returning true (:issue:`9942`).
|
||||
- ``command time`` in a pipeline is allowed again, as is ``command and`` and ``command or`` (:issue:`9985`).
|
||||
- ``exec`` will now also apply variable overrides, so ``FOO=bar exec`` will now set ``$FOO`` correctly (:issue:`9995`).
|
||||
- ``umask`` will now handle empty symbolic modes correctly, like ``umask u=,g=rwx,o=`` (:issue:`10177`).
|
||||
- Improved error messages for errors occurring in command substitutions (:issue:`10054`).
|
||||
|
||||
Interactive improvements
|
||||
------------------------
|
||||
- ``read`` no longer enables bracketed paste so it doesn't stay enabled in combined commandlines like ``mysql -p(read --silent)`` (:issue:`8285`).
|
||||
- Vi mode now uses :envvar:`fish_cursor_external` to set the cursor shape for external commands (:issue:`4656`).
|
||||
- Opening the history search in vi mode switches to insert mode correctly (:issue:`10141`).
|
||||
- Vi mode cursor shaping is now enabled in iTerm2 (:issue:`9698`).
|
||||
- Working directory reporting is enabled for iTerm2 (:issue:`9955`).
|
||||
- Completing commands as root includes commands not owned by root, fixing a regression introduced in fish 3.2.0 (:issue:`9699`).
|
||||
- Selection uses ``fish_color_selection`` for the foreground and background colors, as intended, rather than just the background (:issue:`9717`).
|
||||
- The completion pager will no longer sometimes skip the last entry when moving through a long list (:issue:`9833`).
|
||||
- The interactive ``history delete`` interface now allows specifying index ranges like "1..5" (:issue:`9736`), and ``history delete --exact`` now properly saves the history (:issue:`10066`).
|
||||
- Command completion will now call the stock ``manpath`` on macOS, instead of a potential Homebrew version. This prevents awkward error messages (:issue:`9817`).
|
||||
- A new bind function ``history-pager-delete``, bound to :kbd:`Shift` + :kbd:`Delete` by default, will delete the currently-selected history pager item from history (:issue:`9454`).
|
||||
- ``fish_key_reader`` will now use printable characters as-is, so pressing "ö" no longer leads to it telling you to bind ``\u00F6`` (:issue:`9986`).
|
||||
- ``open`` can be used to launch terminal programs again, as an ``xdg-open`` bug has been fixed and a workaround has been removed (:issue:`10045`).
|
||||
- The ``repaint-mode`` binding will now only move the cursor if there is repainting to be done. This fixes :kbd:`Alt` combination bindings in vi mode (:issue:`7910`).
|
||||
- A new ``clear-screen`` bind function is used for :kbd:`Ctrl` + :kbd:`l` by default. This clears the screen and repaints the existing prompt at first,
|
||||
so it eliminates visible flicker unless the terminal is very slow (:issue:`10044`).
|
||||
- The ``alias`` convenience function has better support for commands with unusual characters, like ``+`` (:issue:`8720`).
|
||||
- A longstanding issue where items in the pager would sometimes display without proper formatting has been fixed (:issue:`9617`).
|
||||
- The :kbd:`Alt` + :kbd:`l` binding, which lists the directory of the token under the cursor, correctly expands tilde (``~``) to the home directory (:issue:`9954`).
|
||||
- Various fish utilities that use an external pager will now try a selection of common pagers if the :envvar:`PAGER` environment variable is not set, or write the output to the screen without a pager if there is not one available (:issue:`10074`).
|
||||
- Command-specific tab completions may now offer results whose first character is a period. For example, it is now possible to tab-complete ``git add`` for files with leading periods. The default file completions hide these files, unless the token itself has a leading period (:issue:`3707`).
|
||||
|
||||
Improved prompts
|
||||
^^^^^^^^^^^^^^^^
|
||||
- The default theme now only uses named colors, so it will track the terminal's palette (:issue:`9913`).
|
||||
- The Dracula theme has now been synced with upstream (:issue:`9807`); use ``fish_config`` to re-apply it to pick up the changes.
|
||||
- ``fish_vcs_prompt`` now also supports fossil (:issue:`9497`).
|
||||
- Prompts which display the working directory using the ``prompt_pwd`` function correctly display directories beginning with dashes (:issue:`10169`).
|
||||
|
||||
Completions
|
||||
^^^^^^^^^^^
|
||||
- Added completions for:
|
||||
|
||||
- ``age`` and ``age-keygen`` (:issue:`9813`)
|
||||
- ``airmon-ng`` (:issue:`10116`)
|
||||
- ``ar`` (:issue:`9720`)
|
||||
- ``blender`` (:issue:`9905`)
|
||||
- ``bws`` (:issue:`10165`)
|
||||
- ``calendar`` (:issue:`10138`)
|
||||
- ``checkinstall`` (:issue:`10106`)
|
||||
- ``crc`` (:issue:`10034`)
|
||||
- ``doctl``
|
||||
- ``gimp`` (:issue:`9904`)
|
||||
- ``gojq`` (:issue:`9740`)
|
||||
- ``horcrux`` (:issue:`9922`)
|
||||
- ``ibmcloud`` (:issue:`10004`)
|
||||
- ``iwctl`` (:issue:`6884`)
|
||||
- ``java_home`` (:issue:`9998`)
|
||||
- ``krita`` (:issue:`9903`)
|
||||
- ``oc`` (:issue:`10034`)
|
||||
- ``qjs`` (:issue:`9723`)
|
||||
- ``qjsc`` (:issue:`9731`)
|
||||
- ``rename`` (:issue:`10136`)
|
||||
- ``rpm-ostool`` (:issue:`9669`)
|
||||
- ``smerge`` (:issue:`10135`)
|
||||
- ``userdel`` (:issue:`10056`)
|
||||
- ``watchexec`` (:issue:`10027`)
|
||||
- ``wpctl`` (:issue:`10043`)
|
||||
- ``xxd`` (:issue:`10137`)
|
||||
- ``zabbix`` (:issue:`9647`)
|
||||
|
||||
- The ``zfs`` completions no longer print errors about setting a read-only variable (:issue:`9705`).
|
||||
- The ``kitty`` completions have been removed in favor of keeping them upstream (:issue:`9750`).
|
||||
- ``git`` completions now support aliases that reference other aliases (:issue:`9992`).
|
||||
- The ``gw`` and ``gradlew`` completions are loaded properly (:issue:`10127`).
|
||||
- Improvements to many other completions.
|
||||
- Improvements to the manual page completion generator (:issue:`9787`, :issue:`9814`, :issue:`9961`).
|
||||
|
||||
Other improvements
|
||||
------------------
|
||||
- Improvements and corrections to the documentation.
|
||||
- The Web-based configuration now uses a more readable style when printed, such as for a keybinding reference (:issue:`9828`).
|
||||
- Updates to the German translations (:issue:`9824`).
|
||||
- The colors of the Nord theme better match their official style (:issue:`10168`).
|
||||
|
||||
For distributors
|
||||
----------------
|
||||
- The licensing information for some of the derived code distributed with fish was incomplete. Though the license information was present in the source distribution, it was not present in the documentation. This has been corrected (:issue:`10162`).
|
||||
- The CMake configure step will now also look for libterminfo as an alternative name for libtinfo, as used in NetBSD curses (:issue:`9794`).
|
||||
|
||||
----
|
||||
|
||||
fish 3.6.4 (released December 5, 2023)
|
||||
======================================
|
||||
|
||||
This release contains a complete fix for the test suite failure in fish 3.6.2 and 3.6.3.
|
||||
|
||||
--------------
|
||||
|
||||
fish 3.6.3 (released December 4, 2023)
|
||||
======================================
|
||||
|
||||
This release contains a fix for a test suite failure in fish 3.6.2.
|
||||
|
||||
--------------
|
||||
|
||||
fish 3.6.2 (released December 4, 2023)
|
||||
======================================
|
||||
|
||||
This release of fish contains a security fix for CVE-2023-49284, a minor security problem identified
|
||||
in fish 3.6.1 and previous versions (thought to affect all released versions of fish).
|
||||
|
||||
fish uses certain Unicode non-characters internally for marking wildcards and expansions. It
|
||||
incorrectly allowed these markers to be read on command substitution output, rather than
|
||||
transforming them into a safe internal representation.
|
||||
|
||||
For example, ``echo \UFDD2HOME`` has the same output as ``echo $HOME``.
|
||||
|
||||
While this may cause unexpected behavior with direct input, this may become a minor security problem
|
||||
if the output is being fed from an external program into a command substitution where this output
|
||||
may not be expected.
|
||||
|
||||
--------------
|
||||
|
||||
fish 3.6.1 (released March 25, 2023)
|
||||
====================================
|
||||
|
||||
This release of fish contains a number of fixes for problems identified in fish 3.6.1, as well as some enhancements.
|
||||
|
||||
Notable improvements and fixes
|
||||
------------------------------
|
||||
@@ -9,52 +184,69 @@ Notable improvements and fixes
|
||||
abbr --erase (abbr --list)
|
||||
|
||||
can now be used to clean out all old abbreviations (:issue:`9468`).
|
||||
- ``abbr --add --universal`` now warns about --universal being non-functional, to make it easier to detect old-style ``abbr`` calls (:issue:`9475`).
|
||||
- ``abbr --add --universal`` now warns about ``--universal`` being non-functional, to make it easier to detect old-style ``abbr`` calls (:issue:`9475`).
|
||||
|
||||
Deprecations and removed features
|
||||
---------------------------------
|
||||
- The Web-based configuration for abbreviations has been removed, as it was not functional with the changes abbreviations introduced in 3.6.0 (:issue:`9460`).
|
||||
|
||||
Scripting improvements
|
||||
----------------------
|
||||
- ``abbr --list`` no longer escapes the abbr name, which is necessary to be able to pass it to ``abbr --erase`` (:issue:`9470`).
|
||||
- ``read`` will now print an error if told to set a read-only variable instead of silently doing nothing (:issue:`9346`).
|
||||
- ``read`` will now print an error if told to set a read-only variable, instead of silently doing nothing (:issue:`9346`).
|
||||
- ``set_color -v`` no longer crashes fish (:issue:`9640`).
|
||||
|
||||
Interactive improvements
|
||||
------------------------
|
||||
- Using ``fish_vi_key_bindings`` in combination with fish's ``--no-config`` mode works without locking up the shell (:issue:`9443`).
|
||||
- The history pager now uses more screen space, usually half the screen (:issue:`9458`)
|
||||
- Variables that were set while the locale was C (i.e. ASCII) will now properly be encoded if the locale is switched (:issue:`2613`, :issue:`9473`).
|
||||
- Escape during history search restores the original commandline again (regressed in 3.6.0).
|
||||
- Using ``--help`` on builtins now respects the $MANPAGER variable in preference to $PAGER (:issue:`9488`).
|
||||
|
||||
New or improved bindings
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
- Variables that were set while the locale was C (the default ASCII-only locale) will now properly be encoded if the locale is switched (:issue:`2613`, :issue:`9473`).
|
||||
- Escape during history search restores the original command line again (fixing a regression in 3.6.0).
|
||||
- Using ``--help`` on builtins now respects the ``$MANPAGER`` variable, in preference to ``$PAGER`` (:issue:`9488`).
|
||||
- :kbd:`Control-G` closes the history pager, like other shells (:issue:`9484`).
|
||||
- The documentation for the ``:``, ``[`` and ``.`` builtin commands can now be looked up with ``man`` (:issue:`9552`).
|
||||
- fish no longer crashes when searching history for non-ASCII codepoints case-insensitively (:issue:`9628`).
|
||||
- The :kbd:`Alt-S` binding will now also use ``please`` if available (:issue:`9635`).
|
||||
- Themes that don't specify every color option can be installed correctly in the Web-based configuration (:issue:`9590`).
|
||||
- Compatibility with Midnight Commander's prompt integration has been improved (:issue:`9540`).
|
||||
- A spurious error, noted when using fish in Google Drive directories under WSL 2, has been silenced (:issue:`9550`).
|
||||
- Using ``read`` in ``fish_greeting`` or similar functions will not trigger an infinite loop (:issue:`9564`).
|
||||
- Compatibility when upgrading from old versions of fish (before 3.4.0) has been improved (:issue:`9569`).
|
||||
|
||||
Improved prompts
|
||||
^^^^^^^^^^^^^^^^
|
||||
- The git prompt will compute the stash count to be used independently of the informative status (:issue:`9572`).
|
||||
|
||||
Completions
|
||||
^^^^^^^^^^^
|
||||
- Added completions for:
|
||||
- ``otool``
|
||||
- git's completion for ``git-foo``-style commands was fixed (:issue:`9457`)
|
||||
- File completion now offers ``../`` and ``./`` again (:issue:`9477`)
|
||||
- Completion for ``terraform`` now asks for a parameter after ``terraform init -backend-config``. (:issue:`9498`)
|
||||
|
||||
Improved terminal support
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
- ``apkanalyzer`` (:issue:`9558`)
|
||||
- ``neovim`` (:issue:`9543`)
|
||||
- ``otool``
|
||||
- ``pre-commit`` (:issue:`9521`)
|
||||
- ``proxychains`` (:issue:`9486`)
|
||||
- ``scrypt`` (:issue:`9583`)
|
||||
- ``stow`` (:issue:`9571`)
|
||||
- ``trash`` and helper utilities ``trash-empty``, ``trash-list``, ``trash-put``, ``trash-restore`` (:issue:`9560`)
|
||||
- ``ssh-copy-id`` (:issue:`9675`)
|
||||
|
||||
- Improvements to many completions, including the speed of completing directories in WSL 2 (:issue:`9574`).
|
||||
- Completions using ``__fish_complete_suffix`` are now offered in the correct order, fixing a regression in 3.6.0 (:issue:`8924`).
|
||||
- ``git`` completions for ``git-foo``-style commands was restored, fixing a regression in 3.6.0 (:issue:`9457`).
|
||||
- File completion now offers ``../`` and ``./`` again, fixing a regression in 3.6.0 (:issue:`9477`).
|
||||
- The behaviour of completions using ``__fish_complete_path`` matches standard path completions (:issue:`9285`).
|
||||
|
||||
Other improvements
|
||||
------------------
|
||||
|
||||
- Improvements and corrections to the documentation.
|
||||
|
||||
For distributors
|
||||
----------------
|
||||
- *Placeholder to fix Sphinx warning*
|
||||
- fish 3.6.1 builds correctly on Cygwin (:issue:`9502`).
|
||||
|
||||
--------------
|
||||
|
||||
|
||||
fish 3.6.0 (released January 7, 2023)
|
||||
=====================================
|
||||
|
||||
|
||||
5
COPYING
5
COPYING
@@ -9,8 +9,9 @@ Most of fish is licensed under the GNU General Public License version 2, and
|
||||
you can redistribute it and/or modify it under the terms of the GNU GPL as
|
||||
published by the Free Software Foundation.
|
||||
|
||||
fish also includes software licensed under the GNU Lesser General Public
|
||||
License version 2, the OpenBSD license, the ISC license, and the NetBSD license.
|
||||
fish also includes software licensed under the CMake license, the Python
|
||||
Software Foundation License version 2, the OpenBSD license, the ISC license,
|
||||
the NetBSD license, and the MIT license.
|
||||
|
||||
Full licensing information is contained in doc_src/license.rst.
|
||||
|
||||
|
||||
@@ -79,6 +79,12 @@ list(APPEND CMAKE_REQUIRED_INCLUDES ${CURSES_INCLUDE_DIRS})
|
||||
find_library(CURSES_TINFO tinfo)
|
||||
if (CURSES_TINFO)
|
||||
set(CURSES_LIBRARY ${CURSES_LIBRARY} ${CURSES_TINFO})
|
||||
else()
|
||||
# on NetBSD, libtinfo has a longer name (libterminfo)
|
||||
find_library(CURSES_TINFO terminfo)
|
||||
if (CURSES_TINFO)
|
||||
set(CURSES_LIBRARY ${CURSES_LIBRARY} ${CURSES_TINFO})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Get threads.
|
||||
|
||||
2
debian/control
vendored
2
debian/control
vendored
@@ -15,7 +15,7 @@ Vcs-Browser: https://github.com/fish-shell/fish-shell
|
||||
Package: fish
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, passwd (>= 4.0.3-10), gettext-base, man-db,
|
||||
python3 (>=3.5)
|
||||
procps, python3 (>=3.5)
|
||||
Conflicts: fish-common
|
||||
Recommends: xsel (>=1.2.0)
|
||||
Suggests: xdg-utils
|
||||
|
||||
@@ -32,6 +32,7 @@ The following ``argparse`` options are available. They must appear before all *O
|
||||
|
||||
**-x** or **--exclusive** *OPTIONS*
|
||||
A comma separated list of options that are mutually exclusive. You can use this more than once to define multiple sets of mutually exclusive options.
|
||||
You give either the short or long version of each option, and you still need to otherwise define the options.
|
||||
|
||||
**-N** or **--min-args** *NUMBER*
|
||||
The minimum number of acceptable non-option arguments. The default is zero.
|
||||
@@ -205,6 +206,37 @@ After parsing the arguments the ``argv`` variable is set with local scope to any
|
||||
|
||||
If an error occurs during argparse processing it will exit with a non-zero status and print error messages to stderr.
|
||||
|
||||
Examples
|
||||
---------
|
||||
|
||||
A simple use::
|
||||
|
||||
argparse h/help -- $argv
|
||||
or return
|
||||
|
||||
if set -q _flag_help
|
||||
# TODO: Print help here
|
||||
return 0
|
||||
end
|
||||
|
||||
This just wants one option - ``-h`` / ``--help``. Any other option is an error. If it is given it prints help and exits.
|
||||
|
||||
How :doc:`fish_add_path` parses its args::
|
||||
|
||||
argparse -x g,U -x P,U -x a,p g/global U/universal P/path p/prepend a/append h/help m/move v/verbose n/dry-run -- $argv
|
||||
|
||||
There are a variety of boolean flags, all with long and short versions. A few of these cannot be used together, and that is what the ``-x`` flag is used for.
|
||||
``-x g,U`` means that ``--global`` and ``--universal`` or their short equivalents conflict, and if they are used together you get an error.
|
||||
In this case you only need to give the short or long flag, not the full option specification.
|
||||
|
||||
After this it figures out which variable it should operate on according to the ``--path`` flag::
|
||||
|
||||
set -l var fish_user_paths
|
||||
set -q _flag_path
|
||||
and set var PATH
|
||||
|
||||
|
||||
|
||||
Limitations
|
||||
-----------
|
||||
|
||||
|
||||
@@ -143,6 +143,9 @@ The following special input functions are available:
|
||||
``capitalize-word``
|
||||
make the current word begin with a capital letter
|
||||
|
||||
``clear-screen``
|
||||
clears the screen and redraws the prompt. if the terminal doesn't support clearing the screen it is the same as ``repaint``.
|
||||
|
||||
``complete``
|
||||
guess the remainder of the current token
|
||||
|
||||
@@ -199,6 +202,9 @@ The following special input functions are available:
|
||||
``history-pager``
|
||||
invoke the searchable pager on history (incremental search); or if the history pager is already active, search further backwards in time.
|
||||
|
||||
``history-pager-delete``
|
||||
permanently delete the history item selected in the history pager
|
||||
|
||||
``history-search-backward``
|
||||
search the history for the previous match
|
||||
|
||||
@@ -374,3 +380,6 @@ The escape key can be used standalone, for example, to switch from insertion mod
|
||||
Holding alt and something else also typically sends escape, for example holding alt+a will send an escape character and then an "a".
|
||||
|
||||
fish waits for a period after receiving the escape character, to determine whether it is standalone or part of an escape sequence. While waiting, additional key presses make the escape key behave as a meta key. If no other key presses come in, it is handled as a standalone escape. The waiting period is set to 30 milliseconds (0.03 seconds). It can be configured by setting the ``fish_escape_delay_ms`` variable to a value between 10 and 5000 ms. This can be a universal variable that you set once from an interactive session.
|
||||
So the escape character has its own timeout configured with :envvar:`fish_escape_delay_ms`.
|
||||
|
||||
See also :ref:`Key sequences <interactive-key-sequences>`.
|
||||
|
||||
@@ -74,6 +74,10 @@ The following options change the way ``commandline`` prints the current commandl
|
||||
|
||||
**-c** or **--cut-at-cursor**
|
||||
Only print selection up until the current cursor position.
|
||||
If combined with ``--tokenize``, this will print up until the last completed token - excluding the token the cursor is in.
|
||||
This is typically what you would want for instance in completions.
|
||||
To get both, use both ``commandline --cut-at-cursor --tokenize; commandline --cut-at-cursor --current-token``,
|
||||
or ``commandline -co; commandline -ct`` for short.
|
||||
|
||||
**-o** or **--tokenize**
|
||||
Tokenize the selection and print one string-type token per line.
|
||||
@@ -120,8 +124,22 @@ The ``echo $flounder >&`` is the first process, ``less`` the second and ``and ec
|
||||
|
||||
**$flounder** is the current token.
|
||||
|
||||
More examples:
|
||||
The most common use for something like completions is
|
||||
|
||||
::
|
||||
|
||||
set -l tokens (commandline -opc)
|
||||
|
||||
which gives the current *process* (what is being completed), tokenized into separate entries, up to but excluding the currently being completed token
|
||||
|
||||
If you are then also interested in the in-progress token, add
|
||||
|
||||
::
|
||||
set -l current (commandline -ct)
|
||||
|
||||
Note that this makes it easy to render fish's infix matching moot - if possible it's best if the completions just print all possibilities and leave the matching to the current token up to fish's logic.
|
||||
|
||||
More examples:
|
||||
|
||||
::
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
.. _cmd-complete:
|
||||
|
||||
complete - edit command specific tab-completions
|
||||
complete - edit command-specific tab-completions
|
||||
================================================
|
||||
|
||||
Synopsis
|
||||
@@ -8,7 +8,7 @@ Synopsis
|
||||
|
||||
.. synopsis::
|
||||
|
||||
complete ((-c | --command) | (-p | --path)) COMMAND [OPTIONS]
|
||||
complete ((-c | --command) | (-p | --path)) COMMAND [OPTIONS]
|
||||
complete (-C | --do-complete) [--escape] STRING
|
||||
|
||||
Description
|
||||
@@ -72,7 +72,7 @@ The following options are available:
|
||||
**-h** or **--help**
|
||||
Displays help about using this command.
|
||||
|
||||
Command specific tab-completions in ``fish`` are based on the notion of options and arguments. An option is a parameter which begins with a hyphen, such as ``-h``, ``-help`` or ``--help``. Arguments are parameters that do not begin with a hyphen. Fish recognizes three styles of options, the same styles as the GNU getopt library. These styles are:
|
||||
Command-specific tab-completions in ``fish`` are based on the notion of options and arguments. An option is a parameter which begins with a hyphen, such as ``-h``, ``-help`` or ``--help``. Arguments are parameters that do not begin with a hyphen. Fish recognizes three styles of options, the same styles as the GNU getopt library. These styles are:
|
||||
|
||||
- Short options, like ``-a``. Short options are a single character long, are preceded by a single hyphen and can be grouped together (like ``-la``, which is equivalent to ``-l -a``). Option arguments may be specified by appending the option with the value (``-w32``), or, if ``--require-parameter`` is given, in the following parameter (``-w 32``).
|
||||
|
||||
|
||||
27
doc_src/cmds/fish_default_key_bindings.rst
Normal file
27
doc_src/cmds/fish_default_key_bindings.rst
Normal file
@@ -0,0 +1,27 @@
|
||||
.. _cmd-fish_default_key_bindings:
|
||||
|
||||
fish_default_key_bindings - set emacs key bindings for fish
|
||||
===============================================================
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
.. synopsis::
|
||||
|
||||
fish_default_key_bindings
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
``fish_default_key_bindings`` sets the emacs key bindings for ``fish`` shell.
|
||||
|
||||
Some of the Emacs key bindings are defined :ref:`here <emacs-mode>`.
|
||||
|
||||
There are no parameters for ``fish_default_key_bindings``.
|
||||
|
||||
Examples
|
||||
--------
|
||||
|
||||
To start using vi key bindings::
|
||||
|
||||
fish_default_key_bindings
|
||||
@@ -56,7 +56,7 @@ Example
|
||||
> fish_key_reader --verbose
|
||||
Press a key:
|
||||
# press alt+enter
|
||||
hex: 1B char: \c[ (or \e)
|
||||
hex: 1B char: \e
|
||||
( 0.027 ms) hex: D char: \cM (or \r)
|
||||
bind \e\r 'do something'
|
||||
|
||||
|
||||
36
doc_src/cmds/fish_vi_key_bindings.rst
Normal file
36
doc_src/cmds/fish_vi_key_bindings.rst
Normal file
@@ -0,0 +1,36 @@
|
||||
.. _cmd-fish_vi_key_bindings:
|
||||
|
||||
fish_vi_key_bindings - set vi key bindings for fish
|
||||
===============================================================
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
.. synopsis::
|
||||
|
||||
fish_vi_key_bindings
|
||||
fish_vi_key_bindings [--no-erase] [INIT_MODE]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
``fish_vi_key_bindings`` sets the vi key bindings for ``fish`` shell.
|
||||
|
||||
If a valid *INIT_MODE* is provided (insert, default, visual), then that mode will become the default
|
||||
. If no *INIT_MODE* is given, the mode defaults to insert mode.
|
||||
|
||||
The following parameters are available:
|
||||
|
||||
**--no-erase**
|
||||
Does not clear previous set bindings
|
||||
|
||||
Further information on how to use :ref:`vi-mode <vi-mode>`.
|
||||
|
||||
Examples
|
||||
--------
|
||||
|
||||
To start using vi key bindings::
|
||||
|
||||
fish_vi_key_bindings
|
||||
|
||||
or ``set -g fish_key_bindings fish_vi_key_bindings`` in :ref:`config.fish <configuration>`.
|
||||
@@ -30,7 +30,7 @@ The following options are available:
|
||||
Inherit completions from the given *WRAPPED_COMMAND*. See the documentation for :doc:`complete <complete>` for more information.
|
||||
|
||||
**-e** *EVENT_NAME* or **--on-event** *EVENT_NAME*
|
||||
Run this function when the specified named event is emitted. Fish internally generates named events, for example,when showing the prompt. Custom events can be emitted using the :doc:`emit <emit>` command.
|
||||
Run this function when the specified named event is emitted. Fish internally generates named events, for example, when showing the prompt. Custom events can be emitted using the :doc:`emit <emit>` command.
|
||||
|
||||
**-v** *VARIABLE_NAME* or **--on-variable** *VARIABLE_NAME*
|
||||
Run this function when the variable *VARIABLE_NAME* changes value. Note that :program:`fish` makes no guarantees on any particular timing or even that the function will be run for every single ``set``. Rather it will be run when the variable has been set at least once, possibly skipping some values or being run when the variable has been set to the same value (except for universal variables set in other shells - only changes in the value will be picked up for those).
|
||||
|
||||
@@ -29,7 +29,7 @@ The following operations (sub-commands) are available:
|
||||
Returns history items matching the search string. If no search string is provided it returns all history items. This is the default operation if no other operation is specified. You only have to explicitly say ``history search`` if you wish to search for one of the subcommands. The ``--contains`` search option will be used if you don't specify a different search option. Entries are ordered newest to oldest unless you use the ``--reverse`` flag. If stdout is attached to a tty the output will be piped through your pager by the history function. The history builtin simply writes the results to stdout.
|
||||
|
||||
**delete**
|
||||
Deletes history items. The ``--contains`` search option will be used if you don't specify a different search option. If you don't specify ``--exact`` a prompt will be displayed before any items are deleted asking you which entries are to be deleted. You can enter the word "all" to delete all matching entries. You can enter a single ID (the number in square brackets) to delete just that single entry. You can enter more than one ID separated by a space to delete multiple entries. Just press [enter] to not delete anything. Note that the interactive delete behavior is a feature of the history function. The history builtin only supports ``--exact --case-sensitive`` deletion.
|
||||
Deletes history items. The ``--contains`` search option will be used if you don't specify a different search option. If you don't specify ``--exact`` a prompt will be displayed before any items are deleted asking you which entries are to be deleted. You can enter the word "all" to delete all matching entries. You can enter a single ID (the number in square brackets) to delete just that single entry. You can enter more than one ID, or an ID range separated by a space to delete multiple entries. Just press [enter] to not delete anything. Note that the interactive delete behavior is a feature of the history function. The history builtin only supports ``--exact --case-sensitive`` deletion.
|
||||
|
||||
**merge**
|
||||
Immediately incorporates history changes from other sessions. Ordinarily ``fish`` ignores history changes from sessions started after the current one. This command applies those changes immediately.
|
||||
|
||||
@@ -17,8 +17,9 @@ Description
|
||||
``math`` performs mathematical calculations.
|
||||
It supports simple operations such as addition, subtraction, and so on, as well as functions like ``abs()``, ``sqrt()`` and ``ln()``.
|
||||
|
||||
By default, the output is a floating-point number with trailing zeroes trimmed.
|
||||
To get a fixed representation, the ``--scale`` option can be used, including ``--scale=0`` for integer output.
|
||||
By default, the output shows up to 6 decimal places.
|
||||
To change the number of decimal places, use the ``--scale`` option, including ``--scale=0`` for integer output.
|
||||
Trailing zeroes will always be trimmed.
|
||||
|
||||
Keep in mind that parameter expansion happens before expressions are evaluated.
|
||||
This can be very useful in order to perform calculations involving shell variables or the output of command substitutions, but it also means that parenthesis (``()``) and the asterisk (``*``) glob character have to be escaped or quoted.
|
||||
|
||||
@@ -106,7 +106,7 @@ The following code stores the value 'hello' in the shell variable :envvar:`foo`.
|
||||
|
||||
echo hello|read foo
|
||||
|
||||
While this is a neat way to handle command output line-by-line::
|
||||
The :doc:`while <while>` command is a neat way to handle command output line-by-line::
|
||||
|
||||
printf '%s\n' line1 line2 line3 line4 | while read -l foo
|
||||
echo "This is another line: $foo"
|
||||
@@ -125,7 +125,7 @@ Delimiters given via "-d" are taken as one string::
|
||||
echo $first # outputs "a b", $second is empty
|
||||
|
||||
echo 'a"foo bar"b (command echo wurst)*" "{a,b}' | read -lt -l a b c
|
||||
echo $a # outputs 'afoo bar' (without the quotes)
|
||||
echo $a # outputs 'afoo barb' (without the quotes)
|
||||
echo $b # outputs '(command echo wurst)* {a,b}' (without the quotes)
|
||||
echo $c # nothing
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ If both *NAME* and *VALUE* are provided, ``set`` assigns any values to variable
|
||||
Variables in fish are :ref:`lists <variables-lists>`, multiple values are allowed.
|
||||
One or more variable *INDEX* can be specified including ranges (not for all options.)
|
||||
|
||||
If no *VALUE* is given, the variable will be set to the empty list i.e. ``''``.
|
||||
If no *VALUE* is given, the variable will be set to the empty list.
|
||||
|
||||
If ``set`` is ran without arguments, it prints the names and values of all shell variables in sorted order.
|
||||
Passing :ref:`scope <variables-scope>` or :ref:`export <variables-export>` flags allows filtering this to only matching variables, so ``set --local`` would only show local variables.
|
||||
@@ -34,11 +34,11 @@ With ``--erase`` and optionally a scope flag ``set`` will erase the matching var
|
||||
|
||||
With ``--show``, ``set`` will describe the given variable names, explaining how they have been defined - in which scope with which values and options.
|
||||
|
||||
The following scope control variable scope:
|
||||
The following options control variable scope:
|
||||
|
||||
**-U** or **--universal**
|
||||
Sets a universal variable.
|
||||
The variable will be immediately available to all the user's ``fish`` instances on the machine, and will be persist across restarts of the shell.
|
||||
The variable will be immediately available to all the user's ``fish`` instances on the machine, and will be persisted across restarts of the shell.
|
||||
|
||||
**-f** or **--function**
|
||||
Sets a variable scoped to the executing function.
|
||||
@@ -63,10 +63,10 @@ These options modify how variables operate:
|
||||
Causes the specified shell variable to NOT be exported to child processes.
|
||||
|
||||
**--path**
|
||||
Treat specified variable as a :ref:`path variable <variables-path>`; variable will be split on colons (``:``) and will be displayed joined by colons colons when quoted (``echo "$PATH"``) or exported.
|
||||
Treat specified variable as a :ref:`path variable <variables-path>`; variable will be split on colons (``:``) and will be displayed joined by colons when quoted (``echo "$PATH"``) or exported.
|
||||
|
||||
**--unpath**
|
||||
Causes variable to no longer be tred as a :ref:`path variable <variables-path>`.
|
||||
Causes variable to no longer be treated as a :ref:`path variable <variables-path>`.
|
||||
Note: variables ending in "PATH" are automatically path variables.
|
||||
|
||||
Further options:
|
||||
@@ -175,7 +175,7 @@ Remove _$smurf_ from the scope::
|
||||
|
||||
> set -e smurf
|
||||
|
||||
Remove _$smurf_ from the global and universal scoeps::
|
||||
Remove _$smurf_ from the global and universal scopes::
|
||||
|
||||
> set -e -Ug smurf
|
||||
|
||||
|
||||
@@ -11,8 +11,46 @@ To provide a list of possible completions for myprog, use the ``-a`` switch. If
|
||||
|
||||
complete -c myprog -s o -l output -a "yes no"
|
||||
|
||||
In the complete call above, the ``-a`` arguments apply when the option -o/--output has been given, so this offers them for::
|
||||
|
||||
There are also special switches for specifying that a switch requires an argument, to disable filename completion, to create completions that are only available in some combinations, etc.. For a complete description of the various switches accepted by the ``complete`` command, see the documentation for the :doc:`complete <cmds/complete>` builtin, or write ``complete --help`` inside the ``fish`` shell.
|
||||
> myprog -o<TAB>
|
||||
> myprog --output=<TAB>
|
||||
|
||||
By default, option arguments are *optional*, so the candidates are only offered directly attached like that, so they aren't given in this case::
|
||||
|
||||
> myprog -o <TAB>
|
||||
|
||||
Usually options *require* a parameter, so you would give ``--require-parameter`` / ``-r``::
|
||||
|
||||
complete -c myprog -s o -l output -ra "yes no"
|
||||
|
||||
which offers yes/no in these cases::
|
||||
|
||||
> myprog -o<TAB>
|
||||
> myprog --output=<TAB>
|
||||
> myprog -o <TAB>
|
||||
> myprog --output <TAB>
|
||||
|
||||
In the latter two cases, files will also be offered because file completion is enabled by default.
|
||||
|
||||
You would either inhibit file completion for a single option::
|
||||
|
||||
complete -c myprog -s o -l output --no-files -ra "yes no"
|
||||
|
||||
or with a specific condition::
|
||||
|
||||
complete -c myprog -f --condition '__fish_seen_subcommand_from somesubcommand'
|
||||
|
||||
or you can disable file completions globally for the command::
|
||||
|
||||
complete -c myprog -f
|
||||
|
||||
If you have disabled them globally, you can enable them just for a specific condition or option with the ``--force-files`` / ``-F`` option::
|
||||
|
||||
# Disable files by default
|
||||
complete -c myprog -f
|
||||
# but reenable them for --config-file
|
||||
complete -c myprog -l config-file --force-files -r
|
||||
|
||||
As a more comprehensive example, here's a commented excerpt of the completions for systemd's ``timedatectl``::
|
||||
|
||||
@@ -76,7 +114,7 @@ For examples of how to write your own complex completions, study the completions
|
||||
Useful functions for writing completions
|
||||
----------------------------------------
|
||||
|
||||
``fish`` ships with several functions that are very useful when writing command specific completions. Most of these functions name begins with the string ``__fish_``. Such functions are internal to ``fish`` and their name and interface may change in future fish versions. Still, some of them may be very useful when writing completions. A few of these functions are described here. Be aware that they may be removed or changed in future versions of fish.
|
||||
``fish`` ships with several functions that may be useful when writing command-specific completions. Most of these function names begin with the string ``__fish_``. Such functions are internal to ``fish`` and their name and interface may change in future fish versions. A few of these functions are described here.
|
||||
|
||||
Functions beginning with the string ``__fish_print_`` print a newline separated list of strings. For example, ``__fish_print_filesystems`` prints a list of all known file systems. Functions beginning with ``__fish_complete_`` print out a newline separated list of completions with descriptions. The description is separated from the completion by a tab character.
|
||||
|
||||
@@ -120,7 +158,7 @@ These paths are controlled by parameters set at build, install, or run time, and
|
||||
|
||||
This wide search may be confusing. If you are unsure, your completions probably belong in ``~/.config/fish/completions``.
|
||||
|
||||
If you have written new completions for a common Unix command, please consider sharing your work by submitting it via the instructions in :ref:`Further help and development <more-help>`
|
||||
If you have written new completions for a common Unix command, please consider sharing your work by submitting it via the instructions in :ref:`Further help and development <more-help>`.
|
||||
|
||||
If you are developing another program and would like to ship completions with your program, install them to the "vendor" completions directory. As this path may vary from system to system, the ``pkgconfig`` framework should be used to discover this path with the output of ``pkg-config --variable completionsdir fish``.
|
||||
|
||||
|
||||
@@ -187,6 +187,7 @@ man_pages = [
|
||||
("interactive", "fish-interactive", "", [author], 1),
|
||||
("relnotes", "fish-releasenotes", "", [author], 1),
|
||||
("completions", "fish-completions", "", [author], 1),
|
||||
("prompt", "fish-prompt-tutorial", "", [author], 1),
|
||||
(
|
||||
"fish_for_bash_users",
|
||||
"fish-for-bash-users",
|
||||
|
||||
@@ -107,11 +107,11 @@ If you want to share your script with others, you might want to use :command:`en
|
||||
#!/usr/bin/env fish
|
||||
echo Hello from fish $version
|
||||
|
||||
This will call ``env``, which then goes through :envvar:`PATH` to find a program called "fish". This makes it work, whether fish is installed in /usr/local/bin/fish or /usr/bin/fish or ~/.local/bin/fish, as long as that directory is in :envvar:`PATH`.
|
||||
This will call ``env``, which then goes through :envvar:`PATH` to find a program called "fish". This makes it work, whether fish is installed in (for example) ``/usr/local/bin/fish``, ``/usr/bin/fish``, or ``~/.local/bin/fish``, as long as that directory is in :envvar:`PATH`.
|
||||
|
||||
The shebang line is only used when scripts are executed without specifying the interpreter. For functions inside fish or when executing a script with ``fish /path/to/script``, a shebang is not required (but it doesn't hurt!).
|
||||
|
||||
When executing files without an interpreter, fish, like other shells, tries your system shell, typically /bin/sh. This is needed because some scripts are shipped without a shebang line.
|
||||
When executing files without an interpreter, fish, like other shells, tries your system shell, typically ``/bin/sh``. This is needed because some scripts are shipped without a shebang line.
|
||||
|
||||
Configuration
|
||||
=============
|
||||
@@ -171,6 +171,7 @@ Other help pages
|
||||
fish_for_bash_users
|
||||
tutorial
|
||||
completions
|
||||
prompt
|
||||
design
|
||||
relnotes
|
||||
license
|
||||
|
||||
@@ -125,6 +125,7 @@ Variable Meaning
|
||||
.. envvar:: fish_color_status the last command's nonzero exit code in the default prompt
|
||||
.. envvar:: fish_color_cancel the '^C' indicator on a canceled command
|
||||
.. envvar:: fish_color_search_match history search matches and selected pager items (background only)
|
||||
.. envvar:: fish_color_history_current the current position in the history for commands like ``dirh`` and ``cdh``
|
||||
|
||||
========================================== =====================================================================
|
||||
|
||||
@@ -269,7 +270,7 @@ Command line editor
|
||||
|
||||
The fish editor features copy and paste, a :ref:`searchable history <history-search>` and many editor functions that can be bound to special keyboard shortcuts.
|
||||
|
||||
Like bash and other shells, fish includes two sets of keyboard shortcuts (or key bindings): one inspired by the Emacs text editor, and one by the Vi text editor. The default editing mode is Emacs. You can switch to Vi mode by running ``fish_vi_key_bindings`` and switch back with ``fish_default_key_bindings``. You can also make your own key bindings by creating a function and setting the ``fish_key_bindings`` variable to its name. For example::
|
||||
Like bash and other shells, fish includes two sets of keyboard shortcuts (or key bindings): one inspired by the Emacs text editor, and one by the Vi text editor. The default editing mode is Emacs. You can switch to Vi mode by running :doc:`fish_vi_key_bindings <cmds/fish_vi_key_bindings>` and switch back with :doc:`fish_default_key_bindings <cmds/fish_default_key_bindings>`. You can also make your own key bindings by creating a function and setting the ``fish_key_bindings`` variable to its name. For example::
|
||||
|
||||
|
||||
function fish_hybrid_key_bindings --description \
|
||||
@@ -345,7 +346,7 @@ Some bindings are common across Emacs and Vi mode, because they aren't text edit
|
||||
Emacs mode commands
|
||||
^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
To enable emacs mode, use ``fish_default_key_bindings``. This is also the default.
|
||||
To enable emacs mode, use :doc:`fish_default_key_bindings <cmds/fish_default_key_bindings>`. This is also the default.
|
||||
|
||||
- :kbd:`Home` or :kbd:`Control`\ +\ :kbd:`A` moves the cursor to the beginning of the line.
|
||||
|
||||
@@ -390,8 +391,7 @@ Vi mode commands
|
||||
|
||||
Vi mode allows for the use of Vi-like commands at the prompt. Initially, :ref:`insert mode <vi-mode-insert>` is active. :kbd:`Escape` enters :ref:`command mode <vi-mode-command>`. The commands available in command, insert and visual mode are described below. Vi mode shares :ref:`some bindings <shared-binds>` with :ref:`Emacs mode <emacs-mode>`.
|
||||
|
||||
To enable vi mode, use ``fish_vi_key_bindings``.
|
||||
|
||||
To enable vi mode, use :doc:`fish_vi_key_bindings <cmds/fish_vi_key_bindings>`.
|
||||
It is also possible to add all emacs-mode bindings to vi-mode by using something like::
|
||||
|
||||
|
||||
@@ -418,14 +418,20 @@ The ``fish_vi_cursor`` function will be used to change the cursor's shape depend
|
||||
set fish_cursor_default block
|
||||
# Set the insert mode cursor to a line
|
||||
set fish_cursor_insert line
|
||||
# Set the replace mode cursor to an underscore
|
||||
# Set the replace mode cursors to an underscore
|
||||
set fish_cursor_replace_one underscore
|
||||
set fish_cursor_replace underscore
|
||||
# Set the external cursor to a line. The external cursor appears when a command is started.
|
||||
# The cursor shape takes the value of fish_cursor_default when fish_cursor_external is not specified.
|
||||
set fish_cursor_external line
|
||||
# The following variable can be used to configure cursor shape in
|
||||
# visual mode, but due to fish_cursor_default, is redundant here
|
||||
set fish_cursor_visual block
|
||||
|
||||
Additionally, ``blink`` can be added after each of the cursor shape parameters to set a blinking cursor in the specified shape.
|
||||
|
||||
Fish knows the shapes "block", "line" and "underscore", other values will be ignored.
|
||||
|
||||
If the cursor shape does not appear to be changing after setting the above variables, it's likely your terminal emulator does not support the capabilities necessary to do this. It may also be the case, however, that ``fish_vi_cursor`` has not detected your terminal's features correctly (for example, if you are using ``tmux``). If this is the case, you can force ``fish_vi_cursor`` to set the cursor shape by setting ``$fish_vi_force_cursor`` in ``config.fish``. You'll have to restart fish for any changes to take effect. If cursor shape setting remains broken after this, it's almost certainly an issue with your terminal emulator, and not fish.
|
||||
|
||||
.. _vi-mode-command:
|
||||
@@ -443,7 +449,7 @@ Command mode is also known as normal mode.
|
||||
|
||||
- :kbd:`i` enters :ref:`insert mode <vi-mode-insert>` at the current cursor position.
|
||||
|
||||
- :kbd:`Shift`\ +\ :kbd:`R` enters :ref:`insert mode <vi-mode-insert>` at the beginning of the line.
|
||||
- :kbd:`Shift`\ +\ :kbd:`I` enters :ref:`insert mode <vi-mode-insert>` at the beginning of the line.
|
||||
|
||||
- :kbd:`v` enters :ref:`visual mode <vi-mode-visual>` at the current cursor position.
|
||||
|
||||
@@ -534,6 +540,12 @@ If you change your mind on a binding and want to go back to fish's default, you
|
||||
|
||||
Fish remembers its preset bindings and so it will take effect again. This saves you from having to remember what it was before and add it again yourself.
|
||||
|
||||
If you use :ref:`vi bindings <vi-mode>`, note that ``bind`` will by default bind keys in :ref:`command mode <vi-mode-command>`. To bind something in :ref:`insert mode <vi-mode-insert>`::
|
||||
|
||||
bind --mode insert \cc 'commandline -r ""'
|
||||
|
||||
.. _interactive-key-sequences:
|
||||
|
||||
Key sequences
|
||||
"""""""""""""
|
||||
|
||||
@@ -550,14 +562,25 @@ In these cases, :doc:`fish_key_reader <cmds/fish_key_reader>` can tell you how t
|
||||
Press a key:
|
||||
bind \e\[C 'do something'
|
||||
|
||||
Note that some key combinations are indistinguishable or unbindable. For instance control-i *is the same* as the tab key. This is a terminal limitation that fish can't do anything about.
|
||||
Note that some key combinations are indistinguishable or unbindable. For instance control-i *is the same* as the tab key. This is a terminal limitation that fish can't do anything about. When ``fish_key_reader`` prints the same sequence for two different keys, then that is because your terminal sends the same sequence for them.
|
||||
|
||||
Also, :kbd:`Escape` is the same thing as :kbd:`Alt` in a terminal. To distinguish between pressing :kbd:`Escape` and then another key, and pressing :kbd:`Alt` and that key (or an escape sequence the key sends), fish waits for a certain time after seeing an escape character. This is configurable via the ``fish_escape_delay_ms`` variable.
|
||||
Also, :kbd:`Escape` is the same thing as :kbd:`Alt` in a terminal. To distinguish between pressing :kbd:`Escape` and then another key, and pressing :kbd:`Alt` and that key (or an escape sequence the key sends), fish waits for a certain time after seeing an escape character. This is configurable via the :envvar:`fish_escape_delay_ms` variable.
|
||||
|
||||
If you want to be able to press :kbd:`Escape` and then a character and have it count as :kbd:`Alt`\ +\ that character, set it to a higher value, e.g.::
|
||||
|
||||
set -g fish_escape_delay_ms 100
|
||||
|
||||
Similarly, to disambiguate *other* keypresses where you've bound a subsequence and a longer sequence, fish has :envvar:`fish_sequence_key_delay_ms`::
|
||||
|
||||
# This binds "jk" to switch to normal mode in vi-mode.
|
||||
# If you kept it like that, every time you press "j",
|
||||
# fish would wait for a "k" or other key to disambiguate
|
||||
bind -M insert -m default jk cancel repaint-mode
|
||||
|
||||
# After setting this, fish only waits 200ms for the "k",
|
||||
# or decides to treat the "j" as a separate sequence, inserting it.
|
||||
set -g fish_sequence_key_delay_ms 200
|
||||
|
||||
.. _killring:
|
||||
|
||||
Copy and paste (Kill Ring)
|
||||
|
||||
@@ -90,7 +90,8 @@ More examples::
|
||||
searches for lines ending in ``enabled)`` in ``foo.txt`` (the ``$`` is special to ``grep``: it matches the end of the line).
|
||||
|
||||
::
|
||||
apt install "postgres-*"
|
||||
|
||||
apt install "postgres-*"
|
||||
|
||||
installs all packages with a name starting with "postgres-", instead of looking through the current directory for files named "postgres-something".
|
||||
|
||||
@@ -237,6 +238,37 @@ As a convenience, the pipe ``&|`` redirects both stdout and stderr to the same p
|
||||
|
||||
.. [#] A "pager" here is a program that takes output and "paginates" it. ``less`` doesn't just do pages, it allows arbitrary scrolling (even back!).
|
||||
|
||||
|
||||
Combining pipes and redirections
|
||||
--------------------------------
|
||||
|
||||
It is possible to use multiple redirections and a pipe at the same time. In that case, they are read in this order:
|
||||
|
||||
1. First the pipe is set up.
|
||||
2. Then the redirections are evaluated from left-to-right.
|
||||
|
||||
This is important when any redirections reference other file descriptors with the ``&N`` syntax. When you say ``>&2``, that will redirect stdout to where stderr is pointing to *at that time*.
|
||||
|
||||
Consider this helper function::
|
||||
|
||||
# Just make a function that prints something to stdout and stderr
|
||||
function print
|
||||
echo out
|
||||
echo err >&2
|
||||
end
|
||||
|
||||
Now let's see a few cases::
|
||||
|
||||
# Redirect both stderr and stdout to less
|
||||
# (can also be spelt as `&|`)
|
||||
print 2>&1 | less
|
||||
|
||||
# Show the "out" on stderr, silence the "err"
|
||||
print >&2 2>/dev/null
|
||||
|
||||
# Silence both
|
||||
print >/dev/null 2>&1
|
||||
|
||||
.. _syntax-job-control:
|
||||
|
||||
Job control
|
||||
@@ -1417,6 +1449,10 @@ You can change the settings of fish by changing the values of certain variables.
|
||||
|
||||
sets how long fish waits for another key after seeing an escape, to distinguish pressing the escape key from the start of an escape sequence. The default is 30ms. Increasing it increases the latency but allows pressing escape instead of alt for alt+character bindings. For more information, see :ref:`the chapter in the bind documentation <cmd-bind-escape>`.
|
||||
|
||||
.. envvar:: fish_sequence_key_delay_ms
|
||||
|
||||
sets how long fish waits for another key after seeing a key that is part of a longer sequence, to disambiguate. For instance if you had bound ``\cx\ce`` to open an editor, fish would wait for this long in milliseconds to see a ctrl-e after a ctrl-x. If the time elapses, it will handle it as a ctrl-x (by default this would copy the current commandline to the clipboard). See also :ref:`Key sequences <interactive-key-sequences>`.
|
||||
|
||||
.. envvar:: fish_complete_path
|
||||
|
||||
determines where fish looks for completion. When trying to complete for a command, fish looks for files in the directories in this variable.
|
||||
@@ -1800,7 +1836,13 @@ Configuration files are run in the following order:
|
||||
|
||||
- ``$__fish_config_dir/conf.d`` (by default, ``~/.config/fish/conf.d/``)
|
||||
- ``$__fish_sysconf_dir/conf.d`` (by default, ``/etc/fish/conf.d/``)
|
||||
- Directories for others to ship configuration snippets for their software. Fish searches the directories under ``$__fish_user_data_dir`` (usually ``~/.local/share/fish``, controlled by the ``XDG_DATA_HOME`` environment variable) and in the ``XDG_DATA_DIRS`` environment variable for a ``fish/vendor_conf.d`` directory; if not defined, the default value of ``XDG_DATA_DIRS`` is ``/usr/share/fish/vendor_conf.d`` and ``/usr/local/share/fish/vendor_conf.d``, unless your distribution customized this.
|
||||
- Directories for others to ship configuration snippets for their software:
|
||||
|
||||
- the directories under ``$__fish_user_data_dir`` (usually ``~/.local/share/fish``, controlled by the ``XDG_DATA_HOME`` environment variable)
|
||||
- a ``fish/vendor_conf.d`` directory in the directories listed in ``$XDG_DATA_DIRS`` (default ``/usr/share/fish/vendor_conf.d`` and ``/usr/local/share/fish/vendor_conf.d``)
|
||||
|
||||
These directories are also accessible in ``$__fish_vendor_confdirs``.
|
||||
Note that changing that in a running fish won't do anything as by that point the directories have already been read.
|
||||
|
||||
If there are multiple files with the same name in these directories, only the first will be executed.
|
||||
They are executed in order of their filename, sorted (like globs) in a natural order (i.e. "01" sorts before "2").
|
||||
@@ -1814,6 +1856,8 @@ These files are all executed on the startup of every shell. If you want to run a
|
||||
|
||||
If you are developing another program, you may want to add configuration for all users of fish on a system. This is discouraged; if not carefully written, they may have side-effects or slow the startup of the shell. Additionally, users of other shells won't benefit from the fish-specific configuration. However, if they are required, you can install them to the "vendor" configuration directory. As this path may vary from system to system, ``pkg-config`` should be used to discover it: ``pkg-config --variable confdir fish``.
|
||||
|
||||
For system integration, fish also ships a file called ``__fish_build_paths.fish``. This can be customized during build, for instance because your system requires special paths to be used.
|
||||
|
||||
.. _featureflags:
|
||||
|
||||
Future feature flags
|
||||
@@ -1881,7 +1925,7 @@ To specify a signal handler for the WINCH signal, write::
|
||||
echo Got WINCH signal!
|
||||
end
|
||||
|
||||
Fish already the following named events for the ``--on-event`` switch:
|
||||
Fish already has the following named events for the ``--on-event`` switch:
|
||||
|
||||
- ``fish_prompt`` is emitted whenever a new fish prompt is about to be displayed.
|
||||
|
||||
|
||||
@@ -175,3 +175,107 @@ products or services of Licensee, or any third party.
|
||||
8. By copying, installing or otherwise using Python, Licensee
|
||||
agrees to be bound by the terms and conditions of this License
|
||||
Agreement.
|
||||
|
||||
License for CMake
|
||||
-----------------
|
||||
|
||||
The ``fish`` source code contains files from [CMake](https://cmake.org) to support the build system.
|
||||
This code is distributed under the terms of a BSD-style license. Copyright 2000-2017 Kitware, Inc.
|
||||
and Contributors.
|
||||
|
||||
The BSD license for CMake follows.
|
||||
|
||||
CMake - Cross Platform Makefile Generator
|
||||
Copyright 2000-2017 Kitware, Inc. and Contributors
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the name of Kitware, Inc. nor the names of Contributors
|
||||
may be used to endorse or promote products derived from this
|
||||
software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
License for code derived from tmux
|
||||
----------------------------------
|
||||
|
||||
``fish`` contains code from [tmux](http://tmux.sourceforge.net), copyrighted by Nicholas Marriott <nicm@users.sourceforge.net> (2007), and made available under the OpenBSD license.
|
||||
|
||||
The OpenBSD license is included below.
|
||||
|
||||
Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
License for UTF8
|
||||
----------------
|
||||
|
||||
``fish`` also contains small amounts of code under the ISC license, namely the UTF-8 conversion functions. This code is copyright © 2007 Alexey Vatchenko \<av@bsdua.org>.
|
||||
|
||||
The ISC license agreement follows.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
License for flock
|
||||
-----------------
|
||||
|
||||
``fish`` also contains small amounts of code from NetBSD, namely the ``flock`` fallback function. This code is copyright 2001 The NetBSD Foundation, Inc., and derived from software contributed to The NetBSD Foundation by Todd Vierling.
|
||||
|
||||
The NetBSD license follows.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
||||
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
MIT License
|
||||
-----------
|
||||
|
||||
``fish`` includes a copy of AngularJS, which is copyright 2010-2012 Google, Inc. and licensed under the MIT License. It also includes the Dracula theme, which is copyright 2018 Dracula Team, and the Nord theme, which is copyright 2016-present Sven Greb. These themes are also used under the MIT license.
|
||||
|
||||
The MIT license follows.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
172
doc_src/prompt.rst
Normal file
172
doc_src/prompt.rst
Normal file
@@ -0,0 +1,172 @@
|
||||
Writing your own prompt
|
||||
=======================
|
||||
|
||||
.. only:: builder_man
|
||||
|
||||
.. warning::
|
||||
This document uses formatting to show what a prompt would look like. If you are viewing this in the man page,
|
||||
you probably want to switch to looking at the html version instead. Run ``help custom-prompt`` to view it in a web browser.
|
||||
|
||||
Fish ships a number of prompts that you can view with the :doc:`fish_config <cmds/fish_config>` command, and many users have shared their prompts online.
|
||||
|
||||
However, you can also write your own, or adjust an existing prompt. This is a good way to get used to fish's :doc:`scripting language <language>`.
|
||||
|
||||
Unlike other shells, fish's prompt is built by running a function - :doc:`fish_prompt <cmds/fish_prompt>`. Or, more specifically, three functions:
|
||||
|
||||
- :doc:`fish_prompt <cmds/fish_prompt>`, which is the main prompt function
|
||||
- :doc:`fish_right_prompt <cmds/fish_right_prompt>`, which is shown on the right side of the terminal.
|
||||
- :doc:`fish_mode_prompt <cmds/fish_mode_prompt>`, which is shown if :ref:`vi-mode <vi-mode>` is used.
|
||||
|
||||
These functions are run, and whatever they print is displayed as the prompt (minus one trailing newline).
|
||||
|
||||
Here, we will just be writing a simple fish_prompt.
|
||||
|
||||
Our first prompt
|
||||
----------------
|
||||
|
||||
Let's look at a very simple example::
|
||||
|
||||
function fish_prompt
|
||||
echo $PWD '>'
|
||||
end
|
||||
|
||||
This prints the current working directory (:envvar:`PWD`) and a ``>`` symbol to show where the prompt ends. The ``>`` is :ref:`quoted <quotes>` because otherwise it would signify a :ref:`redirection <redirects>`.
|
||||
|
||||
Because we've used :doc:`echo <cmds/echo>`, it adds spaces between the two so it ends up looking like (assuming ``_`` is your cursor):
|
||||
|
||||
.. role:: white
|
||||
.. parsed-literal::
|
||||
:class: highlight
|
||||
|
||||
:white:`/home/tutorial >`\ _
|
||||
|
||||
Formatting
|
||||
----------
|
||||
|
||||
``echo`` adds spaces between its arguments. If you don't want those, you can use :doc:`string join <cmds/string-join>` like this::
|
||||
|
||||
function fish_prompt
|
||||
string join '' -- $PWD '>'
|
||||
end
|
||||
|
||||
The ``--`` indicates to ``string`` that no options can come after it, in case we extend this with something that can start with a ``-``.
|
||||
|
||||
There are other ways to remove the space, including ``echo -s`` and :doc:`printf <cmds/printf>`.
|
||||
|
||||
Adding colo(u)r
|
||||
---------------
|
||||
|
||||
This prompt is functional, but a bit boring. We could add some color.
|
||||
|
||||
Fortunately, fish offers the :doc:`set_color <cmds/set_color>` command, so you can do::
|
||||
|
||||
echo (set_color red)foo
|
||||
|
||||
``set_color`` can also handle RGB colors like ``set_color 23b455``, and other formatting options including bold and italics.
|
||||
|
||||
So, taking our previous prompt and adding some color::
|
||||
|
||||
function fish_prompt
|
||||
string join '' -- (set_color green) $PWD (set_color normal) '>'
|
||||
end
|
||||
|
||||
A "normal" color tells the terminal to go back to its normal formatting options.
|
||||
|
||||
What ``set_color`` does internally is to print an escape sequence that tells the terminal to change color. So if you see something like::
|
||||
|
||||
echo \e\[31mfoo
|
||||
|
||||
that could just be ``set_color red``.
|
||||
|
||||
Shortening the working directory
|
||||
--------------------------------
|
||||
|
||||
This is fine, but our :envvar:`PWD` can be a bit long, and we are typically only interested in the last few directories. We can shorten this with the :doc:`prompt_pwd <cmds/prompt_pwd>` helper that will give us a shortened working directory::
|
||||
|
||||
function fish_prompt
|
||||
string join '' -- (set_color green) (prompt_pwd) (set_color normal) '>'
|
||||
end
|
||||
|
||||
``prompt_pwd`` takes options to control how much to shorten. For instance, if we want to display the last two directories, we'd use ``prompt_pwd --full-length-dirs 2``::
|
||||
|
||||
function fish_prompt
|
||||
string join '' -- (set_color green) (prompt_pwd --full-length-dirs 2) (set_color normal) '>'
|
||||
end
|
||||
|
||||
With a current directory of "/home/tutorial/Music/Lena Raine/Oneknowing", this would print
|
||||
|
||||
.. role:: green
|
||||
.. parsed-literal::
|
||||
:class: highlight
|
||||
|
||||
:green:`~/M/Lena Raine/Oneknowing`>_
|
||||
|
||||
Status
|
||||
------
|
||||
|
||||
One important bit of information that every command returns is the :ref:`status <variables-status>`. This is a whole number from 0 to 255, and usually it is used as an error code - 0 if the command returned successfully, or a number from 1 to 255 if not.
|
||||
|
||||
It's useful to display this in your prompt, but showing it when it's 0 seems kind of wasteful.
|
||||
|
||||
First of all, since every command (except for :doc:`set <cmds/set>`) changes the status, you need to store it for later use as the first thing in your prompt. Use a :ref:`local variable <variables-scope>` so it will be confined to your prompt function::
|
||||
|
||||
set -l last_status $status
|
||||
|
||||
And after that, you can set a string if it not zero::
|
||||
|
||||
# Prompt status only if it's not 0
|
||||
set -l stat
|
||||
if test $last_status -ne 0
|
||||
set stat (set_color red)"[$last_status]"(set_color normal)
|
||||
end
|
||||
|
||||
And to print it, we add it to our ``string join``::
|
||||
|
||||
string join '' -- (set_color green) (prompt_pwd) (set_color normal) $stat '>'
|
||||
|
||||
If ``$last_status`` was 0, ``$stat`` is empty, and so it will simply disappear.
|
||||
|
||||
So our entire prompt is now::
|
||||
|
||||
function fish_prompt
|
||||
set -l last_status $status
|
||||
# Prompt status only if it's not 0
|
||||
set -l stat
|
||||
if test $last_status -ne 0
|
||||
set stat (set_color red)"[$last_status]"(set_color normal)
|
||||
end
|
||||
|
||||
string join '' -- (set_color green) (prompt_pwd) (set_color normal) $stat '>'
|
||||
end
|
||||
|
||||
And it looks like:
|
||||
|
||||
.. role:: green
|
||||
.. role:: red
|
||||
.. parsed-literal::
|
||||
:class: highlight
|
||||
|
||||
:green:`~/M/L/Oneknowing`\ :red:`[1]`>_
|
||||
|
||||
after we run ``false`` (which returns 1).
|
||||
|
||||
Where to go from here?
|
||||
----------------------
|
||||
|
||||
We have now built a simple but working and usable prompt, but of course more can be done.
|
||||
|
||||
- Fish offers more helper functions:
|
||||
- ``prompt_login`` to describe the user/hostname/container or ``prompt_hostname`` to describe just the host
|
||||
- ``fish_is_root_user`` to help with changing the symbol for root.
|
||||
- ``fish_vcs_prompt`` to show version control information (or ``fish_git_prompt`` / ``fish_hg_prompt`` / ``fish_svn_prompt`` to limit it to specific systems)
|
||||
- You can add a right prompt by changing :doc:`fish_right_prompt <cmds/fish_right_prompt>` or a vi-mode prompt by changing :doc:`fish_mode_prompt <cmds/fish_mode_prompt>`.
|
||||
- Some prompts have interesting or advanced features
|
||||
- Add the time when the prompt was printed
|
||||
- Show various integrations like python's venv
|
||||
- Color the parts differently.
|
||||
|
||||
You can look at fish's sample prompts for inspiration. Open up :doc:`fish_config <cmds/fish_config>`, find one you like and pick it. For example::
|
||||
|
||||
fish_config prompt show # <- shows all the sample prompts
|
||||
fish_config prompt choose disco # <- this picks the "disco" prompt for this session
|
||||
funced fish_prompt # <- opens fish_prompt in your editor, and reloads it once the editor exits
|
||||
@@ -1,5 +1,18 @@
|
||||
:root {
|
||||
color-scheme: light dark; /* both supported */
|
||||
color-scheme: light dark; /* both supported */
|
||||
--link-color: #0030B3;
|
||||
--visited-link-color: #6363bb;
|
||||
--hover-link-color: #00A5F4;
|
||||
--text-color: #222;
|
||||
--main-background: #EEEEFA;
|
||||
--secondary-background: #ddddea;
|
||||
--outer-background: linear-gradient(to bottom, #a7cfdf 0%,#23538a 100%);
|
||||
--code-background: rgba(255,255,255, .2);
|
||||
--code-border: #ac9;
|
||||
--sidebar-border-color: #ccc;
|
||||
--secondary-link-color: #444;
|
||||
--highlight-background: #FFF;
|
||||
--td-background: white;
|
||||
}
|
||||
|
||||
html {
|
||||
@@ -8,7 +21,10 @@ html {
|
||||
}
|
||||
|
||||
body {
|
||||
background: linear-gradient(to bottom, #a7cfdf 0%,#23538a 100%);
|
||||
background: var(--outer-background);
|
||||
}
|
||||
|
||||
html, body, input {
|
||||
/* Pick a font.
|
||||
sans-serif is the Browser default. This is great because the user could change it.
|
||||
Unfortunately the defaults are decades old and e.g. on Windows still use Arial in Firefox and Edge,
|
||||
@@ -29,8 +45,7 @@ body {
|
||||
body {
|
||||
/* These stay, assuming some browsers pick different defaults */
|
||||
font-size: 100%;
|
||||
background-color: #eeeefa;
|
||||
color: #000;
|
||||
background-color: var(--main-background);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
@@ -97,7 +112,7 @@ div.sphinxsidebar ul ul, div.sphinxsidebar ul.want-points {
|
||||
div.sphinxsidebar ul {
|
||||
margin: 10px;
|
||||
padding: 0;
|
||||
color: #444444;
|
||||
color: var(--secondary-link-color);
|
||||
margin: 10px;
|
||||
list-style: none;
|
||||
}
|
||||
@@ -132,7 +147,7 @@ div.sphinxsidebar h3 {
|
||||
}
|
||||
|
||||
div.sphinxsidebar h4 {
|
||||
color: #444444;
|
||||
color: var(--secondary-link-color);
|
||||
font-size: 1.3em;
|
||||
font-weight: normal;
|
||||
margin: 5px 0 0 0;
|
||||
@@ -162,7 +177,7 @@ a:hover, div.footer a {
|
||||
}
|
||||
|
||||
div.related a, div.sphinxsidebar a {
|
||||
color: #444444;
|
||||
color: var(--secondary-link-color);
|
||||
}
|
||||
|
||||
div.warning {
|
||||
@@ -192,10 +207,6 @@ div.footer {
|
||||
font-size: 75%;
|
||||
}
|
||||
|
||||
th, dl.field-list > dt {
|
||||
background-color: #ede;
|
||||
}
|
||||
|
||||
table.docutils {
|
||||
border-collapse: collapse;
|
||||
}
|
||||
@@ -212,9 +223,9 @@ th > :first-child, td > :first-child {
|
||||
/* End of SPHINX IMPORT */
|
||||
|
||||
div#fmain {
|
||||
color: #222;
|
||||
color: var(--text-color);
|
||||
padding: 1em 2em;
|
||||
background-color: #EEEEFA;
|
||||
background-color: var(--main-background);
|
||||
border-radius: 14px;
|
||||
position: relative;
|
||||
margin: 1em auto 1em;
|
||||
@@ -227,7 +238,8 @@ div#fmain {
|
||||
div.related {
|
||||
margin-bottom: 0;
|
||||
padding: 0.5em 0;
|
||||
border-top: 1px solid #ccc;
|
||||
border-top: 1px solid;
|
||||
border-color: var(--sidebar-border-color);
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
@@ -243,15 +255,10 @@ div.section {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
div.related a:hover,
|
||||
div.footer a:hover,
|
||||
div.sphinxsidebar a:hover {
|
||||
color: #0095C4;
|
||||
}
|
||||
|
||||
div.related:first-child {
|
||||
border-top: 0;
|
||||
border-bottom: 1px solid #ccc;
|
||||
border-bottom: 1px solid;
|
||||
border-color: var(--sidebar-border-color);
|
||||
}
|
||||
|
||||
.inline-search {
|
||||
@@ -265,7 +272,8 @@ form.inline-search input[type="submit"] {
|
||||
}
|
||||
|
||||
div.sphinxsidebar {
|
||||
border-right: 1px solid #ccc;
|
||||
border-right: 1px solid;
|
||||
border-color: var(--sidebar-border-color);
|
||||
border-radius: 0px;
|
||||
line-height: 1em;
|
||||
font-size: smaller;
|
||||
@@ -325,7 +333,8 @@ ul.simple > li:not(:first-child) > p {
|
||||
|
||||
form.inline-search input,
|
||||
div.sphinxsidebar input {
|
||||
border: 1px solid #999999;
|
||||
border: 1px solid;
|
||||
border-color: var(--sidebar-border-color);
|
||||
font-size: smaller;
|
||||
border-radius: 3px;
|
||||
}
|
||||
@@ -364,7 +373,8 @@ div.body hr {
|
||||
|
||||
div.body pre, code {
|
||||
border-radius: 3px;
|
||||
border: 1px solid #ac9;
|
||||
border: 1px solid;
|
||||
border-color: var(--code-border);
|
||||
}
|
||||
|
||||
div.highlight {
|
||||
@@ -399,28 +409,31 @@ div.body div.seealso {
|
||||
border: 1px solid #dddd66;
|
||||
}
|
||||
|
||||
div.body a {
|
||||
color: #0072aa;
|
||||
a {
|
||||
color: var(--link-color);
|
||||
}
|
||||
|
||||
div.body a:visited {
|
||||
color: #6363bb;
|
||||
color: var(--visited-link-color);
|
||||
}
|
||||
|
||||
div.related a:hover,
|
||||
div.footer a:hover,
|
||||
div.sphinxsidebar a:hover,
|
||||
div.body a:hover {
|
||||
color: #00B0E4;
|
||||
color: var(--hover-link-color);
|
||||
}
|
||||
|
||||
code {
|
||||
/* Make inline-code better visible */
|
||||
background-color: rgba(20,20,80, .1);
|
||||
background-color: var(--code-background);
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
margin-left: 3px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
tt, code, pre, dl > dt span ~ em, #synopsis p, #synopsis code, .command {
|
||||
tt, code, pre, dl > dt span ~ em, #synopsis p, #synopsis code, .command, button {
|
||||
/* Pick a monospace font.
|
||||
ui-monospace is the monospace version of system-ui - the system's monospace font.
|
||||
Unfortunately it's barely supported anywhere (at time of writing only Safari does!),
|
||||
@@ -467,7 +480,8 @@ div.body tt.xref, div.body a tt, div.body code.xref, div.body a code {
|
||||
}
|
||||
|
||||
table.docutils {
|
||||
border: 1px solid #ddd;
|
||||
border: 1px solid;
|
||||
border-color: var(--sidebar-border-color);
|
||||
min-width: 20%;
|
||||
border-radius: 3px;
|
||||
margin-top: 1em;
|
||||
@@ -478,7 +492,8 @@ table.docutils {
|
||||
}
|
||||
|
||||
table.docutils td, table.docutils th {
|
||||
border: 1px solid #ddd !important;
|
||||
border: 1px solid;
|
||||
border-color: var(--sidebar-border-color);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
@@ -486,13 +501,13 @@ table p, table li {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
table.docutils th {
|
||||
background-color: #eee;
|
||||
th {
|
||||
background-color: var(--secondary-background);
|
||||
padding: 0.3em 0.5em;
|
||||
}
|
||||
|
||||
table.docutils td {
|
||||
background-color: white;
|
||||
background-color: var(--td-background);
|
||||
padding: 0.3em 0.5em;
|
||||
}
|
||||
|
||||
@@ -508,16 +523,8 @@ div.footer {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.refcount {
|
||||
color: #060;
|
||||
}
|
||||
|
||||
.stableabi {
|
||||
color: #229;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
background: #FFF;
|
||||
background: var(--highlight-background);
|
||||
}
|
||||
|
||||
#synopsis p {
|
||||
@@ -552,6 +559,10 @@ aside.footnote > p {
|
||||
line-height: 1.5em;
|
||||
}
|
||||
|
||||
div.documentwrapper {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* On screens that are less than 700px wide remove anything non-essential
|
||||
- the sidebar, the gradient background, ... */
|
||||
@media screen and (max-width: 700px) {
|
||||
@@ -606,6 +617,7 @@ aside.footnote > p {
|
||||
.gray { color: #777 }
|
||||
.purple { color: #551a8b; font-weight: bold; }
|
||||
.red { color: #FF0000; }
|
||||
.green { color: #00FF00; }
|
||||
|
||||
/* Color based on the Name.Function (.nf) class from pygments.css. */
|
||||
.command { color: #005fd7 }
|
||||
@@ -621,11 +633,10 @@ aside.footnote > p {
|
||||
.prompt { color: #8f7902; }
|
||||
|
||||
kbd {
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #aaa;
|
||||
background-color: var(--td-background);
|
||||
border: 1px solid;
|
||||
border-color: var(--sidebar-border-color);
|
||||
border-radius: .2em;
|
||||
box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1);
|
||||
color: #000;
|
||||
padding: 0.1em 0.3em;
|
||||
}
|
||||
|
||||
@@ -637,91 +648,38 @@ div.body .internal.reference:link {
|
||||
content: "$";
|
||||
}
|
||||
.footnote, .footnote-reference {
|
||||
background-color: #ddddea;
|
||||
background-color: var(--secondary-background);
|
||||
font-size: 90%;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
background: linear-gradient(to top, #1f1f3f 0%,#051f3a 100%);
|
||||
:root {
|
||||
--link-color: #5fb0fc;
|
||||
--text-color: #DDD;
|
||||
--main-background: #202028;
|
||||
--secondary-background: #112;
|
||||
--outer-background: linear-gradient(to top, #1f1f3f 0%,#051f3a 100%);
|
||||
--code-background: rgba(20, 20, 25, .2);
|
||||
--code-border: #536;
|
||||
--sidebar-border-color: #666;
|
||||
--secondary-link-color: #DDD;
|
||||
--highlight-background: #000;
|
||||
--td-background: #111;
|
||||
}
|
||||
|
||||
div#fmain {
|
||||
color: #DDD;
|
||||
background-color: #202028;
|
||||
box-shadow: 0 0 5px 1px #000;
|
||||
}
|
||||
|
||||
div.body pre, code {
|
||||
border: 1px solid #536;
|
||||
}
|
||||
|
||||
.footnote, .footnote-reference {
|
||||
background-color: #101020;
|
||||
}
|
||||
|
||||
div.sphinxsidebar {
|
||||
border-right: 1px solid #666;
|
||||
}
|
||||
|
||||
div.related:first-child {
|
||||
border-bottom: 1px solid #666;
|
||||
}
|
||||
|
||||
div.related {
|
||||
border-top: 1px solid #666;
|
||||
}
|
||||
|
||||
div.sphinxsidebar a, div.footer {
|
||||
color: #DDD;
|
||||
}
|
||||
|
||||
div.sphinxsidebar h3 a, div.related a, div.sphinxsidebar h3, div.footer a {
|
||||
color: #DDD;
|
||||
}
|
||||
.highlight {
|
||||
background: #000;
|
||||
}
|
||||
kbd {
|
||||
background-color: #111;
|
||||
border: 1px solid #444;
|
||||
box-shadow: 0.1em 0.1em 0.2em rgba(100,100,100,0.1);
|
||||
color: #FFF;
|
||||
}
|
||||
table.docutils th {
|
||||
background-color: #222;
|
||||
}
|
||||
|
||||
table.docutils td {
|
||||
background-color: #111;
|
||||
}
|
||||
input {
|
||||
background-color: #222;
|
||||
color: #DDD;
|
||||
}
|
||||
|
||||
dt:target, span.highlighted {
|
||||
background-color: #404060;
|
||||
}
|
||||
table.docutils {
|
||||
border: 1px solid #222;
|
||||
}
|
||||
|
||||
table.docutils td, table.docutils th {
|
||||
border: 1px solid #222 !important;
|
||||
}
|
||||
div.body a {
|
||||
color: #2092fa;
|
||||
}
|
||||
|
||||
/* Color based on the Name.Function (.nf) class from pygments.css. */
|
||||
.command { color: #008fd7 }
|
||||
|
||||
/* The table background on fishfish Beta r1 */
|
||||
th, dl.field-list > dt {
|
||||
background-color: #121;
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: rgba(200, 200, 255, .2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,20 +1,19 @@
|
||||
.highlight .hll { background-color: #ffffcc }
|
||||
.highlight .err { color: #a40000; border: 1px solid #ef2929 } /* Error */
|
||||
.highlight .k { color: #204a87; font-weight: bold } /* Keyword */
|
||||
.highlight .o { color: #00a6b2; } /* Operator */
|
||||
.highlight .p { color: #00bfff; } /* Punctuation */
|
||||
.highlight .c { color: #777; font-style: italic; } /* Comment */
|
||||
.highlight .ch { color: #8f7902; font-style: italic } /* Comment.Hashbang */
|
||||
.highlight .cm { color: #8f7902; font-style: italic } /* Comment.Multiline */
|
||||
.highlight .cp { color: #8f7902; font-style: italic } /* Comment.Preproc */
|
||||
.highlight .cpf { color: #8f7902; font-style: italic } /* Comment.PreprocFile */
|
||||
.highlight .c1 { color: #8f7902; font-style: italic } /* Comment.Single */
|
||||
.highlight .cs { color: #8f7902; font-style: italic } /* Comment.Special */
|
||||
.highlight .o { color: #005F66; } /* Operator */
|
||||
.highlight .p { color: #000f8f; } /* Punctuation */
|
||||
.highlight .c { color: #575757; font-style: italic; } /* Comment */
|
||||
.highlight .ch { color: #645502; font-style: italic } /* Comment.Hashbang */
|
||||
.highlight .cm { color: #645502; font-style: italic } /* Comment.Multiline */
|
||||
.highlight .cp { color: #645502; font-style: italic } /* Comment.Preproc */
|
||||
.highlight .cpf { color: #645502; font-style: italic } /* Comment.PreprocFile */
|
||||
.highlight .c1 { color: #645502; font-style: italic } /* Comment.Single */
|
||||
.highlight .cs { color: #645502; font-style: italic } /* Comment.Special */
|
||||
.highlight .gd { color: #a40000 } /* Generic.Deleted */
|
||||
.highlight .gr { color: #ef2929 } /* Generic.Error */
|
||||
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
||||
.highlight .gi { color: #00A000 } /* Generic.Inserted */
|
||||
.highlight .gp { color: #8f7902 } /* Generic.Prompt */
|
||||
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
||||
.highlight .gt { color: #a40000; font-weight: bold } /* Generic.Traceback */
|
||||
.highlight .kc { color: #204a87; font-weight: bold } /* Keyword.Constant */
|
||||
@@ -24,15 +23,15 @@
|
||||
.highlight .kr { color: #204a87; font-weight: bold } /* Keyword.Reserved */
|
||||
.highlight .kt { color: #204a87; font-weight: bold } /* Keyword.Type */
|
||||
.highlight .m { color: #0000cf; font-weight: bold } /* Literal.Number */
|
||||
.highlight .s { color: #4e9a06 } /* Literal.String */
|
||||
.highlight .s { color: #2F5B06 } /* Literal.String */
|
||||
.highlight .na { color: #c4a000 } /* Name.Attribute */
|
||||
.highlight .nb { color: #204a87 } /* Name.Builtin */
|
||||
.highlight .no { color: #00bfff } /* Name.Constant */
|
||||
.highlight .no { color: #000f8f } /* Name.Constant */
|
||||
.highlight .nd { color: #5c35cc; font-weight: bold } /* Name.Decorator */
|
||||
.highlight .ni { color: #ce5c00 } /* Name.Entity */
|
||||
.highlight .ne { color: #cc0000; font-weight: bold } /* Name.Exception */
|
||||
.highlight .nf { color: #005fd7 } /* Name.Function */
|
||||
.highlight .nl { color: #f57900 } /* Name.Label */
|
||||
.highlight .nf { color: #004BCC; } /* Name.Function */
|
||||
.highlight .nl { color: #f57900; } /* Name.Label */
|
||||
.highlight .nt { color: #204a87; font-weight: bold } /* Name.Tag */
|
||||
.highlight .ow { color: #204a87; font-weight: bold } /* Operator.Word */
|
||||
.highlight .w { color: #f8f8f8; } /* Text.Whitespace */
|
||||
@@ -46,13 +45,13 @@
|
||||
.highlight .sc { color: #4e9a06 } /* Literal.String.Char */
|
||||
.highlight .dl { color: #4e9a06 } /* Literal.String.Delimiter */
|
||||
.highlight .sd { color: #8f7902; font-style: italic } /* Literal.String.Doc */
|
||||
.highlight .s2 { color: #4daf08 } /* Literal.String.Double */
|
||||
.highlight .se { color: #00a6b2 } /* Literal.String.Escape */
|
||||
.highlight .s2 { color: #2E6506 } /* Literal.String.Double */
|
||||
.highlight .se { color: #800400 } /* Literal.String.Escape */
|
||||
.highlight .sh { color: #4e9a06 } /* Literal.String.Heredoc */
|
||||
.highlight .si { color: #4e9a06 } /* Literal.String.Interpol */
|
||||
.highlight .sx { color: #4e9a06 } /* Literal.String.Other */
|
||||
.highlight .sr { color: #4e9a06 } /* Literal.String.Regex */
|
||||
.highlight .s1 { color: #d0d00b } /* Literal.String.Single */
|
||||
.highlight .s1 { color: #605000 } /* Literal.String.Single */
|
||||
.highlight .ss { color: #4e9a06 } /* Literal.String.Symbol */
|
||||
.highlight .bp { color: #3465a4 } /* Name.Builtin.Pseudo */
|
||||
.highlight .il { color: #0000cf; font-weight: bold } /* Literal.Number.Integer.Long */
|
||||
@@ -66,12 +65,26 @@
|
||||
:root {
|
||||
--contrast: #FFFFFF;
|
||||
}
|
||||
.highlight .k { color: #507a97; font-weight: bold } /* Keyword */
|
||||
.highlight .nf { color: #008fd7 } /* Name.Function */
|
||||
.highlight .nb { color: #209a87 } /* Name.Builtin */
|
||||
.highlight .no { color: #00bfff } /* Name.Constant */
|
||||
.highlight .p { color: #00bfff; } /* Punctuation */
|
||||
.highlight .k { color: #60A3BE; font-weight: bold } /* Keyword */
|
||||
.highlight .nf { color: #00a0ff } /* Name.Function */
|
||||
.highlight .nb { color: #A0AfF7 } /* Name.Builtin - we don't emit this, it's for bash scripts*/
|
||||
.highlight .s { color: #4eFa06 } /* Literal.String */
|
||||
.highlight .s1 { color: #a0a00b } /* Literal.String.Single */
|
||||
.highlight .s2 { color: #9ce781 } /* Literal.String.Double */
|
||||
.highlight .c { color: #969696; font-style: italic; } /* Comment */
|
||||
.highlight .ch { color: #b19602; font-style: italic } /* Comment.Hashbang */
|
||||
.highlight .cm { color: #b19602; font-style: italic } /* Comment.Multiline */
|
||||
.highlight .cp { color: #b19602; font-style: italic } /* Comment.Preproc */
|
||||
.highlight .cpf { color: #b19602; font-style: italic } /* Comment.PreprocFile */
|
||||
.highlight .c1 { color: #b19602; font-style: italic } /* Comment.Single */
|
||||
.highlight .cs { color: #b19602; font-style: italic } /* Comment.Special */
|
||||
.highlight .o { color: #00F6b2; } /* Operator */
|
||||
.highlight .se { color: #00a6b2 } /* Literal.String.Escape */
|
||||
}
|
||||
.highlight .g { color: var(--contrast) } /* Generic */
|
||||
.highlight .gp { color: var(--contrast) } /* Generic.Prompt */
|
||||
.highlight .l { color: var(--contrast) } /* Literal */
|
||||
.highlight .n { color: var(--contrast) } /* Name */
|
||||
.highlight .x { color: var(--contrast) } /* Other */
|
||||
|
||||
219
po/de.po
219
po/de.po
@@ -4,33 +4,19 @@
|
||||
# Hermann J. Beckers <hj.beckers@onlinehome.de>, 2006.
|
||||
# Benjamin Weis <benjamin.weis@gmx.com>, 2013
|
||||
#
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/exif.fish:1
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/exif.fish:2
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/exif.fish:3
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/exif.fish:4
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/exif.fish:5
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/meson.fish:1
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/meson.fish:2
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/meson.fish:3
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/rustc.fish:3
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/rustc.fish:4
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/rustc.fish:5
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/rustc.fish:6
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/rustc.fish:7
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/rustc.fish:8
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: de\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2022-12-23 11:20+0100\n"
|
||||
"PO-Revision-Date: 2013-11-01 18:36+0100\n"
|
||||
"PO-Revision-Date: 2023-06-01 23:33+0200\n"
|
||||
"Last-Translator: Fabian Homborg\n"
|
||||
"Language-Team: deutsch <de@li.org>\n"
|
||||
"Language: \n"
|
||||
"Language: de\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Lokalize 1.5\n"
|
||||
"X-Generator: Poedit 3.3.1\n"
|
||||
|
||||
#: src/ast.cpp:685 src/ast.cpp:706
|
||||
#, c-format
|
||||
@@ -164,7 +150,7 @@ msgstr "Die Anzahl Argumente zählen"
|
||||
|
||||
#: src/builtin.cpp:376
|
||||
msgid "Remove job from job list"
|
||||
msgstr ""
|
||||
msgstr "Job aus der Jobliste entfernen"
|
||||
|
||||
#: src/builtin.cpp:377
|
||||
msgid "Print arguments"
|
||||
@@ -176,7 +162,7 @@ msgstr "Werte Block aus, wenn die Bedingung falsch ist"
|
||||
|
||||
#: src/builtin.cpp:379
|
||||
msgid "Emit an event"
|
||||
msgstr ""
|
||||
msgstr "Ein Ereignis auslösen"
|
||||
|
||||
#: src/builtin.cpp:380
|
||||
msgid "End a block of commands"
|
||||
@@ -184,7 +170,7 @@ msgstr "Befehlsblock beenden"
|
||||
|
||||
#: src/builtin.cpp:381
|
||||
msgid "Evaluate a string as a statement"
|
||||
msgstr ""
|
||||
msgstr "Eine Zeichenfolge als Befehl ausführen"
|
||||
|
||||
#: src/builtin.cpp:382
|
||||
msgid "Run command in current process"
|
||||
@@ -228,7 +214,7 @@ msgstr "Derzeit laufende Jobs ausgeben"
|
||||
|
||||
#: src/builtin.cpp:392
|
||||
msgid "Evaluate math expressions"
|
||||
msgstr ""
|
||||
msgstr "Mathematische Formel berechnen"
|
||||
|
||||
#: src/builtin.cpp:393
|
||||
msgid "Negate exit status of job"
|
||||
@@ -240,15 +226,15 @@ msgstr "Befehl ausführen, wenn vorheriger Befehl fehlerhaft war"
|
||||
|
||||
#: src/builtin.cpp:395
|
||||
msgid "Handle paths"
|
||||
msgstr ""
|
||||
msgstr "Pfade behandeln"
|
||||
|
||||
#: src/builtin.cpp:396
|
||||
msgid "Prints formatted text"
|
||||
msgstr ""
|
||||
msgstr "Formatierten Text ausgeben"
|
||||
|
||||
#: src/builtin.cpp:397
|
||||
msgid "Print the working directory"
|
||||
msgstr ""
|
||||
msgstr "Das Arbeitsverzeichnis ausgeben"
|
||||
|
||||
#: src/builtin.cpp:398
|
||||
msgid "Generate random number"
|
||||
@@ -260,7 +246,7 @@ msgstr "Eine Eingabezeile in Variablen einlesen"
|
||||
|
||||
#: src/builtin.cpp:400
|
||||
msgid "Show absolute path sans symlinks"
|
||||
msgstr ""
|
||||
msgstr "Absoluten Pfad ohne symbolische Verknüpfungen anzeigen"
|
||||
|
||||
#: src/builtin.cpp:401
|
||||
msgid "Stop the currently evaluated function"
|
||||
@@ -284,11 +270,11 @@ msgstr "Strings manipulieren"
|
||||
|
||||
#: src/builtin.cpp:407
|
||||
msgid "Conditionally run blocks of code"
|
||||
msgstr ""
|
||||
msgstr "Anweisungsblock bedingungsabhängig ausführen"
|
||||
|
||||
#: src/builtin.cpp:409
|
||||
msgid "Measure how long a command or block takes"
|
||||
msgstr ""
|
||||
msgstr "Dauer der Ausführung eines Befehls oder Blocks messen"
|
||||
|
||||
#: src/builtin.cpp:411
|
||||
msgid "Check if a thing is a thing"
|
||||
@@ -296,11 +282,11 @@ msgstr ""
|
||||
|
||||
#: src/builtin.cpp:412
|
||||
msgid "Get/set resource usage limits"
|
||||
msgstr ""
|
||||
msgstr "Ressourcen-Limits abfragen/setzen"
|
||||
|
||||
#: src/builtin.cpp:413
|
||||
msgid "Wait for background processes completed"
|
||||
msgstr ""
|
||||
msgstr "Auf den Abschluss von Hintergrundprozessen warten"
|
||||
|
||||
#: src/builtin.cpp:414
|
||||
msgid "Perform a command multiple times"
|
||||
@@ -318,53 +304,52 @@ msgstr "Heimordner für %ls"
|
||||
#: src/complete.cpp:63
|
||||
#, c-format
|
||||
msgid "Variable: %ls"
|
||||
msgstr ""
|
||||
msgstr "Variable: %ls"
|
||||
|
||||
#: src/complete.cpp:66
|
||||
#, c-format
|
||||
msgid "Abbreviation: %ls"
|
||||
msgstr ""
|
||||
msgstr "Abkürzung: %ls"
|
||||
|
||||
#: src/complete.cpp:1514
|
||||
msgid "completion reached maximum recursion depth, possible cycle?"
|
||||
msgstr ""
|
||||
msgstr "Vervollständigung hat die maximale Rekursionstiefe erreicht, möglicher Kreis?"
|
||||
|
||||
#: src/env.cpp:1340
|
||||
msgid ""
|
||||
"Could not determine current working directory. Is your locale set correctly?"
|
||||
msgstr ""
|
||||
msgid "Could not determine current working directory. Is your locale set correctly?"
|
||||
msgstr "Das aktuelle Arbeitsverzeichnis konnte nicht bestimmt werden. Ist die locale korrekt eingestellt?"
|
||||
|
||||
#: src/env_dispatch.cpp:471
|
||||
#, c-format
|
||||
msgid "Using fallback terminal type '%s'."
|
||||
msgstr ""
|
||||
msgstr "Nutze Rückfallterminaltyp '%s'."
|
||||
|
||||
#: src/env_dispatch.cpp:474
|
||||
#, c-format
|
||||
msgid "Could not set up terminal using the fallback terminal type '%s'."
|
||||
msgstr ""
|
||||
msgstr "Konnte mit dem Rückfallterminaltyp '%s' kein Terminal einrichten."
|
||||
|
||||
#: src/env_dispatch.cpp:575
|
||||
msgid "Could not set up terminal."
|
||||
msgstr ""
|
||||
msgstr "Konnte das Terminal nicht einrichten"
|
||||
|
||||
#: src/env_dispatch.cpp:577
|
||||
msgid "TERM environment variable not set."
|
||||
msgstr ""
|
||||
msgstr "TERM-Umgebungsvariable nicht gesetzt."
|
||||
|
||||
#: src/env_dispatch.cpp:579
|
||||
#, c-format
|
||||
msgid "TERM environment variable set to '%ls'."
|
||||
msgstr ""
|
||||
msgstr "TERM-Umgebungsvariable auf '%ls' gesetzt."
|
||||
|
||||
#: src/env_dispatch.cpp:581
|
||||
msgid "Check that this terminal type is supported on this system."
|
||||
msgstr ""
|
||||
msgstr "Überprüfe, ob dieser Terminaltyp auf diesem System unterstützt wird."
|
||||
|
||||
#: src/env_universal_common.cpp:425
|
||||
#, c-format
|
||||
msgid "Unable to write to universal variables file '%ls': %s"
|
||||
msgstr ""
|
||||
msgstr "Die Universal-Variablen-Datei '%ls' kann nicht geschrieben werden: %s"
|
||||
|
||||
#: src/env_universal_common.cpp:441
|
||||
#, c-format
|
||||
@@ -374,19 +359,17 @@ msgstr "Konnte Datei '%ls' nicht zu '%ls' umbenennen: %s"
|
||||
#: src/env_universal_common.cpp:485
|
||||
#, c-format
|
||||
msgid "Unable to open temporary file '%ls': %s"
|
||||
msgstr ""
|
||||
msgstr "Die temporäre Datei '%ls' kann nicht geöffnet werden: %s"
|
||||
|
||||
#: src/env_universal_common.cpp:499
|
||||
#, c-format
|
||||
msgid "Locking the universal var file took too long (%.3f seconds)."
|
||||
msgstr ""
|
||||
"Die Datei für universelle Variablen zu sperren dauerte zu lange (%.3f "
|
||||
"Sekunden)"
|
||||
msgstr "Die Datei für universelle Variablen zu sperren dauerte zu lange (%.3f Sekunden)"
|
||||
|
||||
#: src/env_universal_common.cpp:542
|
||||
#, c-format
|
||||
msgid "Unable to open universal variable file '%s': %s"
|
||||
msgstr ""
|
||||
msgstr "Die Universal-Variablen-Datei '%s' kann nicht geöffnet werden: %s"
|
||||
|
||||
#: src/env_universal_common.cpp:920
|
||||
#, c-format
|
||||
@@ -411,12 +394,12 @@ msgstr ""
|
||||
#: src/env_universal_common.cpp:1134
|
||||
#, c-format
|
||||
msgid "Unable to make a pipe for universal variables using '%ls': %s"
|
||||
msgstr ""
|
||||
msgstr "Kann keine Pipe für die universalen Variablen über '%ls' anlegen: %s"
|
||||
|
||||
#: src/env_universal_common.cpp:1142
|
||||
#, c-format
|
||||
msgid "Unable to open a pipe for universal variables using '%ls': %s"
|
||||
msgstr ""
|
||||
msgstr "Kann keine Pipe für die universalen Variablen über '%ls' öffnen: %s"
|
||||
|
||||
#: src/event.cpp:184
|
||||
#, c-format
|
||||
@@ -463,7 +446,7 @@ msgstr ""
|
||||
|
||||
#: src/expand.cpp:555
|
||||
msgid "Mismatched braces"
|
||||
msgstr ""
|
||||
msgstr "Unpassende Klammern"
|
||||
|
||||
#: src/fish.cpp:395
|
||||
#, c-format
|
||||
@@ -477,12 +460,12 @@ msgstr "Kann den no-execute Modus nicht in einer interaktiven Sitzung nutzen"
|
||||
#: src/fish.cpp:581
|
||||
#, c-format
|
||||
msgid "Error reading script file '%s':"
|
||||
msgstr ""
|
||||
msgstr "Die Script-Datei '%s' kann nicht gelesen werden:"
|
||||
|
||||
#: src/fish.cpp:595
|
||||
#, c-format
|
||||
msgid "Error while reading file %ls\n"
|
||||
msgstr ""
|
||||
msgstr "Fehler beim Lesen der Datei %ls\n"
|
||||
|
||||
#: src/fish_indent.cpp:932 src/fish_key_reader.cpp:317
|
||||
#, c-format
|
||||
@@ -508,7 +491,7 @@ msgstr "Öffnen von \"%s\" fehlgeschlagen: %s\n"
|
||||
#: src/fish_indent.cpp:1072
|
||||
#, c-format
|
||||
msgid "%s\n"
|
||||
msgstr ""
|
||||
msgstr "%s\n"
|
||||
|
||||
#: src/history.cpp:381
|
||||
#, c-format
|
||||
@@ -518,41 +501,41 @@ msgstr "Sperren der Geschichts-Datei dauerte zu lang (%.3f Sekunden)."
|
||||
#: src/history.cpp:887
|
||||
#, c-format
|
||||
msgid "Error when renaming history file: %s"
|
||||
msgstr ""
|
||||
msgstr "Fehler beim Umbenennen der Verlaufsdatei: %s"
|
||||
|
||||
#: src/history.cpp:1285
|
||||
#, c-format
|
||||
msgid "History session ID '%ls' is not a valid variable name. "
|
||||
msgstr ""
|
||||
msgstr "Verlaufssitzungs-ID '%ls' ist kein gültiger Variablenname."
|
||||
|
||||
#: src/io.cpp:25
|
||||
#, c-format
|
||||
msgid "An error occurred while redirecting file '%ls'"
|
||||
msgstr ""
|
||||
msgstr "Bei der Umleitung der Datei '%ls' ist ein Fehler aufgetreten"
|
||||
|
||||
#: src/io.cpp:26
|
||||
#, c-format
|
||||
msgid "The file '%ls' already exists"
|
||||
msgstr ""
|
||||
msgstr "Die Datei '%ls' existiert bereits"
|
||||
|
||||
#: src/io.cpp:254
|
||||
#, c-format
|
||||
msgid "Path '%ls' is not a directory"
|
||||
msgstr ""
|
||||
msgstr "Pfad '%ls' ist kein Ordner"
|
||||
|
||||
#: src/io.cpp:257
|
||||
#, c-format
|
||||
msgid "Path '%ls' does not exist"
|
||||
msgstr ""
|
||||
msgstr "Pfad '%ls' nicht gefunden"
|
||||
|
||||
#: src/output.cpp:434
|
||||
#, c-format
|
||||
#, fuzzy, c-format
|
||||
msgid "Tried to use terminfo string %s on line %ld of %s, which is "
|
||||
msgstr ""
|
||||
msgstr "Versucht, terminfo Text %s in Zeile %ld von %s zu nutzen, welcher undefiniert ist. Bitte melde diesen Fehler."
|
||||
|
||||
#: src/pager.cpp:45
|
||||
msgid "search: "
|
||||
msgstr ""
|
||||
msgstr "Suche: "
|
||||
|
||||
#: src/pager.cpp:541
|
||||
#, c-format
|
||||
@@ -566,32 +549,31 @@ msgstr "Zeilen %lu bis %lu von %lu"
|
||||
|
||||
#: src/pager.cpp:551
|
||||
msgid "(no matches)"
|
||||
msgstr ""
|
||||
msgstr "(keine Treffer)"
|
||||
|
||||
#: src/parse_execution.cpp:524
|
||||
#, c-format
|
||||
msgid "switch: Expected at most one argument, got %lu\n"
|
||||
msgstr ""
|
||||
msgstr "switch: Erwartet höchstens einen Parameter, aber %lu angegeben\n"
|
||||
|
||||
#: src/parse_execution.cpp:740
|
||||
#, c-format
|
||||
msgid ""
|
||||
"Unknown command. A component of '%ls' is not a directory. Check your $PATH."
|
||||
msgstr ""
|
||||
msgid "Unknown command. A component of '%ls' is not a directory. Check your $PATH."
|
||||
msgstr "Befehl nicht gefunden. Ein Element von '%ls' ist kein Verzeichnis. Überprüfe deinen $PATH"
|
||||
|
||||
#: src/parse_execution.cpp:744
|
||||
#, c-format
|
||||
msgid "Unknown command. A component of '%ls' is not a directory."
|
||||
msgstr ""
|
||||
msgstr "Befehl nicht gefunden. Eine Komponente von '%ls' ist kein Verzeichnis."
|
||||
|
||||
#: src/parse_execution.cpp:750
|
||||
#, c-format
|
||||
msgid "Unknown command. '%ls' exists but is not an executable file."
|
||||
msgstr ""
|
||||
msgstr "Befehl nicht gefunden. '%ls' existiert, ist aber keine ausführbare Datei."
|
||||
|
||||
#: src/parse_execution.cpp:791
|
||||
msgid "Unknown command:"
|
||||
msgstr ""
|
||||
msgstr "Befehl nicht gefunden:"
|
||||
|
||||
#: src/parse_execution.cpp:839
|
||||
msgid "The expanded command was empty."
|
||||
@@ -600,38 +582,38 @@ msgstr ""
|
||||
#: src/parse_execution.cpp:1005
|
||||
#, c-format
|
||||
msgid "Invalid redirection: %ls"
|
||||
msgstr ""
|
||||
msgstr "Ungültige Umleitung: %ls"
|
||||
|
||||
#: src/parse_execution.cpp:1016
|
||||
#, c-format
|
||||
msgid "Invalid redirection target: %ls"
|
||||
msgstr ""
|
||||
msgstr "Ungültiges Umleitungsziel: %ls"
|
||||
|
||||
#: src/parse_execution.cpp:1027
|
||||
#, c-format
|
||||
msgid "Requested redirection to '%ls', which is not a valid file descriptor"
|
||||
msgstr ""
|
||||
msgstr "Umleitung zu '%ls' angefordert, dies ist aber kein gültiger Dateideskriptor"
|
||||
|
||||
#: src/parse_util.cpp:34
|
||||
#, c-format
|
||||
msgid "The '%ls' command can not be used immediately after a backgrounded job"
|
||||
msgstr ""
|
||||
msgstr "Der Befehl '%ls' kann nicht direkt nach einem Hintergrundjob aufgerufen werden"
|
||||
|
||||
#: src/parse_util.cpp:38
|
||||
msgid "Backgrounded commands can not be used as conditionals"
|
||||
msgstr ""
|
||||
msgstr "Hintergrundbefehle können nicht als Bedingungen benutzt werden"
|
||||
|
||||
#: src/parse_util.cpp:41
|
||||
msgid "'end' does not take arguments. Did you forget a ';'?"
|
||||
msgstr ""
|
||||
msgstr "'end' braucht keine Parameter. Fehlendes ';'?"
|
||||
|
||||
#: src/parse_util.cpp:44
|
||||
msgid "The 'time' command may only be at the beginning of a pipeline"
|
||||
msgstr ""
|
||||
msgstr "Der 'time' Befehl darf nur am Anfang einer Pipeline stehen"
|
||||
|
||||
#: src/parse_util.cpp:1180
|
||||
msgid "$status is not valid as a command. See `help conditions`"
|
||||
msgstr ""
|
||||
msgstr "$status ist kein gültiger Befehl. Siehe `help conditions`"
|
||||
|
||||
#: src/parser.cpp:166
|
||||
#, c-format
|
||||
@@ -645,35 +627,35 @@ msgstr "Zeit\tSum\tBefehl\n"
|
||||
#: src/parser.cpp:220
|
||||
#, c-format
|
||||
msgid "in function '%ls'"
|
||||
msgstr ""
|
||||
msgstr "in der Funktion '%ls'"
|
||||
|
||||
#: src/parser.cpp:235
|
||||
#, c-format
|
||||
msgid " with arguments '%ls'"
|
||||
msgstr ""
|
||||
msgstr "mit den Parametern '%ls'"
|
||||
|
||||
#: src/parser.cpp:242
|
||||
msgid "in command substitution\n"
|
||||
msgstr ""
|
||||
msgstr "in der Befehlsersetzung\n"
|
||||
|
||||
#: src/parser.cpp:248
|
||||
#, c-format
|
||||
msgid "from sourcing file %ls\n"
|
||||
msgstr ""
|
||||
msgstr "aus der Quelldatei %ls\n"
|
||||
|
||||
#: src/parser.cpp:256
|
||||
#, c-format
|
||||
msgid "in event handler: %ls\n"
|
||||
msgstr ""
|
||||
msgstr "im Ereignis-Handler: %ls\n"
|
||||
|
||||
#: src/parser.cpp:276
|
||||
#, c-format
|
||||
msgid "\tcalled on line %d of file %ls\n"
|
||||
msgstr ""
|
||||
msgstr "\taufgerufen in Zeile %d der Datei %ls\n"
|
||||
|
||||
#: src/parser.cpp:279
|
||||
msgid "\tcalled during startup\n"
|
||||
msgstr ""
|
||||
msgstr "\twährend des Starts aufgerufen\n"
|
||||
|
||||
#: src/parser.cpp:428
|
||||
#, c-format
|
||||
@@ -682,21 +664,21 @@ msgstr "%ls (Zeile %d): "
|
||||
|
||||
#: src/parser.cpp:431
|
||||
msgid "Startup"
|
||||
msgstr ""
|
||||
msgstr "Start"
|
||||
|
||||
#: src/parser.cpp:433
|
||||
msgid "Standard input"
|
||||
msgstr ""
|
||||
msgstr "Standardeingabe"
|
||||
|
||||
#: src/parser.cpp:647
|
||||
#, c-format
|
||||
msgid "%ls (line %lu): "
|
||||
msgstr ""
|
||||
msgstr "%ls (Zeile %lu): "
|
||||
|
||||
#: src/parser.cpp:651
|
||||
#, c-format
|
||||
msgid "%ls: "
|
||||
msgstr ""
|
||||
msgstr "%ls: "
|
||||
|
||||
#: src/path.cpp:291
|
||||
#, c-format
|
||||
@@ -706,8 +688,7 @@ msgstr ""
|
||||
#: src/path.cpp:293
|
||||
#, c-format
|
||||
msgid "Please set the %ls or HOME environment variable before starting fish."
|
||||
msgstr ""
|
||||
"Bitte setzen sie %ls oder die HOME Umgebungsvariable bevor sie fish starten."
|
||||
msgstr "Bitte setzen sie %ls oder die HOME Umgebungsvariable bevor sie fish starten."
|
||||
|
||||
#: src/path.cpp:297
|
||||
#, c-format
|
||||
@@ -747,8 +728,7 @@ msgid "A second attempt to exit will terminate them.\n"
|
||||
msgstr "Ein zweites 'exit' wird sie beenden.\n"
|
||||
|
||||
#: src/proc.cpp:207
|
||||
msgid ""
|
||||
"Use 'disown PID' to remove jobs from the list without terminating them.\n"
|
||||
msgid "Use 'disown PID' to remove jobs from the list without terminating them.\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/proc.cpp:900
|
||||
@@ -777,8 +757,7 @@ msgid "No TTY for interactive shell (tcgetpgrp failed)"
|
||||
msgstr "Kein TTY für interaktive Shell (tcgetpgrp schlug fehl)"
|
||||
|
||||
#: src/reader.cpp:2493
|
||||
msgid ""
|
||||
"I appear to be an orphaned process, so I am quitting politely. My pid is "
|
||||
msgid "I appear to be an orphaned process, so I am quitting politely. My pid is "
|
||||
msgstr ""
|
||||
|
||||
#: src/reader.cpp:2535
|
||||
@@ -1113,23 +1092,17 @@ msgstr "Fehler beim Einrichten der Pipe aufgetreten"
|
||||
|
||||
#: src/parse_constants.h:229
|
||||
#, c-format
|
||||
msgid ""
|
||||
"The function '%ls' calls itself immediately, which would result in an "
|
||||
"infinite loop."
|
||||
msgstr ""
|
||||
"Die Funktion '%ls' ruft sich sofort selbst auf. Dies wäre eine "
|
||||
"Endlosschleife."
|
||||
msgid "The function '%ls' calls itself immediately, which would result in an infinite loop."
|
||||
msgstr "Die Funktion '%ls' ruft sich sofort selbst auf. Dies wäre eine Endlosschleife."
|
||||
|
||||
#: src/parse_constants.h:233
|
||||
msgid ""
|
||||
"The call stack limit has been exceeded. Do you have an accidental infinite "
|
||||
"loop?"
|
||||
msgid "The call stack limit has been exceeded. Do you have an accidental infinite loop?"
|
||||
msgstr ""
|
||||
|
||||
#: src/parse_constants.h:236
|
||||
#, c-format
|
||||
msgid "Unknown builtin '%ls'"
|
||||
msgstr "unbekannter interner Befehl '%ls'"
|
||||
msgstr "Unbekannter interner Befehl '%ls'"
|
||||
|
||||
#: src/parse_constants.h:239
|
||||
#, c-format
|
||||
@@ -1199,14 +1172,11 @@ msgid "Unsupported use of '='. In fish, please use 'set %ls %ls'."
|
||||
msgstr ""
|
||||
|
||||
#: src/parse_constants.h:289
|
||||
msgid ""
|
||||
"'time' is not supported for background jobs. Consider using 'command time'."
|
||||
msgid "'time' is not supported for background jobs. Consider using 'command time'."
|
||||
msgstr ""
|
||||
|
||||
#: src/parse_constants.h:293
|
||||
msgid ""
|
||||
"'{ ... }' is not supported for grouping commands. Please use 'begin; ...; "
|
||||
"end'"
|
||||
msgid "'{ ... }' is not supported for grouping commands. Please use 'begin; ...; end'"
|
||||
msgstr ""
|
||||
|
||||
#: src/parse_tree.h:63
|
||||
@@ -1316,8 +1286,7 @@ msgid "Select directory by letter or number: "
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish.i8YroE/explicit/share/functions/cdh.fish:6
|
||||
msgid ""
|
||||
"Error: expected a number between 1 and %d or letter in that range, got \"%s\""
|
||||
msgid "Error: expected a number between 1 and %d or letter in that range, got \"%s\""
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish.i8YroE/explicit/share/functions/edit_command_buffer.fish:2
|
||||
@@ -5692,7 +5661,7 @@ msgstr "Inhalt der Konfigurationsdatei ausgeben"
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/apt-extracttemplates.fish:2
|
||||
msgid "Set temp dir"
|
||||
msgstr "temp-Verzeichnis festlegen"
|
||||
msgstr "Temp-Verzeichnis festlegen"
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/apt-file.fish:2
|
||||
msgid "Resync package contents from source"
|
||||
@@ -5733,7 +5702,7 @@ msgstr "Architektur festlegen"
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/apt-file.fish:13
|
||||
msgid "Set sources.list file"
|
||||
msgstr "sources.list-Datei angeben"
|
||||
msgstr "Sources.list-Datei festlegen"
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/apt-file.fish:14
|
||||
msgid "Only display package name"
|
||||
@@ -6058,7 +6027,7 @@ msgstr "Zeitablauf für Zwischenspeicher angeben"
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/apt-listbugs.fish:19
|
||||
msgid "Specify apt config file"
|
||||
msgstr "apt-Konfigurationsdatei angeben"
|
||||
msgstr "Apt-Konfigurationsdatei angeben"
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/apt-listbugs.fish:21
|
||||
msgid "Assume no to all questions"
|
||||
@@ -6233,7 +6202,7 @@ msgstr "Keine Meldungen auf Standardausgabe"
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/apt-proxy-import.fish:5
|
||||
msgid "Recurse into subdir"
|
||||
msgstr "in Unterverzeichnis verzweigen"
|
||||
msgstr "In Unterverzeichnisse absteigen"
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/apt-proxy-import.fish:6
|
||||
msgid "Dir to import"
|
||||
@@ -6261,7 +6230,7 @@ msgstr "Status der Abhängigkeiten anzeigen"
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/apt-rdepends.fish:5
|
||||
msgid "List packages depending on"
|
||||
msgstr "Pakete auflisten, die abhängen von "
|
||||
msgstr "Pakete auflisten, die abhängen von"
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/apt-rdepends.fish:6
|
||||
msgid "Comma-separated list of dependency types to follow recursively"
|
||||
@@ -13475,7 +13444,7 @@ msgstr ""
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/castnow.fish:14
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/mplayer.fish:7
|
||||
msgid "Play in random order"
|
||||
msgstr "in zufälliger Reihenfolge spielen"
|
||||
msgstr "In zufälliger Reihenfolge spielen"
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/castnow.fish:15
|
||||
msgid "List all files in directories recursively"
|
||||
@@ -16138,7 +16107,7 @@ msgstr ""
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/complete.fish:5
|
||||
msgid "Old style long option to complete"
|
||||
msgstr "zu vervollständigende lange Option im alten Format"
|
||||
msgstr "Zu vervollständigende lange Option im alten Format"
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/complete.fish:6
|
||||
msgid "Don't use file completion"
|
||||
@@ -22557,10 +22526,9 @@ msgstr "Änderung in der Anzahl von Worttrennern ignorieren"
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/diff.fish:6
|
||||
msgid "Ignore all white space"
|
||||
msgstr "white space (Worttrenner) ignorieren"
|
||||
msgstr "Alle Leerräume (Worttrenner) ignorieren"
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/diff.fish:7
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/git.fish:36
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/diff.fish:7 /tmp/fish.i8YroE/implicit/share/completions/git.fish:36
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/git.fish:802
|
||||
msgid "Ignore changes whose lines are all blank"
|
||||
msgstr "Änderungen ignorieren, deren Zeilen alle leer sind"
|
||||
@@ -23262,8 +23230,7 @@ msgid "Skip the interactive TUI and validate against CI rules"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/dive.fish:2
|
||||
msgid ""
|
||||
"If CI=true in the environment, use the given yaml to drive validation rules"
|
||||
msgid "If CI=true in the environment, use the given yaml to drive validation rules"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/dive.fish:3
|
||||
@@ -23287,9 +23254,7 @@ msgid "Ignore image parsing errors and run the analysis anyway"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/dive.fish:8
|
||||
msgid ""
|
||||
"Skip the interactive TUI and write the layer analysis statistics to a given "
|
||||
"file"
|
||||
msgid "Skip the interactive TUI and write the layer analysis statistics to a given file"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish.i8YroE/implicit/share/completions/dive.fish:9
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
function __fish_adb_no_subcommand -d 'Test if adb has yet to be given the subcommand'
|
||||
for i in (commandline -opc)
|
||||
if contains -- $i connect disconnect devices push pull sync shell emu logcat install uninstall jdwp forward bugreport backup restore version help wait-for-device start-server kill-server remount reboot get-state get-serialno get-devpath status-window root usb tcpip ppp sideload reconnect
|
||||
if contains -- $i connect disconnect devices push pull sync shell emu logcat install uninstall jdwp forward bugreport backup restore version help start-server kill-server remount reboot get-state get-serialno get-devpath status-window root usb tcpip ppp sideload reconnect unroot exec-out
|
||||
return 1
|
||||
end
|
||||
end
|
||||
@@ -14,7 +14,7 @@ function __fish_adb_get_devices -d 'Run adb devices and parse output'
|
||||
set -l procs (ps -Ao comm= | string match 'adb')
|
||||
# Don't run adb devices unless the server is already started - it takes a while to init
|
||||
if set -q procs[1]
|
||||
adb devices -l | string replace -rf '(\S+).*model:(\S+).*' '$1'\t'$2'
|
||||
adb devices -l | string replace -rf '(\S+).*product:(\S+).*model:(\S+).*' '$1'\t'$2 $3'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -74,11 +74,22 @@ function __fish_adb_list_files
|
||||
end
|
||||
|
||||
# Return list of directories suffixed with '/'
|
||||
__fish_adb_run_command find -H "$token*" -maxdepth 0 -type d 2\>/dev/null | awk '{print $1"/"}'
|
||||
__fish_adb_run_command find -H "$token*" -maxdepth 0 -type d 2\>/dev/null | awk '{print $0"/"}'
|
||||
# Return list of files
|
||||
__fish_adb_run_command find -H "$token*" -maxdepth 0 -type f 2\>/dev/null
|
||||
end
|
||||
|
||||
function __fish_adb_list_bin
|
||||
# list all binary without group
|
||||
__fish_adb_run_command ls -1 /system/bin/ 2\>/dev/null
|
||||
__fish_adb_run_command ls -1 /system/xbin/ 2\>/dev/null
|
||||
|
||||
end
|
||||
|
||||
function __fish_adb_list_properties
|
||||
__fish_adb_run_command getprop | string match -rg '\[(.*)\]:'
|
||||
end
|
||||
|
||||
# Generic options, must come before command
|
||||
complete -n __fish_adb_no_subcommand -c adb -o a -d 'Listen on all network interfaces'
|
||||
complete -n __fish_adb_no_subcommand -c adb -o d -d 'Use first USB device'
|
||||
@@ -118,11 +129,13 @@ complete -f -n __fish_adb_no_subcommand -c adb -a get-serialno -d 'Prints serial
|
||||
complete -f -n __fish_adb_no_subcommand -c adb -a get-devpath -d 'Prints device path'
|
||||
complete -f -n __fish_adb_no_subcommand -c adb -a status-window -d 'Continuously print the device status'
|
||||
complete -f -n __fish_adb_no_subcommand -c adb -a root -d 'Restart the adbd daemon with root permissions'
|
||||
complete -f -n __fish_adb_no_subcommand -c adb -a unroot -d 'Restart the adbd daemon without root permissions'
|
||||
complete -f -n __fish_adb_no_subcommand -c adb -a usb -d 'Restart the adbd daemon listening on USB'
|
||||
complete -f -n __fish_adb_no_subcommand -c adb -a tcpip -d 'Restart the adbd daemon listening on TCP'
|
||||
complete -f -n __fish_adb_no_subcommand -c adb -a ppp -d 'Run PPP over USB'
|
||||
complete -f -n __fish_adb_no_subcommand -c adb -a sideload -d 'Sideloads the given package'
|
||||
complete -f -n __fish_adb_no_subcommand -c adb -a reconnect -d 'Kick current connection from host side and make it reconnect.'
|
||||
complete -f -n __fish_adb_no_subcommand -c adb -a exec-out -d 'Execute a command on the device and send its stdout back'
|
||||
|
||||
# install options
|
||||
complete -n '__fish_seen_subcommand_from install' -c adb -s l -d 'Forward-lock the app'
|
||||
@@ -207,3 +220,11 @@ complete -n '__fish_seen_subcommand_from logcat' -c adb -s e -l regex -d 'Only p
|
||||
complete -n '__fish_seen_subcommand_from logcat' -c adb -s m -l max-count -d 'Quit after print <count> lines'
|
||||
complete -n '__fish_seen_subcommand_from logcat' -c adb -l print -d 'Print all message even if they do not matches, requires --regex and --max-count'
|
||||
complete -n '__fish_seen_subcommand_from logcat' -c adb -l uid -d 'Only display log messages from UIDs present in the comma separate list <uids>'
|
||||
|
||||
# commands that accept listing device binaries
|
||||
complete -n '__fish_seen_subcommand_from exec-out' -c adb -f -a "(__fish_adb_list_bin)" -d "Command on device"
|
||||
complete -n '__fish_seen_subcommand_from shell' -c adb -f -a "(__fish_adb_list_bin)" -d "Command on device"
|
||||
|
||||
# setprop and getprop in shell
|
||||
complete -n '__fish_seen_subcommand_from setprop' -c adb -f -a "(__fish_adb_list_properties)" -d 'Property to set'
|
||||
complete -n '__fish_seen_subcommand_from getprop' -c adb -f -a "(__fish_adb_list_properties)" -d 'Property to get'
|
||||
|
||||
3
share/completions/age-keygen.fish
Normal file
3
share/completions/age-keygen.fish
Normal file
@@ -0,0 +1,3 @@
|
||||
complete -c age-keygen -s o -l output -n "not __fish_contains_opt -s o output" -d "output file for secret key"
|
||||
complete -c age-keygen -s y -n "not __fish_contains_opt -s y" -d "read identity file, print recipient(s)"
|
||||
complete -c age -l version -d "print version number"
|
||||
9
share/completions/age.fish
Normal file
9
share/completions/age.fish
Normal file
@@ -0,0 +1,9 @@
|
||||
complete -c age -s e -l encrypt -n "not __fish_contains_opt -s d decrypt" -d "encrypt"
|
||||
complete -c age -s r -l recipient -n "not __fish_contains_opt -s d decrypt; and not __fish_contains_opt -s p passphrase" -d "public key"
|
||||
complete -c age -s R -l recipients-file -n "not __fish_contains_opt -s d decrypt; and not __fish_contains_opt -s p passphrase" -d "file with public key(s)"
|
||||
complete -c age -s a -l armor -n "not __fish_contains_opt -s d decrypt" -d "PEM encode ciphertext"
|
||||
complete -c age -s p -l passphrase -n "not __fish_contains_opt -s d decrypt; and not __fish_contains_opt -s r recipient -s R recipients-file" -d "passphrase"
|
||||
complete -c age -s d -l decrypt -n "not __fish_contains_opt -s e encrypt" -d "decrypt"
|
||||
complete -c age -s i -l identity -n "__fish_contains_opt -s e encrypt -s d decrypt" -d "file with private key(s)"
|
||||
complete -c age -s j -n "__fish_contains_opt -s e encrypt -s d decrypt" -d "plugin"
|
||||
complete -c age -l version -d "print version number"
|
||||
6
share/completions/airmon-ng.fish
Normal file
6
share/completions/airmon-ng.fish
Normal file
@@ -0,0 +1,6 @@
|
||||
#airmon-ng
|
||||
|
||||
set -l commands "start stop check"
|
||||
complete -c airmon-ng -x -n "not __fish_seen_subcommand_from $commands" -a "$commands"
|
||||
complete -c airmon-ng -x -n "__fish_seen_subcommand_from $commands; and not __fish_seen_subcommand_from (__fish_print_interfaces)" -a "(__fish_print_interfaces)"
|
||||
complete -c airmon-ng -f
|
||||
@@ -8,7 +8,7 @@ complete -c ansible -s f -l forks -a "(seq 0 100)" -d "Number of parallel proces
|
||||
complete -c ansible -s h -l help -d "Shows a help message"
|
||||
complete -c ansible -s i -l inventory -r -d "Specify inventory host path or comma separated host list"
|
||||
complete -c ansible -s l -l limit -r -d "Further limit selected hosts to an additional pattern"
|
||||
complete -c ansible -l limit-hosts -r -d "List all matching hosts"
|
||||
complete -c ansible -l list-hosts -r -d "List all matching hosts"
|
||||
complete -c ansible -s m -l module-name -r -d "Module name to execute (default=command)"
|
||||
complete -c ansible -s M -l module-path -r -d "Specify path(s) to module library (default=None)"
|
||||
complete -c ansible -l new-vault-password-file -f -d "New vault password file for rekey"
|
||||
|
||||
91
share/completions/apkanalyzer.fish
Normal file
91
share/completions/apkanalyzer.fish
Normal file
@@ -0,0 +1,91 @@
|
||||
set -l subcommands apk files manifest dex resources
|
||||
|
||||
set -l apk_subcommands summary file-size download-size features compare
|
||||
set -l files_subcommands list cat
|
||||
set -l manifest_subcommands print application-id version-name version-code min-sdk target-sdk permissions debuggable
|
||||
set -l dex_subcommands list references packages code
|
||||
set -l resources_subcommands package configs value name xml
|
||||
|
||||
|
||||
complete -f -n "not __fish_seen_subcommand_from $subcommands" -c apkanalyzer -a apk -d 'Analyze APK file attributes'
|
||||
complete -f -n "not __fish_seen_subcommand_from $subcommands" -c apkanalyzer -a files -d 'Analyze the files inside the APK file'
|
||||
complete -f -n "not __fish_seen_subcommand_from $subcommands" -c apkanalyzer -a manifest -d 'Analyze the contents of the manifest file'
|
||||
complete -f -n "not __fish_seen_subcommand_from $subcommands" -c apkanalyzer -a dex -d 'Analyze the DEX files inside the APK file'
|
||||
complete -f -n "not __fish_seen_subcommand_from $subcommands" -c apkanalyzer -a resources -d 'View text, image and string resources'
|
||||
|
||||
# global-option
|
||||
complete -n "not __fish_seen_subcommand_from $apk_subcommands $files_subcommands $manifest_subcommands $dex_subcommands $resources_subcommands" -c apkanalyzer -s h -l human-readable -d 'Human-readable output'
|
||||
|
||||
# apk
|
||||
complete -f -n "__fish_seen_subcommand_from apk; and not __fish_seen_subcommand_from $apk_subcommands" -c apkanalyzer -a summary -d 'Prints the application ID, version code, and version name'
|
||||
complete -f -n "__fish_seen_subcommand_from apk; and not __fish_seen_subcommand_from $apk_subcommands" -c apkanalyzer -a file-size -d 'Prints the total file size of the APK'
|
||||
complete -f -n "__fish_seen_subcommand_from apk; and not __fish_seen_subcommand_from $apk_subcommands" -c apkanalyzer -a download-size -d 'Prints an estimate of the download size of the APK'
|
||||
complete -f -n "__fish_seen_subcommand_from apk; and not __fish_seen_subcommand_from $apk_subcommands" -c apkanalyzer -a features -d 'Prints features used by the APK that trigger Play Store filtering'
|
||||
complete -f -n "__fish_seen_subcommand_from apk; and not __fish_seen_subcommand_from $apk_subcommands" -c apkanalyzer -a compare -d 'Compares the sizes of apk-file and apk-file'
|
||||
# apk options
|
||||
complete -n '__fish_seen_subcommand_from apk; and __fish_seen_subcommand_from features' -c apkanalyzer -l not-required -d 'Include features marked as not required in the output'
|
||||
complete -n '__fish_seen_subcommand_from apk; and __fish_seen_subcommand_from compare' -c apkanalyzer -l different-only -d 'Prints directories and files with differences'
|
||||
complete -n '__fish_seen_subcommand_from apk; and __fish_seen_subcommand_from compare' -c apkanalyzer -l files-only -d 'Does not print directory entries'
|
||||
complete -n '__fish_seen_subcommand_from apk; and __fish_seen_subcommand_from compare' -c apkanalyzer -l patch-size -d 'Shows an estimate of the file-by-file patch instead of a raw difference'
|
||||
|
||||
complete -n "__fish_seen_subcommand_from apk; and __fish_seen_subcommand_from $apk_subcommands" -c apkanalyzer -ka '(__fish_complete_suffix .apk)'
|
||||
|
||||
# files
|
||||
complete -f -n "__fish_seen_subcommand_from files; and not __fish_seen_subcommand_from $apk_subcommands" -c apkanalyzer -a list -d 'Lists all files in the APK'
|
||||
complete -f -n "__fish_seen_subcommand_from files; and not __fish_seen_subcommand_from $apk_subcommands" -c apkanalyzer -a cat -d 'Prints out the file contents'
|
||||
# files options
|
||||
complete -n '__fish_seen_subcommand_from files; and __fish_seen_subcommand_from list' -c apkanalyzer -l file -d 'Specify a path inside the APK' -r
|
||||
|
||||
complete -n "__fish_seen_subcommand_from files; and __fish_seen_subcommand_from $files_subcommands" -c apkanalyzer -ka '(__fish_complete_suffix .apk)'
|
||||
|
||||
# manifest
|
||||
complete -f -n "__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands" -c apkanalyzer -a print -d 'Prints the APK manifest in XML format'
|
||||
complete -f -n "__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands" -c apkanalyzer -a application-id -d 'Prints the application ID value'
|
||||
complete -f -n "__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands" -c apkanalyzer -a version-name -d 'Prints the version name value'
|
||||
complete -f -n "__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands" -c apkanalyzer -a version-code -d 'Prints the version code value'
|
||||
complete -f -n "__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands" -c apkanalyzer -a min-sdk -d 'Prints the minimum SDK version'
|
||||
complete -f -n "__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands" -c apkanalyzer -a target-sdk -d 'Prints the target SDK version'
|
||||
complete -f -n "__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands" -c apkanalyzer -a permissions -d 'Prints the list of permissions'
|
||||
complete -f -n "__fish_seen_subcommand_from manifest; and not __fish_seen_subcommand_from $manifest_subcommands" -c apkanalyzer -a debuggable -d 'Prints whether the APK is debuggable'
|
||||
|
||||
complete -n "__fish_seen_subcommand_from manifest; and __fish_seen_subcommand_from $manifest_subcommands" -c apkanalyzer -ka '(__fish_complete_suffix .apk)'
|
||||
|
||||
# dex
|
||||
complete -f -n "__fish_seen_subcommand_from dex; and not __fish_seen_subcommand_from $dex_subcommands" -c apkanalyzer -a list -d 'Prints a list of the DEX files in the APK'
|
||||
complete -f -n "__fish_seen_subcommand_from dex; and not __fish_seen_subcommand_from $dex_subcommands" -c apkanalyzer -a references -d 'Prints the number of method references in the specified DEX files'
|
||||
complete -f -n "__fish_seen_subcommand_from dex; and not __fish_seen_subcommand_from $dex_subcommands" -c apkanalyzer -a packages -d 'Prints the class tree from DEX'
|
||||
complete -f -n "__fish_seen_subcommand_from dex; and not __fish_seen_subcommand_from $dex_subcommands" -c apkanalyzer -a code -d 'Prints the bytecode of a class or method in smali format'
|
||||
# dex options
|
||||
complete -n '__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from references' -c apkanalyzer -l files -d 'Indicate specific files that you want to include' -r
|
||||
complete -n '__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from packages' -c apkanalyzer -l defined-only -d 'Includes only classes defined in the APK in the output'
|
||||
complete -n '__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from packages' -c apkanalyzer -l files -d 'Specifies the DEX file names to include'
|
||||
complete -n '__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from packages' -c apkanalyzer -l proguard-folder -d 'Specifies the Proguard output folder to search for mappings'
|
||||
complete -n '__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from packages' -c apkanalyzer -l proguard-mapping -d 'Specifies the Proguard mapping file'
|
||||
complete -n '__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from packages' -c apkanalyzer -l proguard-seeds -d 'Specifies the Proguard seeds file'
|
||||
complete -n '__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from packages' -c apkanalyzer -l proguard-usage -d 'Specifies the Proguard usage file'
|
||||
complete -n '__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from packages' -c apkanalyzer -l show-removed -d 'Shows classes and members that were removed by Proguard'
|
||||
complete -n '__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from code' -c apkanalyzer -l class -d 'Specifies the class name to print'
|
||||
complete -n '__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from code' -c apkanalyzer -l method -d 'Specifies the method name to print'
|
||||
|
||||
complete -n "__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from $dex_subcommands" -c apkanalyzer -ka '(__fish_complete_suffix .apk)'
|
||||
complete -n '__fish_seen_subcommand_from dex; and __fish_seen_subcommand_from code' -c apkanalyzer -ka '(__fish_complete_suffix .class)'
|
||||
|
||||
# resources
|
||||
complete -f -n "__fish_seen_subcommand_from resources; and not __fish_seen_subcommand_from $resources_subcommands" -c apkanalyzer -a packages -d 'Prints a list of the packages that are defined in the resources table'
|
||||
complete -f -n "__fish_seen_subcommand_from resources; and not __fish_seen_subcommand_from $resources_subcommands" -c apkanalyzer -a configs -d 'Prints a list of configurations for the specified type'
|
||||
complete -f -n "__fish_seen_subcommand_from resources; and not __fish_seen_subcommand_from $resources_subcommands" -c apkanalyzer -a value -d 'Prints the value of the resource specified by config, name, and type'
|
||||
complete -f -n "__fish_seen_subcommand_from resources; and not __fish_seen_subcommand_from $resources_subcommands" -c apkanalyzer -a names -d 'Prints a list of resource names for a configuration and type'
|
||||
complete -f -n "__fish_seen_subcommand_from resources; and not __fish_seen_subcommand_from $resources_subcommands" -c apkanalyzer -a xml -d 'Prints the human-readable form of a binary XML file'
|
||||
# resources options
|
||||
complete -n '__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from configs' -c apkanalyzer -l type -d 'Specifies the resource type to print' -r
|
||||
complete -n '__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from configs' -c apkanalyzer -l packages -d 'Specifies the packages to print' -r
|
||||
complete -n '__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from value' -c apkanalyzer -l config -d 'Specifies the configuration to print' -r
|
||||
complete -n '__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from value' -c apkanalyzer -l name -d 'Specifies the resource name to print' -r
|
||||
complete -n '__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from value' -c apkanalyzer -l type -d 'Specifies the resource type to print' -r
|
||||
complete -n '__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from value' -c apkanalyzer -l packages -d 'Specifies the packages to print' -r
|
||||
complete -n '__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from names' -c apkanalyzer -l config -d 'Specifies the configuration to print' -r
|
||||
complete -n '__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from names' -c apkanalyzer -l type -d 'Specifies the resource type to print' -r
|
||||
complete -n '__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from names' -c apkanalyzer -l packages -d 'Specifies the packages to print' -r
|
||||
complete -n '__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from xml' -c apkanalyzer -l file -d 'Specifies the file to print' -r
|
||||
|
||||
complete -n "__fish_seen_subcommand_from resources; and __fish_seen_subcommand_from $resources_subcommands" -c apkanalyzer -ka '(__fish_complete_suffix .apk)'
|
||||
@@ -36,6 +36,7 @@ complete -f -n __fish_apt_no_subcommand -c apt-get -a clean -d 'Clean local cach
|
||||
complete -f -n __fish_apt_no_subcommand -c apt-get -a autoclean -d 'Clean packages no longer be downloaded'
|
||||
complete -f -n __fish_apt_no_subcommand -c apt-get -a autoremove -d 'Remove automatically installed packages'
|
||||
complete -c apt-get -l no-install-recommends -d 'Do not install recommended packages'
|
||||
complete -c apt-get -l no-install-suggests -d 'Do not install suggested packages'
|
||||
complete -c apt-get -s d -l download-only -d 'Download Only'
|
||||
complete -c apt-get -s f -l fix-broken -d 'Correct broken dependencies'
|
||||
complete -c apt-get -s m -l fix-missing -d 'Ignore missing packages'
|
||||
@@ -43,10 +44,12 @@ complete -c apt-get -l no-download -d 'Disable downloading packages'
|
||||
complete -c apt-get -s q -l quiet -d 'Quiet mode'
|
||||
complete -c apt-get -s s -l simulate -l just-print -l dry-run -l recon -l no-act -d 'Perform a simulation'
|
||||
complete -c apt-get -s y -l yes -l assume-yes -d 'Automatic yes to prompts'
|
||||
complete -c apt-get -l assume-no -d 'Automatic no to prompts'
|
||||
complete -c apt-get -s u -l show-upgraded -d 'Show upgraded packages'
|
||||
complete -c apt-get -s V -l verbose-versions -d 'Show full versions for packages'
|
||||
complete -c apt-get -s b -l compile -l build -d 'Compile source packages'
|
||||
complete -c apt-get -l install-recommends -d 'Install recommended packages'
|
||||
complete -c apt-get -l install-suggests -d 'Install suggested packages'
|
||||
complete -c apt-get -l ignore-hold -d 'Ignore package Holds'
|
||||
complete -c apt-get -l no-upgrade -d "Do not upgrade packages"
|
||||
complete -c apt-get -l force-yes -d 'Force yes'
|
||||
|
||||
@@ -37,7 +37,18 @@ complete -k -c apt -n "__fish_seen_subcommand_from $pkg_subcmds" -a '(__fish_pri
|
||||
complete -c apt -n "__fish_seen_subcommand_from $installed_pkg_subcmds" -a '(__fish_print_apt_packages --installed | string match -re -- "(?:\\b|_)"(commandline -ct | string escape --style=regex) | head -n 250)'
|
||||
complete -k -c apt -n "__fish_seen_subcommand_from $handle_file_pkg_subcmds" -a '(__fish_complete_suffix .deb)'
|
||||
|
||||
complete -c apt -n "__fish_seen_subcommand_from install" -l no-install-recommends
|
||||
complete -c apt -n "__fish_seen_subcommand_from install" -l no-install-recommends -d 'Do not install recommended packages'
|
||||
complete -c apt -n "__fish_seen_subcommand_from install" -l no-install-suggests -d 'Do not install suggested packages'
|
||||
complete -c apt -n "__fish_seen_subcommand_from install" -s d -l download-only -d 'Download Only'
|
||||
complete -c apt -n "__fish_seen_subcommand_from install" -s f -l fix-broken -d 'Correct broken dependencies'
|
||||
complete -c apt -n "__fish_seen_subcommand_from install" -s m -l fix-missing -d 'Ignore missing packages'
|
||||
complete -c apt -n "__fish_seen_subcommand_from install" -l no-download -d 'Disable downloading packages'
|
||||
complete -c apt -n "__fish_seen_subcommand_from install" -s q -l quiet -d 'Quiet mode'
|
||||
complete -c apt -n "__fish_seen_subcommand_from install" -s s -l simulate -l just-print -l dry-run -l recon -l no-act -d 'Perform a simulation'
|
||||
complete -c apt -n "__fish_seen_subcommand_from install" -s y -l yes -l assume-yes -d 'Automatic yes to prompts'
|
||||
complete -c apt -n "__fish_seen_subcommand_from install" -l assume-no -d 'Automatic no to prompts'
|
||||
complete -c apt -n "__fish_seen_subcommand_from install" -l install-recommends -d 'Install recommended packages'
|
||||
complete -c apt -n "__fish_seen_subcommand_from install" -l install-suggests -d 'Install suggested packages'
|
||||
# This advanced flag is the safest way to upgrade packages that otherwise would have been kept back
|
||||
complete -c apt -n "__fish_seen_subcommand_from upgrade" -l with-new-pkgs
|
||||
|
||||
@@ -59,15 +70,24 @@ __fish_apt_option list -l all-versions -d 'Show all versions of any package'
|
||||
# Search
|
||||
__fish_apt_subcommand search -r -d 'Search for packages'
|
||||
|
||||
# Search
|
||||
# Show
|
||||
__fish_apt_subcommand show -r -d 'Show package information'
|
||||
|
||||
# Showsrc
|
||||
__fish_apt_subcommand showsrc -r -d 'Show source package information'
|
||||
|
||||
# Source
|
||||
__fish_apt_subcommand source -r -d 'Download source package'
|
||||
|
||||
# Install
|
||||
__fish_apt_subcommand install -r -d 'Install packages'
|
||||
__fish_apt_option install -l reinstall -d 'Reinstall package'
|
||||
|
||||
# Reinstall
|
||||
__fish_apt_subcommand reinstall -r -d 'Reinstall packages'
|
||||
|
||||
# Remove
|
||||
__fish_apt_subcommand remove -r -d 'Remove packages'
|
||||
__fish_apt_subcommand remove -x -d 'Remove packages'
|
||||
|
||||
# Edit sources
|
||||
__fish_apt_subcommand edit-sources -d 'Edit sources list'
|
||||
@@ -80,6 +100,7 @@ __fish_apt_subcommand upgrade -r -d 'Upgrade packages'
|
||||
|
||||
# Full Upgrade
|
||||
__fish_apt_subcommand full-upgrade -r -d 'Upgrade packages, removing others when needed'
|
||||
__fish_apt_subcommand dist-upgrade -r -d 'Upgrade packages, removing others when needed'
|
||||
|
||||
# Purge
|
||||
__fish_apt_subcommand purge -x -d 'Remove packages and delete their config files'
|
||||
@@ -90,6 +111,15 @@ __fish_apt_subcommand changelog -r -d 'Download and display package changelog'
|
||||
# Autoremove
|
||||
__fish_apt_subcommand autoremove -d 'Remove packages no longer needed as dependencies'
|
||||
|
||||
# Autoremove
|
||||
__fish_apt_subcommand autopurge -d 'Remove packages no longer needed as dependencies and delete their config files'
|
||||
|
||||
# Clean
|
||||
__fish_apt_subcommand clean -d 'Remove downloaded packages from cache'
|
||||
|
||||
# Autoclean
|
||||
__fish_apt_subcommand autoclean -d 'Remove obsolete packages from cache'
|
||||
|
||||
# Policy
|
||||
__fish_apt_subcommand policy -x -d 'Display source or package priorities'
|
||||
|
||||
@@ -99,4 +129,13 @@ __fish_apt_subcommand depends -r -d 'List package dependencies'
|
||||
# Rdepends
|
||||
__fish_apt_subcommand rdepends -r -d 'List package reverse dependencies'
|
||||
|
||||
# Download
|
||||
__fish_apt_subcommand download -x -d 'Download packages'
|
||||
|
||||
# Build-dep
|
||||
__fish_apt_subcommand build-dep -x -d 'Install packages needed to build the given package'
|
||||
|
||||
# Help
|
||||
__fish_apt_subcommand help -d 'Print help page'
|
||||
|
||||
functions -e __fish_apt_subcommand __fish_apt_option
|
||||
|
||||
20
share/completions/ar.fish
Normal file
20
share/completions/ar.fish
Normal file
@@ -0,0 +1,20 @@
|
||||
function __single
|
||||
complete -f -c ar -n __fish_use_subcommand -a $argv[1] -d $argv[2] # no dash
|
||||
end
|
||||
|
||||
__single d "Delete modules from the archive."
|
||||
__single m "move members in an archive."
|
||||
__single p "Print the specified members of the archive, to the standard output file."
|
||||
__single q "Quick append; Historically, add the files member... to the end of archive, without checking for replacement."
|
||||
__single r "Insert the files member... into archive (with replacement)."
|
||||
__single s "Add an index to the archive, or update it if it already exists."
|
||||
__single t "Display a table listing the contents of archive, or those of the files listed in member."
|
||||
__single x "Extract members (named member) from the archive."
|
||||
|
||||
functions -e __single
|
||||
|
||||
# TODO add mod
|
||||
# A number of modifiers (mod) may immediately follow the p keyletter, to specify variations on an operation's behavior:
|
||||
# add dash
|
||||
# command format
|
||||
# ar [emulation options] [-]{dmpqrstx}[abcDfilMNoOPsSTuvV] [--plugin <name>] [member-name] [count] archive-file file
|
||||
@@ -1,12 +1,4 @@
|
||||
complete -x -c asciidoctor -k -a "
|
||||
(
|
||||
__fish_complete_suffix .asciidoc
|
||||
__fish_complete_suffix .adoc
|
||||
__fish_complete_suffix .ad
|
||||
__fish_complete_suffix .asc
|
||||
__fish_complete_suffix .txt
|
||||
)
|
||||
"
|
||||
complete -x -c asciidoctor -k -a "(__fish_complete_suffix .asciidoc .adoc .ad .asc .txt)"
|
||||
|
||||
# Security Settings
|
||||
complete -c asciidoctor -s B -l base-dir -d "Base directory containing the document"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
complete -f -c at -s V -d "Display version and exit"
|
||||
complete -f -c at -s q -d "Use specified queue"
|
||||
complete -f -c at -s m -d "Send mail to user"
|
||||
complete -c at -s f -k -x -a "(__fish_complete_suffix (commandline -ct) '' 'At job')" -d "Read job from file"
|
||||
complete -c at -s f -k -x -a "(__fish_complete_suffix --description='At job' '')" -d "Read job from file"
|
||||
complete -f -c at -s l -d "Alias for atq"
|
||||
complete -f -c at -s d -d "Alias for atrm"
|
||||
complete -f -c at -s v -d "Show the time"
|
||||
|
||||
@@ -163,6 +163,4 @@ complete -c aura -n $sync -s y -l refresh -d 'Download fresh copy of the package
|
||||
complete -c aura -n "$sync; and $argument" -xa "$listall $listgroups"
|
||||
|
||||
# Upgrade options
|
||||
complete -c aura -n "$upgrade; and $argument" -k -xa '(__fish_complete_suffix pkg.tar.xz)' -d 'Package file'
|
||||
complete -c aura -n "$upgrade; and $argument" -k -xa '(__fish_complete_suffix pkg.tar.gz)' -d 'Package file'
|
||||
complete -c aura -n "$upgrade; and $argument" -k -xa '(__fish_complete_suffix pkg.tar.zst)' -d 'Package file'
|
||||
complete -c aura -n "$upgrade; and $argument" -k -xa '(__fish_complete_suffix pkg.tar.xz pkg.tar.gz pkg.tar.zst)' -d 'Package file'
|
||||
|
||||
175
share/completions/blender.fish
Normal file
175
share/completions/blender.fish
Normal file
@@ -0,0 +1,175 @@
|
||||
function __blender_player -d 'Check if -a option has been used, to run animation player'
|
||||
return (__fish_contains_opt -s a; and not __fish_contains_opt -s b background)
|
||||
end
|
||||
|
||||
function __blender_echo_input_file_name
|
||||
# Find last argument ending in .blend (or .blend1, etc.)
|
||||
# This is because a Blender invocation can open multiple blend file
|
||||
# sequentially, so we need to find the last one up to this point.
|
||||
set -l path (commandline -poc |
|
||||
string match -r '.*\\.blend[0-9]*$' |
|
||||
tail --lines=1)
|
||||
# Using eval to expand ~ and variables specified on the commandline.
|
||||
eval echo $path
|
||||
end
|
||||
|
||||
function __blender_list_scenes
|
||||
blender --background (__blender_echo_input_file_name) --python-expr 'import bpy
|
||||
for scene in bpy.data.scenes:
|
||||
print(f"\t{scene.name}")' 2>/dev/null |
|
||||
string replace -r -f '^\t' ''
|
||||
end
|
||||
|
||||
function __blender_list_texts
|
||||
blender --background (__blender_echo_input_file_name) --python-expr 'import bpy
|
||||
for text in bpy.data.texts:
|
||||
print(f"\t{text.name}")' 2>/dev/null |
|
||||
string replace -r -f '^\t' ''
|
||||
end
|
||||
|
||||
function __blender_list_engines
|
||||
blender --background --engine help 2>/dev/null | string replace -r -f '^\t' ''
|
||||
end
|
||||
|
||||
function __blender_list_addons
|
||||
blender --background --python-expr 'import addon_utils
|
||||
for mod in addon_utils.modules():
|
||||
print(f"\t{mod.__name__}")' 2>/dev/null |
|
||||
string replace -r -f '^\t' ''
|
||||
end
|
||||
|
||||
complete -c blender -n 'not __blender_player' -o h -l help -d 'Show help'
|
||||
complete -c blender -n 'not __blender_player' -o v -l version -d 'Show version'
|
||||
|
||||
# Render Options:
|
||||
complete -c blender -n 'not __blender_player' -o b -l background -d 'Hide UI'
|
||||
complete -c blender -n 'not __blender_player' -o a -l render-anim -d 'Render animation'
|
||||
complete -c blender -n 'not __blender_player; and test -e (__blender_echo_input_file_name)' -o S -l scene -a '(__blender_list_scenes)' -d 'Specify scene' -x
|
||||
complete -c blender -n 'not __blender_player' -o f -l render-frame -d 'Render specified frame(s)' -x
|
||||
|
||||
complete -c blender -n 'not __blender_player' -o s -l frame-start -d 'Specify start frame' -x
|
||||
complete -c blender -n 'not __blender_player' -o e -l frame-end -d 'Specify end frame' -x
|
||||
complete -c blender -n 'not __blender_player' -o j -l frame-jump -d 'Skip frame count' -x
|
||||
complete -c blender -n 'not __blender_player' -o o -l render-output -d 'Specify render output' -r
|
||||
complete -c blender -n 'not __blender_player' -o E -l engine -a '(__blender_list_engines)' -d 'Render engine' -x
|
||||
complete -c blender -n 'not __blender_player' -o t -l threads -d 'Specify thread count'
|
||||
|
||||
# Format Options:
|
||||
complete -c blender -n 'not __blender_player' -o F -l render-format -a 'TGA\tTarga
|
||||
RAWTGA\tTarga\ Raw
|
||||
JPEG\tJPEG
|
||||
IRIS\tIRIS
|
||||
AVIRAW\tAVI\ Raw
|
||||
AVIJPEG\tAVI\ with\ JPEG\ codec
|
||||
PNG\tPNG
|
||||
BMP\tBMP
|
||||
HDR\tHDR
|
||||
TIFF\tTIFF
|
||||
OPEN_EXR\tOpenEXR
|
||||
OPEN_EXR_MULTILAYER\tOpenEXR\ Multilayer
|
||||
FFMPEG\tFFmpeg\ Video
|
||||
CINEON\tCineon
|
||||
DPX\tDPX
|
||||
JP2\tJPEG\ 2000
|
||||
WEBP\tWebP' -d 'Specify render format' -x
|
||||
complete -c blender -n 'not __blender_player' -o x -l use-extension -a '0\tfalse
|
||||
1\ttrue' -d 'Whether to add a file extension to an end of a file' -x
|
||||
|
||||
# Animation Playback Options:
|
||||
complete -c blender -n 'not __blender_player' -o a -d 'Run as animation player'
|
||||
|
||||
complete -c blender -n '__blender_player' -o p -x -d 'Specify position and size'
|
||||
complete -c blender -n '__blender_player' -o m -d 'Read from disk (do not buffer)'
|
||||
complete -c blender -n '__blender_player' -o f -x -d 'Specify FPS to start with'
|
||||
complete -c blender -n '__blender_player' -o j -x -d 'Specify frame step'
|
||||
complete -c blender -n '__blender_player' -o s -x -d 'Specify start frame'
|
||||
complete -c blender -n '__blender_player' -o e -x -d 'Specify end frame'
|
||||
complete -c blender -n '__blender_player' -o c -x -d 'Memory in MB for cache'
|
||||
|
||||
# Window Options:
|
||||
complete -c blender -n 'not __blender_player' -o w -l window-border -d 'Show window borders'
|
||||
complete -c blender -n 'not __blender_player' -o W -l window-fullscreen -d 'Show in fullscreen'
|
||||
complete -c blender -n 'not __blender_player' -o p -l window-geometry -d 'Specify position and size' -x
|
||||
complete -c blender -n 'not __blender_player' -o M -l window-maximized -d 'Maximize window'
|
||||
complete -c blender -n 'not __blender_player' -o con -l start-console -d 'Open console'
|
||||
complete -c blender -n 'not __blender_player' -l no-native-pixels -d 'Do not use native pixel size'
|
||||
complete -c blender -n 'not __blender_player' -l no-window-focus -d 'Open unfocused'
|
||||
|
||||
# Python Options:
|
||||
complete -c blender -n 'not __blender_player' -o y -l enable-autoexec -d 'Enable Python scripts automatic execution'
|
||||
complete -c blender -n 'not __blender_player' -o Y -l disable-autoexec -d 'Disable Python scripts automatic execution'
|
||||
|
||||
complete -c blender -n 'not __blender_player' -o P -l python -d 'Specify Python script' -r
|
||||
complete -c blender -n 'not __blender_player; and test -e (__blender_echo_input_file_name)' -l python-text -a '(__blender_list_texts)' -d 'Specify Python text block' -x
|
||||
complete -c blender -n 'not __blender_player' -l python-expr -d 'Specify Python expression' -x
|
||||
complete -c blender -n 'not __blender_player' -l python-console -d 'Open interactive console'
|
||||
complete -c blender -n 'not __blender_player' -l python-exit-code -d 'Specify Python exit code on exception'
|
||||
complete -c blender -n 'not __blender_player' -l python-use-system-env -d 'Use system env vars and user site-packages'
|
||||
complete -c blender -n 'not __blender_player' -l addons -a '(__fish_append , (__blender_list_addons))' -d 'Specify addons' -x
|
||||
|
||||
# Logging Options:
|
||||
complete -c blender -n 'not __blender_player' -l log -d 'Enable logging categories' -x
|
||||
complete -c blender -n 'not __blender_player' -l log-level -d 'Specify log level' -x
|
||||
complete -c blender -n 'not __blender_player' -l log-show-basename -d 'Hide file leading path'
|
||||
complete -c blender -n 'not __blender_player' -l log-show-backtrace -d 'Show backtrace'
|
||||
complete -c blender -n 'not __blender_player' -l log-show-timestamp -d 'Show timestamp'
|
||||
complete -c blender -n 'not __blender_player' -l log-file -d 'Specify log file' -r
|
||||
|
||||
# Debug Options:
|
||||
complete -c blender -n 'not __blender_player' -o d -l debug -d 'Enable debugging'
|
||||
complete -c blender -n 'not __blender_player' -l debug-value -d 'Specify debug value'
|
||||
|
||||
complete -c blender -n 'not __blender_player' -l debug-events -d 'Enable debug messages from the event system'
|
||||
complete -c blender -n 'not __blender_player' -l debug-ffmpeg -d 'Enable debug messages from FFmpeg library'
|
||||
complete -c blender -n 'not __blender_player' -l debug-handlers -d 'Enable debug messages for event handling'
|
||||
complete -c blender -n 'not __blender_player' -l debug-libmv -d 'Enable debug messages for libmv library'
|
||||
complete -c blender -n 'not __blender_player' -l debug-cycles -d 'Enable debug messages for Cycles'
|
||||
complete -c blender -n 'not __blender_player' -l debug-memory -d 'Enable fully guarded memory allocation and debugging'
|
||||
complete -c blender -n 'not __blender_player' -l debug-jobs -d 'Enable time profiling for background jobs'
|
||||
complete -c blender -n 'not __blender_player' -l debug-python -d 'Enable debug messages for Python'
|
||||
complete -c blender -n 'not __blender_player' -l debug-depsgraph -d 'Enable all debug messages for dependency graph'
|
||||
complete -c blender -n 'not __blender_player' -l debug-depsgraph-eval -d 'Enable debug messages for dependency graph related on evalution'
|
||||
complete -c blender -n 'not __blender_player' -l debug-depsgraph-build -d 'Enable debug messages for dependency graph related on its construction'
|
||||
complete -c blender -n 'not __blender_player' -l debug-depsgraph-tag -d 'Enable debug messages for dependency graph related on tagging'
|
||||
complete -c blender -n 'not __blender_player' -l debug-depsgraph-no-threads -d 'Enable single treaded evaluation for dependency graph'
|
||||
complete -c blender -n 'not __blender_player' -l debug-depsgraph-time -d 'Enable debug messages for dependency graph related on timing'
|
||||
complete -c blender -n 'not __blender_player' -l debug-depsgraph-pretty -d 'Enable colors for dependency graph debug messages'
|
||||
complete -c blender -n 'not __blender_player' -l debug-depsgraph-uuid -d 'Enable virefication for dependency graph session-wide identifiers'
|
||||
complete -c blender -n 'not __blender_player' -l debug-ghost -d 'Enable debug messages for Ghost'
|
||||
complete -c blender -n 'not __blender_player' -l debug-wintab -d 'Enable debug messages for Wintab'
|
||||
complete -c blender -n 'not __blender_player' -l debug-gpu -d 'Enable GPU debug context and infromation for OpenGL'
|
||||
complete -c blender -n 'not __blender_player' -l debug-gpu-force-workarounds -d 'Enable workarounds for typical GPU issues'
|
||||
complete -c blender -n 'not __blender_player' -l debug-wm -d 'Enable debug messages for window manager'
|
||||
complete -c blender -n 'not __blender_player' -l debug-xr -d 'Enable debug messages for virtual reality contexts'
|
||||
complete -c blender -n 'not __blender_player' -l debug-xr-time -d 'Enable debug messages for virtual reality frame rendering times'
|
||||
complete -c blender -n 'not __blender_player' -l debug-all -d 'Enable all debug messages'
|
||||
complete -c blender -n 'not __blender_player' -l debug-io -d 'Enable debug for I/O'
|
||||
complete -c blender -n 'not __blender_player' -l debug-fpe -d 'Enable floating point exceptions'
|
||||
complete -c blender -n 'not __blender_player' -l debug-exit-on-error -d 'Exit on internal error'
|
||||
complete -c blender -n 'not __blender_player' -l debug-freestyle -d 'Enable debug messages for Freestyle'
|
||||
complete -c blender -n 'not __blender_player' -l disable-crash-handler -d 'Disable crash handler'
|
||||
complete -c blender -n 'not __blender_player' -l disable-abort-handler -d 'Disable abort handler'
|
||||
complete -c blender -n 'not __blender_player' -l verbose -d 'Specify logging verbosity level' -x
|
||||
|
||||
# GPU Options:
|
||||
complete -c blender -n 'not __blender_player' -l gpu-backend -a 'vulkan metal opengl' -d 'Specify GPU backend' -x
|
||||
|
||||
# Misc Options:
|
||||
complete -c blender -n 'not __blender_player' -l open-last -d 'Open the most recent .blend file'
|
||||
complete -c blender -n 'not __blender_player' -l app-template -a default -d 'Specify app template' -x
|
||||
complete -c blender -n 'not __blender_player' -l factory-startup -d 'Do not read startup.blend'
|
||||
complete -c blender -n 'not __blender_player' -l enable-event-simulate -d 'Enable event simulation'
|
||||
|
||||
complete -c blender -n 'not __blender_player' -l env-system-datafiles -d 'Set BLENDER_SYSTEM_DATAFILES variable' -r
|
||||
complete -c blender -n 'not __blender_player' -l env-system-scripts -d 'Set BLENDER_SYSTEM_SCRIPTS variable' -r
|
||||
complete -c blender -n 'not __blender_player' -l env-system-python -d 'Set BLENDER_SYSTEM_PYTHON variable' -r
|
||||
|
||||
complete -c blender -n 'not __blender_player' -o noaudio -d 'Disable sound'
|
||||
complete -c blender -n 'not __blender_player' -o setaudio -a 'None SDL OpenAL CoreAudio JACK PulseAudio WASAPI' -d 'Specify sound device' -x
|
||||
|
||||
complete -c blender -n 'not __blender_player' -o r -l register -d 'Register .blend extension for current user'
|
||||
complete -c blender -n 'not __blender_player' -l register-allusers -d 'Register .blend extension for all users'
|
||||
complete -c blender -n 'not __blender_player' -l unregister -d 'Unregister .blend extension for current user'
|
||||
complete -c blender -n 'not __blender_player' -l unregister-allusers -d 'Unregister .blend extension for all users'
|
||||
|
||||
complete -c blender -n 'not __blender_player' -o - -d 'End option processing, following arguments passed to python'
|
||||
@@ -1,14 +1,4 @@
|
||||
complete -c bunzip2 -k -x -a "(
|
||||
__fish_complete_suffix .tbz
|
||||
__fish_complete_suffix .tbz2
|
||||
)
|
||||
"
|
||||
|
||||
complete -c bunzip2 -k -x -a "(
|
||||
__fish_complete_suffix .bz
|
||||
__fish_complete_suffix .bz2
|
||||
)
|
||||
"
|
||||
complete -c bunzip2 -k -x -a "(__fish_complete_suffix .tbz .tbz2 .bz2 .bz)"
|
||||
|
||||
complete -c bunzip2 -s c -l stdout -d "Decompress to stdout"
|
||||
complete -c bunzip2 -s f -l force -d Overwrite
|
||||
|
||||
1
share/completions/bws.fish
Normal file
1
share/completions/bws.fish
Normal file
@@ -0,0 +1 @@
|
||||
bws completions fish | source
|
||||
@@ -1,13 +1,3 @@
|
||||
complete -c bzcat -k -x -a "(
|
||||
__fish_complete_suffix .tbz
|
||||
__fish_complete_suffix .tbz2
|
||||
)
|
||||
"
|
||||
|
||||
complete -c bzcat -k -x -a "(
|
||||
__fish_complete_suffix .bz
|
||||
__fish_complete_suffix .bz2
|
||||
)
|
||||
"
|
||||
complete -c bzcat -k -x -a "(__fish_complete_suffix .tbz .tbz2 .bz .bz2)"
|
||||
|
||||
complete -c bzcat -s s -l small -d "Reduce memory usage"
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
complete -c bzip2 -s c -l stdout -d "Compress to stdout"
|
||||
complete -c bzip2 -s d -l decompress -k -x -a "(
|
||||
__fish_complete_suffix .tbz
|
||||
__fish_complete_suffix .tbz2
|
||||
)
|
||||
"
|
||||
|
||||
complete -c bzip2 -s d -l decompress -k -x -a "(
|
||||
__fish_complete_suffix .bz
|
||||
__fish_complete_suffix .bz2
|
||||
)
|
||||
"
|
||||
complete -c bzip2 -s d -l decompress -k -x -a "(__fish_complete_suffix .tbz .tbz2 .bz .bz2)"
|
||||
|
||||
complete -c bzip2 -s z -l compress -d "Compress file"
|
||||
complete -c bzip2 -s t -l test -d "Check integrity"
|
||||
|
||||
@@ -1,11 +1,2 @@
|
||||
complete -c bzip2recover -k -x -a "(
|
||||
__fish_complete_suffix .tbz
|
||||
__fish_complete_suffix .tbz2
|
||||
)
|
||||
"
|
||||
complete -c bzip2recover -k -x -a "(__fish_complete_suffix .tbz .tbz2 .bz .bz2)"
|
||||
|
||||
complete -c bzip2recover -k -x -a "(
|
||||
__fish_complete_suffix .bz
|
||||
__fish_complete_suffix .bz2
|
||||
)
|
||||
"
|
||||
|
||||
10
share/completions/calendar.fish
Normal file
10
share/completions/calendar.fish
Normal file
@@ -0,0 +1,10 @@
|
||||
# calendar
|
||||
|
||||
complete -c calendar -s A -s l -d "Today + N days forward"
|
||||
complete -c calendar -s a -d "Process all users' calendars and mail the results"
|
||||
complete -c calendar -s B -d "Today - N days backward"
|
||||
complete -c calendar -s b -d "Cyrillic date calculation mode"
|
||||
complete -c calendar -s e -d "Today + N days forward, if today is Friday"
|
||||
complete -c calendar -s f -rF -d "Path to default calendar file"
|
||||
complete -c calendar -s t -x -d "Today is [[[cc]yy]mm]dd]"
|
||||
complete -c calendar -s w -d "Print day of the week name"
|
||||
@@ -6,10 +6,7 @@ set -l __fish_castnow_keys "space\tToggle\ between\ play\ and\ pause m\tToggle\
|
||||
complete -c castnow -l tomp4 -d "Convert file to mp4 during playback"
|
||||
complete -c castnow -l device -d "Specify name of Chromecast device to be used" -x
|
||||
complete -c castnow -l address -d "Specify IP or hostname of Chromecast device" -x
|
||||
complete -c castnow -l subtitles -d "Path or URL to SRT or VTT file" -k -x -a "(
|
||||
__fish_complete_suffix .srt
|
||||
__fish_complete_suffix .vtt
|
||||
)"
|
||||
complete -c castnow -l subtitles -d "Path or URL to SRT or VTT file" -k -x -a "(__fish_complete_suffix .srt .vtt)"
|
||||
complete -c castnow -l subtitles-scale -d "Set subtitles font scale" -x
|
||||
complete -c castnow -l subtitles-color -d "Set subtitles font RGBA color" -x
|
||||
complete -c castnow -l subtitles-port -d "Specify port to be used for serving subtitles" -x
|
||||
|
||||
78
share/completions/checkinstall.fish
Normal file
78
share/completions/checkinstall.fish
Normal file
@@ -0,0 +1,78 @@
|
||||
#checkinstall
|
||||
|
||||
# Set yes/no variable
|
||||
set -l yn "yes no"
|
||||
|
||||
# Base-level completion
|
||||
complete -c checkinstall -f
|
||||
|
||||
# Package type selection
|
||||
complete -c checkinstall -x -o t -l type -a "slackware rpm debian" -d "Choose packaging system"
|
||||
complete -c checkinstall -f -o S -d "Build a Slackware package"
|
||||
complete -c checkinstall -f -o R -d "Build an RPM package"
|
||||
complete -c checkinstall -f -o D -d "Build a Debian package"
|
||||
|
||||
# Install options
|
||||
complete -c checkinstall -x -l install -a "$yn" -d "Toggle created package installation"
|
||||
complete -c checkinstall -x -l fstrans -a "$yn" -d "Enable/disable the filesystem translation code"
|
||||
|
||||
# Scripting options
|
||||
complete -c checkinstall -f -o y -l default -d "Accept default answers to all questions"
|
||||
complete -c checkinstall -x -l pkgname -d "Set name"
|
||||
complete -c checkinstall -x -l pkgversion -d "Set version"
|
||||
complete -c checkinstall -x -o A -l arch -l pkgarch -d "Set architecture"
|
||||
complete -c checkinstall -x -l pkgrelease -d "Set release"
|
||||
complete -c checkinstall -x -l pkglicense -d "Set license"
|
||||
complete -c checkinstall -x -l pkggroup -d "Set software group"
|
||||
complete -c checkinstall -x -l pkgsource -d "Set source location"
|
||||
complete -c checkinstall -x -l pkgalitsource -d "Set alternate source location"
|
||||
complete -c checkinstall -F -r -l pakdir -a "(__fish_complete_directories)" -d "The new package will be saved here"
|
||||
complete -c checkinstall -x -l maintainer -d "The package maintainer (.deb)"
|
||||
complete -c checkinstall -x -l provides -d "Features provided by this package"
|
||||
complete -c checkinstall -x -l requires -d "Features required by this package"
|
||||
complete -c checkinstall -x -l recommends -d "Features recommended by this package"
|
||||
complete -c checkinstall -x -l sggests -d "Featues suggested by this package"
|
||||
complete -c checkinstall -x -l conflicts -d "Packages that this package cannot be installed with (.deb)"
|
||||
complete -c checkinstall -x -l replaces -d "Packages that this package replaces (.deb)"
|
||||
complete -c checkinstall -x -l rpmflags -d "Pass these flags to the rpm installer"
|
||||
complete -c checkinstall -f -l rpmi -d "Use the -i flag for rpm when installing a .rpm"
|
||||
complete -c checkinstall -f -l rpmu -d "Use the -U flag for rpm when installing a .rpm"
|
||||
complete -c checkinstall -x -l dpkgflags -d "Pass these flags to the dpkg installer"
|
||||
complete -c checkinstall -x -l spec -a "(__fish_complete_path)" -d ".spec file location"
|
||||
complete -c checkinstall -f -l nodoc -d "Do not include documentation files"
|
||||
|
||||
# Info display options
|
||||
complete -c checkinstall -x -o d -a "0 1 2" -d "Set debug level"
|
||||
complete -c checkinstall -f -o si -d "Run an interactive install command"
|
||||
complete -c checkinstall -x -l showinstall -a "$yn" -d "Toggle interactive install command"
|
||||
complete -c checkinstall -f -o ss -d "Run an interactive Slackware installation script"
|
||||
complete -c checkinstall -x -l showslack -a "$yn" -d "Toggle interactive Slackware installation script"
|
||||
|
||||
# Package tuning options
|
||||
complete -c checkinstall -x -l autodoinst -a "$yn" -d "Toggle the creation of a doinst.sh script"
|
||||
complete -c checkinstall -x -l strip -a "$yn" -d "Strip any ELF binaries found inside the package"
|
||||
complete -c checkinstall -x -l stripso -a "$yn" -d "Strop any ELF binary libraries (.so files)"
|
||||
complete -c checkinstall -x -l addso -a "$yn" -d "Search for ant shared libs and add them to /etc/ld.so.conf"
|
||||
complete -c checkinstall -x -l reset-uids -a "$yn" -d "Reset perms for all files"
|
||||
complete -c checkinstall -x -l gzman -a "$yn" -d "Compress any man pages found inside the package"
|
||||
complete -c checkinstall -x -l docdir -a "(__fish_complete_directories)" -d "Where to put documentation files"
|
||||
complete -c checkinstall -x -l umask -d "Set the umask value"
|
||||
complete -c checkinstall -x -l exclude -a "(__fish_complete_path)" -d "Excluse these files/directories from the package"
|
||||
complete -c checkinstall -F -r -l include -d "Include file/directories in this file in the package"
|
||||
complete -c checkinstall -f -l inspect -d "Inspect the package's file list"
|
||||
complete -c checkinstall -f -l review-spec -d "Review the dpec file before creating a .rpm"
|
||||
complete -c checkinstall -f -l review-control -d "Review the control file before creating a .deb"
|
||||
complete -c checkinstall -f -l newslack -d "Use the new (8.1+) Slackware description format"
|
||||
complete -c checkinstall -F -l with-tar -d "Manually set the path to the tar binary"
|
||||
|
||||
# Cleanup options
|
||||
complete -c checkinstall -x -l deldoc -a "$yn" -d "Delete doc-pak upon termination"
|
||||
complete -c checkinstall -x -l deldesc -a "$yn" -d "Delete description-pak upon termination"
|
||||
complete -c checkinstall -x -l delspec -a "$yn" -d "Delete spec file upon termination"
|
||||
complete -c checkinstall -f -l bk -d "Backup any overwritten files"
|
||||
complete -c checkinstall -x -l backup -a "$yn" -d "Toggle backup"
|
||||
|
||||
# About checkinstall
|
||||
complete -c checkinstall -f -o h -l help -d "Show help"
|
||||
complete -c checkinstall -f -l copyright -d "Show Copyright information"
|
||||
complete -c checkinstall -f -l version -d "Show version information"
|
||||
@@ -4,4 +4,4 @@
|
||||
|
||||
complete -p '*clang++*' -n __fish_should_complete_switches -xa '(__fish_complete_clang)'
|
||||
complete -p '*clang++*' -n 'not __fish_should_complete_switches' \
|
||||
-k -xa "(__fish_complete_suffix .o; __fish_complete_suffix .out; __fish_complete_suffix .c; __fish_complete_suffix .cpp; __fish_complete_suffix .so; __fish_complete_suffix .dylib)"
|
||||
-k -xa "(__fish_complete_suffix .o .out .c .cpp .so .dylib)"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
# This pattern unfortunately matches clang-format, etc. as well.
|
||||
complete -p '*clang*' -n __fish_should_complete_switches -xa '(__fish_complete_clang)'
|
||||
complete -c clang -n 'not __fish_should_complete_switches' \
|
||||
-k -xa "(__fish_complete_suffix .o; __fish_complete_suffix .out; __fish_complete_suffix .c; __fish_complete_suffix .cpp; __fish_complete_suffix .so; __fish_complete_suffix .dylib)"
|
||||
-k -xa "(__fish_complete_suffix .o .out .c .cpp .so .dylib)"
|
||||
|
||||
# again but without the -x this time for the pattern-matched completion
|
||||
complete -p '*clang*' -n 'not __fish_should_complete_switches' \
|
||||
-k -a "(__fish_complete_suffix .o; __fish_complete_suffix .out; __fish_complete_suffix .c; __fish_complete_suffix .cpp; __fish_complete_suffix .so; __fish_complete_suffix .dylib)"
|
||||
-k -a "(__fish_complete_suffix .o .out .c .cpp .so .dylib)"
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
complete -k -x -c cmark -a "
|
||||
(
|
||||
__fish_complete_suffix .md
|
||||
__fish_complete_suffix .markdown
|
||||
)
|
||||
"
|
||||
complete -k -x -c cmark -a "(__fish_complete_suffix .md .markdown)"
|
||||
|
||||
complete -x -c cmark -s t -l to -a "html man xml latex commonmark" -d "Output format"
|
||||
complete -c cmark -l width -d "Wrap width"
|
||||
|
||||
1
share/completions/cobra-cli.fish
Normal file
1
share/completions/cobra-cli.fish
Normal file
@@ -0,0 +1 @@
|
||||
cobra-cli completion fish | source
|
||||
@@ -29,7 +29,7 @@ import json
|
||||
json_data = open('composer.json')
|
||||
data = json.load(json_data)
|
||||
json_data.close()
|
||||
packages = itertools.chain(data['require'].keys(), data['require-dev'].keys())
|
||||
packages = itertools.chain(data.get('require', {}).keys(), data.get('require-dev', {}).keys())
|
||||
print(\"\n\".join(packages))
|
||||
" | $python -S
|
||||
end
|
||||
|
||||
1
share/completions/crc.fish
Normal file
1
share/completions/crc.fish
Normal file
@@ -0,0 +1 @@
|
||||
crc completion fish | source
|
||||
@@ -1,4 +1,4 @@
|
||||
complete -c curl -n 'string match -qr "^@" -- (commandline -ct)' -k -xa "(printf '%s\n' -- @(__fish_complete_suffix (commandline -ct | string replace -r '^@' '') ''))"
|
||||
complete -c curl -n 'string match -qr "^@" -- (commandline -ct)' -k -xa "(printf '%s\n' -- @(__fish_complete_suffix --complete=(commandline -ct | string replace -r '^@' '') ''))"
|
||||
|
||||
# These based on the autogenerated completions.
|
||||
complete -c curl -l abstract-unix-socket -d '(HTTP) Connect through an abstract Unix domain socket'
|
||||
@@ -231,3 +231,4 @@ complete -c curl -l eprt -l no-eprt -d 'for --disable-eprt'
|
||||
complete -c curl -l epsv -l no-epsv -d 'for --disable-epsv'
|
||||
complete -c curl -l max-redir -d 'Set maximum number of redirects'
|
||||
complete -c curl -l xattr -d 'Store metadata in xattrs (like origin URL)'
|
||||
complete -c curl -l url-query -d '(HTTP) Add a URL query part'
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
deno completions fish | source
|
||||
|
||||
# complete deno task
|
||||
complete -f -c deno -n "__fish_seen_subcommand_from task" -n "__fish_is_nth_token 2" -a "(NO_COLOR=1 deno task &| string match -rg '^- (\S*)')"
|
||||
|
||||
22
share/completions/dmidecode.fish
Normal file
22
share/completions/dmidecode.fish
Normal file
@@ -0,0 +1,22 @@
|
||||
function __fish_dmidecode_complete_keywords
|
||||
dmidecode -s 2>&1 1>/dev/null | string match -rg '^\s+(.*)'
|
||||
end
|
||||
|
||||
function __fish_dmidecode_complete_types
|
||||
dmidecode -t 2>&1 1>/dev/null | string match -rg '^\s+(.*)'
|
||||
end
|
||||
|
||||
complete -c dmidecode -f
|
||||
complete -c dmidecode -s d -l dev-mem -r -d 'Memory device file'
|
||||
complete -c dmidecode -s q -l quiet -d 'Be less verbose'
|
||||
complete -c dmidecode -l no-quirks -d 'Decode everything exactly as it is'
|
||||
complete -c dmidecode -s s -l string -xa '(__fish_dmidecode_complete_keywords)' -d 'Only display specified value'
|
||||
complete -c dmidecode -s t -l type -xa '(__fish_dmidecode_complete_types)' -d 'Only display entries of specified type'
|
||||
complete -c dmidecode -s H -l handle -x -d 'Only display specified handle'
|
||||
complete -c dmidecode -s u -l dump -d 'Do not decode the entries'
|
||||
complete -c dmidecode -l dump-bin -r -d 'Dump DMI data to a file'
|
||||
complete -c dmidecode -l from-dump -r -d 'Read DMI data generated using --dump-bin'
|
||||
complete -c dmidecode -l no-sysfs -d 'Do not attempt to read DMI data from sysfs files'
|
||||
complete -c dmidecode -l oem-string -x -d 'Only display the value of the OEM string number N'
|
||||
complete -c dmidecode -s h -l help -d 'Display usage information and exit'
|
||||
complete -c dmidecode -s V -l version -d 'Display the version and exit'
|
||||
@@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
function __dnf_list_installed_packages
|
||||
dnf repoquery --cacheonly "$cur*" --qf "%{NAME}" --installed </dev/null
|
||||
dnf repoquery --cacheonly "$cur*" --qf "%{name}" --installed </dev/null
|
||||
end
|
||||
|
||||
function __dnf_list_available_packages
|
||||
@@ -21,12 +21,12 @@ function __dnf_list_available_packages
|
||||
# This schema is bad, there is only a "pkg" field with the full
|
||||
# packagename-version-release.fedorarelease.architecture
|
||||
# tuple. We are only interested in the packagename.
|
||||
set results (sqlite3 /var/cache/dnf/packages.db "SELECT pkg FROM available WHERE pkg LIKE \"$tok%\"" 2>/dev/null |
|
||||
set results (sqlite3 /var/cache/dnf/packages.db "SELECT pkg FROM available WHERE pkg LIKE '$tok%'" 2>/dev/null |
|
||||
string replace -r -- '-[^-]*-[^-]*$' '')
|
||||
else
|
||||
# In some cases dnf will ask for input (e.g. to accept gpg keys).
|
||||
# Connect it to /dev/null to try to stop it.
|
||||
set results (dnf repoquery --cacheonly "$tok*" --qf "%{NAME}" --available </dev/null 2>/dev/null)
|
||||
set results (dnf repoquery --cacheonly "$tok*" --qf "%{name}" --available </dev/null 2>/dev/null)
|
||||
end
|
||||
if set -q results[1]
|
||||
set results (string match -r -- '.*\\.rpm$' $files) $results
|
||||
@@ -175,7 +175,6 @@ complete -c dnf -n __fish_use_subcommand -xa offline-upgrade -d "Prepare offline
|
||||
complete -c dnf -n "__fish_seen_subcommand_from offline-upgrade" -xa download -d "Download updates for offline upgrade"
|
||||
complete -c dnf -n "__fish_seen_subcommand_from offline-upgrade" -xa clean -d "Remove cached packages"
|
||||
complete -c dnf -n "__fish_seen_subcommand_from offline-upgrade" -xa reboot -d "Reboot and install packages"
|
||||
complete -c dnf -n "__fish_seen_subcommand_from offline-upgrade" -xa upgrade -d "Install cached packages without reboot"
|
||||
complete -c dnf -n "__fish_seen_subcommand_from offline-upgrade" -xa log -d "Show logs of upgrade attempts"
|
||||
|
||||
# Provides
|
||||
|
||||
1
share/completions/doctl.fish
Normal file
1
share/completions/doctl.fish
Normal file
@@ -0,0 +1 @@
|
||||
doctl completion fish | source
|
||||
@@ -2,4 +2,3 @@ complete -c echo -s n -d "Do not output a newline"
|
||||
complete -c echo -s s -d "Do not separate arguments with spaces"
|
||||
complete -c echo -s E -d "Disable backslash escapes"
|
||||
complete -c echo -s e -d "Enable backslash escapes"
|
||||
complete -c echo -s h -l help -d "Display help and exit"
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
complete -c entr -s a -d 'Respond to all events'
|
||||
complete -c entr -s c -d 'Clear the screen before running'
|
||||
complete -c entr -s d -d 'Track directories and exit if new file added'
|
||||
complete -c entr -s n -d 'Run in non-interactive mode'
|
||||
complete -c entr -s p -d 'Postpone execution of utility until a file is modified'
|
||||
complete -c entr -s r -d 'Launch utility at startup and reload on file change'
|
||||
complete -c entr -s c -d 'Clears the screen before running the utility'
|
||||
complete -c entr -s h -l help -d 'Display help'
|
||||
complete -c entr -s v -l version -d 'Output version information'
|
||||
complete -c entr -s s -d 'Evaluate using the interpreter in SHELL env variable'
|
||||
complete -c entr -s z -d 'Exit after utility completes'
|
||||
complete -c entr -x -a '(__fish_complete_subcommand)'
|
||||
|
||||
@@ -1,15 +1,19 @@
|
||||
set -l commands flashall getvar oem flashing reboot update erase format devices flash get_staged help stage boot fetch
|
||||
|
||||
function __fish_fastboot_list_partition_or_file
|
||||
if __fish_seen_subcommand_from (__fish_fastboot_list_partition){_a,_b,}
|
||||
__fish_complete_path
|
||||
else
|
||||
__fish_fastboot_list_partition
|
||||
set -l tokens (commandline -opc)
|
||||
# if last 2 token is flash, then list file
|
||||
if test (count $tokens) -gt 2
|
||||
if test $tokens[-2] = flash
|
||||
__fish_complete_path
|
||||
return
|
||||
end
|
||||
end
|
||||
__fish_fastboot_list_partition
|
||||
end
|
||||
|
||||
function __fish_fastboot_list_partition
|
||||
set -l partitions boot bootloader dtbo modem odm odm_dlkm oem product pvmfw radio recovery system vbmeta vendor vendor_dlkm cache userdata system_ext
|
||||
set -l partitions boot bootloader cache cust dtbo metadata misc modem odm odm_dlkm oem product pvmfw radio recovery system system_ext userdata vbmeta vendor vendor_dlkm vmbeta_system
|
||||
for i in $partitions
|
||||
echo $i
|
||||
end
|
||||
@@ -20,7 +24,7 @@ complete -c fastboot -s v -l verbose -d 'Verbose output'
|
||||
complete -c fastboot -l version -d 'Display version'
|
||||
|
||||
complete -n "not __fish_seen_subcommand_from $commands" -c fastboot -s w -d 'Wipe userdata'
|
||||
complete -n "not __fish_seen_subcommand_from $commands" -c fastboot -s s -d 'Specify a device'
|
||||
complete -n "not __fish_seen_subcommand_from $commands" -c fastboot -s s -x -a "(fastboot devices)" -d 'Specify a device'
|
||||
complete -n "not __fish_seen_subcommand_from $commands" -c fastboot -s S -d 'Break into sparse files no larger than SIZE'
|
||||
complete -n "not __fish_seen_subcommand_from $commands" -c fastboot -l slot -d 'Use SLOT; \'all\' for both slots, \'other\' for non-current slot (default: current active slot)' -xa "all other a b"
|
||||
complete -n "not __fish_seen_subcommand_from $commands" -c fastboot -l set-active -d 'Sets the active slot before rebooting' -xa "a b"
|
||||
@@ -73,4 +77,3 @@ complete -n '__fish_seen_subcommand_from reboot' -c fastboot -xa 'bootloader fas
|
||||
|
||||
# oem
|
||||
complete -n '__fish_seen_subcommand_from oem' -c fastboot -xa 'device-info lock unlock edl'
|
||||
|
||||
|
||||
@@ -22,7 +22,11 @@ complete -c find -o regextype -d "Specify regular expression type" -a "emacs pos
|
||||
complete -c find -o version -l version -d "Display version and exit"
|
||||
complete -c find -o warn -d "Turn warnings on"
|
||||
complete -c find -o nowarn -d "Turn warnings off"
|
||||
|
||||
complete -c find -o O0 -d "Equivalent to optimisation level 1."
|
||||
complete -c find -o O1 -d "Default optimisation level and corresponds to the traditional behaviour."
|
||||
complete -c find -o O2 -d "Any -type or -xtype tests are performed after any tests based only on the names of files."
|
||||
complete -c find -o O3 -d "The full cost-based query optimiser is enabled."
|
||||
complete -c find -s D -d "Print diagnostic information." -x -a "exec opt rates search stat time tree all help"
|
||||
|
||||
# Tests
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
complete -c fish_key_reader -s h -l help -d 'Display help and exit'
|
||||
complete -c fish_key_reader -s v -l version -d 'Display version and exit'
|
||||
complete -c fish_key_reader -s c -l continuous -d 'Start a continuous session'
|
||||
complete -c fish_key_reader -s V -l verbose -d 'Output timing and explain sequence'
|
||||
|
||||
@@ -99,7 +99,7 @@ complete -c gcc -o Wno-deprecated -d '(C++ only) Do not warn about usage of depr
|
||||
complete -c gcc -o Wstrict-null-sentinel -d '(C++ only) Warn also about the use of an uncasted "NULL" as sentinel'
|
||||
complete -c gcc -o Wno-non-template-friend -d '(C++ only) Disable warnings when non-templatized friend functions are declared within a template'
|
||||
complete -c gcc -o Wold-style-cast -d 'Warn if an C-style cast to a non-void type is used in a C++ program'
|
||||
complete -c gcc -o Woverloaded-virtual -d '(C++ only) Warn when a function declaration hides virtual functions from a base class'
|
||||
complete -c gcc -o Woverloaded-virtual -d '(C++ only) Warn when a function hides virtual functions from a base class'
|
||||
complete -c gcc -o Wno-pmf-conversions -d '(C++ only) Disable the diagnostic for converting a bound pointer to member function to a plain pointer'
|
||||
complete -c gcc -o Wsign-promo -d '(C++ only) Warn when overload resolution promotes from unsigned or enumerated type to a signed type'
|
||||
complete -c gcc -o fconstant-string-class -d 'Use class-name as the name of the class to instantiate for each literal string specified with the syntax "@"'
|
||||
@@ -212,7 +212,7 @@ complete -c gcc -o Wvolatile-register-var -d 'Warn if a register variable is dec
|
||||
complete -c gcc -o Wdisabled-optimization -d 'Warn if a requested optimization pass is disabled'
|
||||
complete -c gcc -o Wpointer-sign -d 'Warn for pointer argument passing or assignment with different signedness'
|
||||
complete -c gcc -o Werror -d 'Make all warnings into errors'
|
||||
complete -c gcc -o Wstack-protector -d 'This option is only active when -fstack-protector is active'
|
||||
complete -c gcc -o Wstack-protector -d 'Only active when -fstack-protector is active'
|
||||
complete -c gcc -s g -d 'Produce debugging information in the operating system’s native format (stabs, COFF, XCOFF, or DWARF 2)'
|
||||
complete -c gcc -o ggdb -d 'Produce debugging information for use by GDB'
|
||||
complete -c gcc -o gstabs -d 'Produce debugging information in stabs format (if that is supported), without GDB extensions'
|
||||
@@ -236,7 +236,7 @@ complete -c gcc -s Q -d 'Makes the compiler print out each function name as it i
|
||||
complete -c gcc -o ftime-report -d 'Makes the compiler print some statistics about the time consumed by each pass when it finishes'
|
||||
complete -c gcc -o fmem-report -d 'Makes the compiler print some statistics about permanent memory allocation when it finishes'
|
||||
complete -c gcc -o fprofile-arcs -d 'Add code so that program flow arcs are instrumented'
|
||||
complete -c gcc -l coverage -d 'This option is used to compile and link code instrumented for coverage analysis'
|
||||
complete -c gcc -l coverage -d 'Used to compile and link code instrumented for coverage analysis'
|
||||
complete -c gcc -o ftest-coverage -d 'Produce a notes file that the gcov code-coverage utility can use to show program coverage'
|
||||
complete -c gcc -o dletters -d 'Says to make debugging dumps during compilation at times specified by letters'
|
||||
complete -c gcc -o fdump-rtl-pass -d 'Says to make debugging dumps during compilation at times specified by letters'
|
||||
@@ -248,8 +248,8 @@ complete -c gcc -o fdump-class-hierarchy-options -d '(C++ only) Dump a represent
|
||||
complete -c gcc -o fdump-ipa-switch -d 'Control the dumping at various stages of inter-procedural analysis language tree to a file'
|
||||
complete -c gcc -o fdump-tree-switch -d 'Control the dumping at various stages of processing the intermediate language tree to a file'
|
||||
complete -c gcc -o fdump-tree-switch-options -d 'Control the dumping at various stages of processing the intermediate language tree to a file'
|
||||
complete -c gcc -o ftree-vectorizer-verbose -d 'This option controls the amount of debugging output the vectorizer prints' -x -a "1 2 3 4 5"
|
||||
complete -c gcc -o frandom-seed -d 'This option provides a seed that GCC uses when it would otherwise use random numbers' -x
|
||||
complete -c gcc -o ftree-vectorizer-verbose -d 'Controls the amount of debugging output the vectorizer prints' -x -a "1 2 3 4 5"
|
||||
complete -c gcc -o frandom-seed -d 'Provides a seed that GCC uses when it would otherwise use random numbers' -x
|
||||
complete -c gcc -o fsched-verbose -d 'On targets that use instruction scheduling, this option controls the amount of debugging output the scheduler prints' -x -a "1 2 3 4 5"
|
||||
complete -c gcc -o save-temps -d 'Store the usual "temporary" intermediate files permanently; place them in the current directory and name them based on the source file'
|
||||
complete -c gcc -o time -d 'Report the CPU time taken by each subprocess in the compilation sequence'
|
||||
@@ -261,13 +261,18 @@ complete -c gcc -o print-prog-name -r -d 'Like -print-file-name, but searches fo
|
||||
complete -c gcc -o print-libgcc-file-name -d 'Same as -print-file-name=libgcc'
|
||||
complete -c gcc -o print-search-dirs -d 'Print the name of the configured installation directory and a list of program and library directories gcc will search---and don’t do anything else'
|
||||
complete -c gcc -o dumpmachine -d 'Print the compiler’s target machine (for example, i686-pc-linux-gnu)---and don’t do anything else'
|
||||
complete -c gcc -o dumpversion -d 'Print the compiler version (for example, 3'
|
||||
complete -c gcc -o dumpversion -d 'Print the compiler version (for example, 3.0,6.3 or 7)---and don’t do anything else'
|
||||
complete -c gcc -o dumpspecs -d 'Print the compiler’s built-in specs---and don’t do anything else'
|
||||
complete -c gcc -o feliminate-unused-debug-types -d 'Normally, when producing DWARF2 output, GCC will emit debugging information for all types declared in a compilation unit, regardless of whether or not they are actually used in that compilation unit'
|
||||
complete -c gcc -o O -d 'Optimize'
|
||||
complete -c gcc -o O1 -d 'Optimize'
|
||||
complete -c gcc -o O2 -d 'Optimize even more'
|
||||
complete -c gcc -o O3 -d 'Optimize yet more'
|
||||
complete -c gcc -o O0 -d 'Do not optimize'
|
||||
complete -c gcc -o Os -d 'Optimize for size'
|
||||
complete -c gcc -o Ofast -d 'Disregard strict standards compliance'
|
||||
complete -c gcc -o Og -d 'Optimize debugging experience'
|
||||
complete -c gcc -o Oz -d 'Optimize aggressively for size rather than speed'
|
||||
complete -c gcc -o fno-default-inline -d 'Do not make member functions inline by default merely because they are defined inside the class scope (C++ only)'
|
||||
complete -c gcc -o fno-defer-pop -d 'Always pop the arguments to each function call as soon as that function returns'
|
||||
complete -c gcc -o fforce-mem -d 'Force memory operands to be copied into registers before doing arithmetic on them'
|
||||
@@ -298,13 +303,13 @@ complete -c gcc -o fcse-skip-blocks -d 'This is similar to -fcse-follow-jumps, b
|
||||
complete -c gcc -o frerun-cse-after-loop -d 'Re-run common subexpression elimination after loop optimizations has been performed'
|
||||
complete -c gcc -o frerun-loop-opt -d 'Run the loop optimizer twice'
|
||||
complete -c gcc -o fgcse -d 'Perform a global common subexpression elimination pass'
|
||||
complete -c gcc -o fgcse-lm -d 'When -fgcse-lm is enabled, global common subexpression elimination will attempt to move loads which are only killed by stores into themselves'
|
||||
complete -c gcc -o fgcse-sm -d 'When -fgcse-sm is enabled, a store motion pass is run after global common subexpression elimination'
|
||||
complete -c gcc -o fgcse-las -d 'When -fgcse-las is enabled, the global common subexpression elimination pass eliminates redundant loads that come after stores to the same memory location (both partial and full redundancies)'
|
||||
complete -c gcc -o fgcse-lm -d 'Global common subexpression elimination will attempt to move loads which are only killed by stores into themselves'
|
||||
complete -c gcc -o fgcse-sm -d 'A store motion pass is run after global common subexpression elimination'
|
||||
complete -c gcc -o fgcse-las -d 'The global common subexpression elimination pass eliminates redundant loads that come after stores to the same memory location (both partial and full redundancies)'
|
||||
complete -c gcc -o fgcse-after-reload -d 'When -fgcse-after-reload is enabled, a redundant load elimination pass is performed after reload'
|
||||
complete -c gcc -o floop-optimize -d 'Perform loop optimizations: move constant expressions out of loops, simplify exit test conditions and optionally do strength-reduction as well'
|
||||
complete -c gcc -o floop-optimize2 -d 'Perform loop optimizations using the new loop optimizer'
|
||||
complete -c gcc -o funsafe-loop-optimizations -d 'If given, the loop optimizer will assume that loop indices do not overflow, and that the loops with nontrivial exit condition are not infinite'
|
||||
complete -c gcc -o funsafe-loop-optimizations -d 'The loop optimizer will assume that loop indices do not overflow, and that the loops with nontrivial exit condition are not infinite'
|
||||
complete -c gcc -o fcrossjumping -d 'Perform cross-jumping transformation'
|
||||
complete -c gcc -o fif-conversion -d 'Attempt to transform conditional jumps into branch-less equivalents'
|
||||
complete -c gcc -o fif-conversion2 -d 'Use conditional execution (where available) to transform conditional jumps into branch-less equivalents'
|
||||
@@ -334,13 +339,13 @@ complete -c gcc -o ftree-sink -d 'Perform forward store motion on trees'
|
||||
complete -c gcc -o ftree-ccp -d 'Perform sparse conditional constant propagation (CCP) on trees'
|
||||
complete -c gcc -o ftree-store-ccp -d 'Perform sparse conditional constant propagation (CCP) on trees'
|
||||
complete -c gcc -o ftree-dce -d 'Perform dead code elimination (DCE) on trees'
|
||||
complete -c gcc -o ftree-dominator-opts -d 'Perform a variety of simple scalar cleanups (constant/copy propagation, redundancy elimination, range propagation and expression simplification) based on a dominator tree traversal'
|
||||
complete -c gcc -o ftree-dominator-opts -d 'Perform a variety of simple scalar cleanups based on a dominator tree traversal'
|
||||
complete -c gcc -o ftree-ch -d 'Perform loop header copying on trees'
|
||||
complete -c gcc -o ftree-loop-optimize -d 'Perform loop optimizations on trees'
|
||||
complete -c gcc -o ftree-loop-linear -d 'Perform linear loop transformations on tree'
|
||||
complete -c gcc -o ftree-loop-im -d 'Perform loop invariant motion on trees'
|
||||
complete -c gcc -o ftree-loop-ivcanon -d 'Create a canonical counter for number of iterations in the loop for that determining number of iterations requires complicated analysis'
|
||||
complete -c gcc -o fivopts -d 'Perform induction variable optimizations (strength reduction, induction variable merging and induction variable elimination) on trees'
|
||||
complete -c gcc -o fivopts -d 'Perform induction variable optimizations on trees'
|
||||
complete -c gcc -o ftree-sra -d 'Perform scalar replacement of aggregates'
|
||||
complete -c gcc -o ftree-copyrename -d 'Perform copy renaming on trees'
|
||||
complete -c gcc -o ftree-ter -d 'Perform temporary expression replacement during the SSA->normal phase'
|
||||
@@ -353,7 +358,7 @@ complete -c gcc -o funroll-loops -d 'Unroll loops whose number of iterations can
|
||||
complete -c gcc -o funroll-all-loops -d 'Unroll all loops, even if their number of iterations is uncertain when the loop is entered'
|
||||
complete -c gcc -o fsplit-ivs-in-unroller -d 'Enables expressing of values of induction variables in later iterations of the unrolled loop using the value in the first iteration'
|
||||
complete -c gcc -o fvariable-expansion-in-unroller -d 'With this option, the compiler will create multiple copies of some local variables when unrolling a loop which can result in superior code'
|
||||
complete -c gcc -o fprefetch-loop-arrays -d 'If supported by the target machine, generate instructions to prefetch memory to improve the performance of loops that access large arrays'
|
||||
complete -c gcc -o fprefetch-loop-arrays -d 'Generate instructions to prefetch memory to improve the performance of loops that access large arrays'
|
||||
complete -c gcc -o fno-peephole -d 'Disable any machine-specific peephole optimizations'
|
||||
complete -c gcc -o fno-peephole2 -d 'Disable any machine-specific peephole optimizations'
|
||||
complete -c gcc -o fno-guess-branch-probability -d 'Do not guess branch probabilities using heuristics'
|
||||
@@ -372,21 +377,21 @@ complete -c gcc -o falign-jumps -d 'Align branch targets to a power-of-two bound
|
||||
complete -c gcc -o funit-at-a-time -d 'Parse the whole compilation unit before starting to produce code'
|
||||
complete -c gcc -o fweb -d 'Constructs webs as commonly used for register allocation purposes and assign each web individual pseudo register'
|
||||
complete -c gcc -o fwhole-program -d 'Assume that the current compilation unit represents whole program being compiled'
|
||||
complete -c gcc -o fno-cprop-registers -d 'After register allocation and post-register allocation instruction splitting, we perform a copy-propagation pass to try to reduce scheduling dependencies and occasionally eliminate the copy'
|
||||
complete -c gcc -o fno-cprop-registers -d 'After register allocation and post-register allocation instruction splitting, perform a copy-propagation pass to try to reduce scheduling dependencies and occasionally eliminate the copy'
|
||||
complete -c gcc -o fprofile-generate -d 'Enable options usually used for instrumenting application to produce profile useful for later recompilation with profile feedback based optimization'
|
||||
complete -c gcc -o fprofile-use -d 'Enable profile feedback directed optimizations, and optimizations generally profitable only with profile feedback available'
|
||||
complete -c gcc -o ffloat-store -d 'Do not store floating point variables in registers, and inhibit other options that might change whether a floating point value is taken from a register or memory'
|
||||
complete -c gcc -o ffast-math -d 'Sets -fno-math-errno, -funsafe-math-optimizations, -fno-trapping-math, -ffinite-math-only, -fno-rounding-math, -fno-signaling-nans and fcx-limited-range'
|
||||
complete -c gcc -o fno-math-errno -d 'Do not set ERRNO after calling math functions that are executed with a single instruction, e'
|
||||
complete -c gcc -o funsafe-math-optimizations -d 'Allow optimizations for floating-point arithmetic that (a) assume that arguments and results are valid and (b) may violate IEEE or ANSI standards'
|
||||
complete -c gcc -o ffinite-math-only -d 'Allow optimizations for floating-point arithmetic that assume that arguments and results are not NaNs or +-Infs'
|
||||
complete -c gcc -o ffinite-math-only -d 'Allow optimizations for floating-point arithmetic that assume arguments and results are not NaNs or +-Infs'
|
||||
complete -c gcc -o fno-trapping-math -d 'Compile code assuming that floating-point operations cannot generate user-visible traps'
|
||||
complete -c gcc -o frounding-math -d 'Disable transformations and optimizations that assume default floating point rounding behavior'
|
||||
complete -c gcc -o fsignaling-nans -d 'Compile code assuming that IEEE signaling NaNs may generate uservisible traps during floating-point operations'
|
||||
complete -c gcc -o fsingle-precision-constant -d 'Treat floating point constant as single precision constant instead of implicitly converting it to double precision constant'
|
||||
complete -c gcc -o fcx-limited-range -d 'When enabled, this option states that a range reduction step is not needed when performing complex division'
|
||||
complete -c gcc -o fno-cx-limited-range -d 'When enabled, this option states that a range reduction step is not needed when performing complex division'
|
||||
complete -c gcc -o fbranch-probabilities -d 'After running a program compiled with -fprofile-arcs, you can compile it a second time using -fbranch-probabilities, to improve optimizations based on the number of times each branch was taken'
|
||||
complete -c gcc -o fcx-limited-range -d 'When enabled, states that a range reduction step is not needed when performing complex division'
|
||||
complete -c gcc -o fno-cx-limited-range -d 'When enabled, states that a range reduction step is not needed when performing complex division'
|
||||
complete -c gcc -o fbranch-probabilities -d 'After running a program with -fprofile-arcs, one can compile it again with this option, to improve optimizations based on the number of times each branch was taken'
|
||||
complete -c gcc -o fprofile-values -d 'If combined with -fprofile-arcs, it adds code so that some data about values of expressions in the program is gathered'
|
||||
complete -c gcc -o fvpt -d 'If combined with -fprofile-arcs, it instructs the compiler to add a code to gather information about values of expressions'
|
||||
complete -c gcc -o frename-registers -d 'Attempt to avoid false dependencies in scheduled code by making use of registers left over after register allocation'
|
||||
@@ -430,13 +435,13 @@ complete -c gcc -s M -d 'Instead of outputting the result of preprocessing, outp
|
||||
complete -c gcc -o MM -d 'Like -M but do not mention header files that are found in system header directories, nor header files that are included, directly or indirectly, from such a header'
|
||||
complete -c gcc -o MF -d 'When used with -M or -MM, specifies a file to write the dependencies to'
|
||||
complete -c gcc -o MG -d 'In conjunction with an option such as -M requesting dependency generation, -MG assumes missing header files are generated files and adds them to the dependency list without raising an error'
|
||||
complete -c gcc -o MP -d 'This option instructs CPP to add a phony target for each dependency other than the main file, causing each to depend on nothing'
|
||||
complete -c gcc -o MP -d 'Instructs CPP to add a phony target for each dependency other than the main file, causing each to depend on nothing'
|
||||
complete -c gcc -o MT -d 'Change the target of the rule emitted by dependency generation'
|
||||
complete -c gcc -o MQ -d 'Same as -MT, but it quotes any characters which are special to Make'
|
||||
complete -c gcc -o MD -d 'is equivalent to -M -MF file, except that -E is not implied'
|
||||
complete -c gcc -o MMD -d 'Like -MD except mention only user header files, not system header files'
|
||||
complete -c gcc -o fpch-deps -d 'When using precompiled headers, this flag will cause the dependency-output flags to also list the files from the precompiled header’s dependencies'
|
||||
complete -c gcc -o fpch-preprocess -d 'This option allows use of a precompiled header together with -E'
|
||||
complete -c gcc -o fpch-preprocess -d 'Allows use of a precompiled header together with -E'
|
||||
complete -c gcc -s x -d 'Specify the source language' -a 'c c-header cpp-output
|
||||
c++ c++-header c++-cpp-output objective-c objective-c-header objective-c-cpp-output
|
||||
objective-c++ objective-c++-header objective-c++-cpp-output
|
||||
@@ -450,11 +455,11 @@ complete -c gcc -o include -d 'Process file as if "#include "file"" appeared as
|
||||
complete -c gcc -o imacros -d 'Exactly like -include, except that any output produced by scanning file is thrown away'
|
||||
complete -c gcc -o idirafter -d 'Search dir for header files, but do it after all directories specified with -I and the standard system directories have been exhausted'
|
||||
complete -c gcc -o iprefix -d 'Specify prefix as the prefix for subsequent -iwithprefix options'
|
||||
complete -c gcc -o iwithprefix -d 'Append dir to the prefix specified previously with -iprefix, and add the resulting directory to the include search path'
|
||||
complete -c gcc -o iwithprefixbefore -d 'Append dir to the prefix specified previously with -iprefix, and add the resulting directory to the include search path'
|
||||
complete -c gcc -o isysroot -d 'This option is like the --sysroot option, but applies only to header files'
|
||||
complete -c gcc -o iwithprefix -d 'Append dir to prefix defined with -iprefix, and add the result to the include search path. Add to same place as -I'
|
||||
complete -c gcc -o iwithprefixbefore -d 'Append dir to prefix defined with -iprefix, and add the result to the include search path. Add to same place as -idirafter'
|
||||
complete -c gcc -o isysroot -d 'Like the --sysroot option, but only to header files'
|
||||
complete -c gcc -o isystem -d 'Search dir for header files, after all directories specified by -I but before the standard system directories'
|
||||
complete -c gcc -o iquote -d 'Search dir only for header files requested with "#include "file""; they are not searched for "#include <file>", before all directories specified by -I and before the standard system directories'
|
||||
complete -c gcc -o iquote -d 'Search dir only for header files requested with "#include "file""'
|
||||
complete -c gcc -o fdollars-in-identifiers -d 'Accept $ in identifiers'
|
||||
complete -c gcc -o fextended-identifiers -d 'Accept universal character names in identifiers'
|
||||
complete -c gcc -o fpreprocessed -d 'Indicate to the preprocessor that the input file has already been preprocessed'
|
||||
@@ -485,7 +490,12 @@ complete -c gcc -s c -d 'Compile or assemble the source files, but do not link.'
|
||||
complete -c gcc -s S -d 'Stop after the stage of compilation proper; do not assemble'
|
||||
complete -c gcc -s E -d 'Stop after the preprocessing stage; do not run the compiler proper'
|
||||
complete -c gcc -o llibrary -d 'Search the library named library when linking'
|
||||
complete -c gcc -a '-l(path basename /usr/lib/lib*.so* | string match -r -g "^lib(.*?)\.so.*")'
|
||||
complete -c gcc -s l -d 'Search the library named library when linking'
|
||||
complete -c gcc -o ldl -d 'Search the dynamic loader library when linking'
|
||||
complete -c gcc -o lm -d 'Search the math library when linking'
|
||||
complete -c gcc -o lz -d 'Search the zlib library when linking'
|
||||
complete -c gcc -o lrt -d 'Search the realtime extensions library when linking'
|
||||
complete -c gcc -o lobjc -d 'You need this special case of the -l option in order to link an Objective-C or Objective-C++ program'
|
||||
complete -c gcc -o nostartfiles -d 'Do not use the standard system startup files when linking'
|
||||
complete -c gcc -o nodefaultlibs -d 'Do not use the standard system libraries when linking'
|
||||
@@ -500,13 +510,13 @@ complete -c gcc -o static-libgcc -d 'Force static libgcc'
|
||||
complete -c gcc -o symbolic -d 'Bind references to global symbols when building a shared object'
|
||||
complete -c gcc -o Xlinker -d 'Pass option as an option to the linker'
|
||||
complete -c gcc -s u -d 'Pretend the symbol symbol is undefined, to force linking of library modules to define it'
|
||||
complete -c gcc -o Idir -d 'Add the directory dir to the head of the list of directories to be searched for header files'
|
||||
complete -c gcc -o iquotedir -d 'Add the directory dir to the head of the list of directories to be searched for header files only for the case of #include "file"; they are not searched for #include <file>, otherwise just like -I'
|
||||
complete -c gcc -o L -d 'Add directory dir to the list of directories to be searched for -l'
|
||||
complete -c gcc -o B -d 'This option specifies where to find the executables, libraries, include files, and data files of the compiler itself'
|
||||
complete -c gcc -o specs -r -d 'Process file after the compiler reads in the standard specs file, in order to override the defaults that the gcc driver program uses when determining what switches to pass to cc1, cc1plus, as, ld, etc'
|
||||
complete -c gcc -o Idir -d 'Add dir to the head of the list of directories to be searched for header files'
|
||||
complete -c gcc -o iquotedir -d 'Add dir to the head of the list of directories to be searched for header files only for the case of #include "file"'
|
||||
complete -c gcc -o L -d 'Add dir to the list of directories to be searched for -l'
|
||||
complete -c gcc -o B -d 'Specifies where to find the executables, libraries, include files, and data files of the compiler itself'
|
||||
complete -c gcc -o specs -r -d 'Process file after the compiler reads in the standard specs file'
|
||||
complete -c gcc -l sysroot -x -a '(__fish_complete_directories)' -d 'Use dir as the logical root directory for headers and libraries'
|
||||
complete -c gcc -o I- -d 'This option has been deprecated'
|
||||
complete -c gcc -o I- -d 'Deprecated'
|
||||
complete -c gcc -s b -d 'The argument machine specifies the target machine for compilation'
|
||||
complete -c gcc -s V -d 'The argument version specifies which version of GCC to run'
|
||||
complete -c gcc -o EL -d 'Compile code for little endian mode'
|
||||
@@ -523,7 +533,7 @@ complete -c gcc -o msoft-float -d 'Generate output containing library calls for
|
||||
complete -c gcc -o mfloat-abi -d 'Specifies which ABI to use for floating point values' -x
|
||||
complete -c gcc -o mlittle-endian -d 'Generate code for a processor running in little-endian mode'
|
||||
complete -c gcc -o mbig-endian -d 'Generate code for a processor running in big-endian mode; the default is to compile code for a little-endian processor'
|
||||
complete -c gcc -o mwords-little-endian -d 'This option only applies when generating code for big-endian processors'
|
||||
complete -c gcc -o mwords-little-endian -d 'Only applies when generating code for big-endian processors'
|
||||
complete -c gcc -o mcpu -d 'This specifies the name of the target ARM processor' -x
|
||||
complete -c gcc -o mtune -d 'Tune output for this cpu without restricting the instructions to it'
|
||||
complete -c gcc -o march -d 'This specifies the name of the target ARM architecture' -x
|
||||
@@ -532,8 +542,8 @@ complete -c gcc -o mfpe -x -d 'This specifies what floating point hardware (or h
|
||||
complete -c gcc -o mfp -x -d 'This specifies what floating point hardware (or hardware emulation) is available on the target'
|
||||
complete -c gcc -o mstructure-size-boundary -x -d 'The size of all structures and unions will be rounded up to a multiple of the number of bits set by this option'
|
||||
complete -c gcc -o mabort-on-noreturn -d 'Generate a call to the function "abort" at the end of a "noreturn" function'
|
||||
complete -c gcc -o mlong-calls -d 'Tells the compiler to perform function calls by first loading the address of the function into a register and then performing a subroutine call on this register'
|
||||
complete -c gcc -o mno-long-calls -d 'Tells the compiler to perform function calls by first loading the address of the function into a register and then performing a subroutine call on this register'
|
||||
complete -c gcc -o mlong-calls -d 'Perform function calls by first loading the address of the function into a register and then performing a subroutine call on it'
|
||||
complete -c gcc -o mno-long-calls -d 'Do not perform function calls by first loading the address of the function into a register and then performing a subroutine call on it'
|
||||
complete -c gcc -o mnop-fun-dllimport -d 'Disable support for the "dllimport" attribute'
|
||||
complete -c gcc -o msingle-pic-base -d 'Treat the register used for PIC addressing as read-only, rather than loading it in the prologue for each function'
|
||||
complete -c gcc -o mpic-register -x -d 'Specify the register to be used for PIC addressing'
|
||||
@@ -543,7 +553,7 @@ complete -c gcc -o mthumb -d 'Generate code for the 16-bit Thumb instruction set
|
||||
complete -c gcc -o mtpcs-frame -d 'Generate a stack frame that is compliant with the Thumb Procedure Call Standard for all non-leaf functions'
|
||||
complete -c gcc -o mtpcs-leaf-frame -d 'Generate a stack frame that is compliant with the Thumb Procedure Call Standard for all leaf functions'
|
||||
complete -c gcc -o mcallee-super-interworking -d 'Gives all externally visible functions in the file being compiled an ARM instruction set header which switches to Thumb mode before executing the rest of the function'
|
||||
complete -c gcc -o mcaller-super-interworking -d 'Allows calls via function pointers (including virtual functions) to execute correctly regardless of whether the target code has been compiled for interworking or not'
|
||||
complete -c gcc -o mcaller-super-interworking -d 'Allow calls via function pointers (including virtual functions) to execute correctly regardless of whether the target code has been compiled for interworking'
|
||||
complete -c gcc -o mtp -x -d 'Specify the access model for the thread local storage pointer'
|
||||
complete -c gcc -o mmcu -x -d 'Specify ATMEL AVR instruction set or MCU type'
|
||||
complete -c gcc -o msize -d 'Output instruction sizes to the asm file'
|
||||
@@ -556,15 +566,15 @@ complete -c gcc -o mint8 -d 'Assume int to be 8 bit integer'
|
||||
complete -c gcc -o momit-leaf-frame-pointer -d 'Don’t keep the frame pointer in a register for leaf functions'
|
||||
complete -c gcc -o mspecld-anomaly -d 'When enabled, the compiler will ensure that the generated code does not contain speculative loads after jump instructions'
|
||||
complete -c gcc -o mno-specld-anomaly -d 'Don’t generate extra code to prevent speculative loads from occurring'
|
||||
complete -c gcc -o mcsync-anomaly -d 'When enabled, the compiler will ensure that the generated code does not contain CSYNC or SSYNC instructions too soon after conditional branches'
|
||||
complete -c gcc -o mcsync-anomaly -d 'Ensure that the generated code does not contain CSYNC or SSYNC instructions too soon after conditional branches'
|
||||
complete -c gcc -o mno-csync-anomaly -d 'Don’t generate extra code to prevent CSYNC or SSYNC instructions from occurring too soon after a conditional branch'
|
||||
complete -c gcc -o mlow-64k -d 'When enabled, the compiler is free to take advantage of the knowledge that the entire program fits into the low 64k of memory'
|
||||
complete -c gcc -o mlow-64k -d 'Compiler is free to take advantage of the knowledge that the entire program fits into the low 64k of memory'
|
||||
complete -c gcc -o mno-low-64k -d 'Assume that the program is arbitrarily large'
|
||||
complete -c gcc -o mid-shared-library -d 'Generate code that supports shared libraries via the library ID method'
|
||||
complete -c gcc -o mno-id-shared-library -d 'Generate code that doesn’t assume ID based shared libraries are being used'
|
||||
complete -c gcc -o mshared-library-id -x -d 'Specified the identification number of the ID based shared library being compiled'
|
||||
complete -c gcc -o mlong-calls -d 'Tells the compiler to perform function calls by first loading the address of the function into a register and then performing a subroutine call on this register'
|
||||
complete -c gcc -o mno-long-calls -d 'Tells the compiler to perform function calls by first loading the address of the function into a register and then performing a subroutine call on this register'
|
||||
complete -c gcc -o mlong-calls -d 'Perform function calls by first loading the address of the function into a register and then performing a subroutine call on it'
|
||||
complete -c gcc -o mno-long-calls -d 'Does not perform function calls by first loading the address of the function into a register and then performing a subroutine call on it'
|
||||
complete -c gcc -o march -d 'Generate code for the specified architecture'
|
||||
complete -c gcc -o mcpu -d 'Generate code for the specified architecture'
|
||||
complete -c gcc -o type -d 'Generate code for the specified architecture'
|
||||
@@ -572,35 +582,35 @@ complete -c gcc -o mtune -d 'Tune to architecture-type everything applicable abo
|
||||
complete -c gcc -o type -d 'Tune to architecture-type everything applicable about the generated code, except for the ABI and the set of available instructions'
|
||||
complete -c gcc -o mmax-stack-frame -d '=n Warn when the stack frame of a function exceeds n bytes'
|
||||
complete -c gcc -o melinux-stacksize -d '=n Only available with the cris-axis-aout target'
|
||||
complete -c gcc -o metrax4 -d 'The options -metrax4 and -metrax100 are synonyms for -march=v3 and -march=v8 respectively'
|
||||
complete -c gcc -o metrax100 -d 'The options -metrax4 and -metrax100 are synonyms for -march=v3 and -march=v8 respectively'
|
||||
complete -c gcc -o metrax4 -d 'Synonym for -march=v3'
|
||||
complete -c gcc -o metrax100 -d 'Synonym for -march=v8'
|
||||
complete -c gcc -o mmul-bug-workaround -d 'Work around a bug in the "muls" and "mulu" instructions for CPU models where it applies'
|
||||
complete -c gcc -o mno-mul-bug-workaround -d 'Work around a bug in the "muls" and "mulu" instructions for CPU models where it applies'
|
||||
complete -c gcc -o mpdebug -d 'Enable CRIS-specific verbose debug-related information in the assembly code'
|
||||
complete -c gcc -o mcc-init -d 'Do not use condition-code results from previous instruction; always emit compare and test instructions before use of condition codes'
|
||||
complete -c gcc -o mno-side-effects -d 'Do not emit instructions with side-effects in addressing modes other than post-increment'
|
||||
complete -c gcc -o mstack-align -d 'These options (no-options) arranges (eliminate arrangements) for the stack-frame, individual data and constants to be aligned for the maximum single data access size for the chosen CPU model'
|
||||
complete -c gcc -o mno-stack-align -d 'These options (no-options) arranges (eliminate arrangements) for the stack-frame, individual data and constants to be aligned for the maximum single data access size for the chosen CPU model'
|
||||
complete -c gcc -o mdata-align -d 'These options (no-options) arranges (eliminate arrangements) for the stack-frame, individual data and constants to be aligned for the maximum single data access size for the chosen CPU model'
|
||||
complete -c gcc -o mno-data-align -d 'These options (no-options) arranges (eliminate arrangements) for the stack-frame, individual data and constants to be aligned for the maximum single data access size for the chosen CPU model'
|
||||
complete -c gcc -o mconst-align -d 'These options (no-options) arranges (eliminate arrangements) for the stack-frame, individual data and constants to be aligned for the maximum single data access size for the chosen CPU model'
|
||||
complete -c gcc -o mno-const-align -d 'These options (no-options) arranges (eliminate arrangements) for the stack-frame, individual data and constants to be aligned for the maximum single data access size for the chosen CPU model'
|
||||
complete -c gcc -o m32-bit -d 'Similar to the stack- data- and const-align options above, these options arrange for stack-frame, writable data and constants to all be 32-bit, 16-bit or 8-bit aligned'
|
||||
complete -c gcc -o m16-bit -d 'Similar to the stack- data- and const-align options above, these options arrange for stack-frame, writable data and constants to all be 32-bit, 16-bit or 8-bit aligned'
|
||||
complete -c gcc -o m8-bit -d 'Similar to the stack- data- and const-align options above, these options arrange for stack-frame, writable data and constants to all be 32-bit, 16-bit or 8-bit aligned'
|
||||
complete -c gcc -o mstack-align -d 'Arranges for the stack-frame to be aligned for the maximum single data access size for the chosen CPU model'
|
||||
complete -c gcc -o mno-stack-align -d 'Eliminate arrangements for the stack-frame to be aligned for the maximum single data access size for the chosen CPU model'
|
||||
complete -c gcc -o mdata-align -d 'Arranges for the individual data to be aligned for the maximum single data access size for the chosen CPU model'
|
||||
complete -c gcc -o mno-data-align -d 'Eliminate arrangements for the individual data to be aligned for the maximum single data access size for the chosen CPU model'
|
||||
complete -c gcc -o mconst-align -d 'Arranges for the constants to be aligned for the maximum single data access size for the chosen CPU model'
|
||||
complete -c gcc -o mno-const-align -d 'Eliminate arrangements for the constants to be aligned for the maximum single data access size for the chosen CPU model'
|
||||
complete -c gcc -o m32-bit -d 'Arrange for stack-frame, writable data and constants to all be 32-bit, 16-bit or 8-bit aligned'
|
||||
complete -c gcc -o m16-bit -d 'Arrange for stack-frame, writable data and constants to all be 32-bit, 16-bit or 8-bit aligned'
|
||||
complete -c gcc -o m8-bit -d 'Arrange for stack-frame, writable data and constants to all be 32-bit, 16-bit or 8-bit aligned'
|
||||
complete -c gcc -o mno-prologue-epilogue -d 'With -mno-prologue-epilogue, the normal function prologue and epilogue that sets up the stack-frame are omitted and no return instructions or return sequences are generated in the code'
|
||||
complete -c gcc -o mprologue-epilogue -d 'With -mno-prologue-epilogue, the normal function prologue and epilogue that sets up the stack-frame are omitted and no return instructions or return sequences are generated in the code'
|
||||
complete -c gcc -o mno-gotplt -d 'With -fpic and -fPIC, don’t generate (do generate) instruction sequences that load addresses for functions from the PLT part of the GOT rather than (traditional on other architectures) calls to the PLT'
|
||||
complete -c gcc -o mgotplt -d 'With -fpic and -fPIC, don’t generate (do generate) instruction sequences that load addresses for functions from the PLT part of the GOT rather than (traditional on other architectures) calls to the PLT'
|
||||
complete -c gcc -o maout -d 'Legacy no-op option only recognized with the cris-axis-aout target'
|
||||
complete -c gcc -o melf -d 'Legacy no-op option only recognized with the cris-axis-elf and cris-axis-linux-gnu targets'
|
||||
complete -c gcc -o mno-gotplt -d 'With -fpic and -fPIC, don’t generate instruction sequences that load addresses for functions from the PLT part of the GOT rather than (traditional on other architectures) calls to the PLT'
|
||||
complete -c gcc -o mgotplt -d 'With -fpic and -fPIC, generate instruction sequences that load addresses for functions from the PLT part of the GOT rather than (traditional on other architectures) calls to the PLT'
|
||||
complete -c gcc -o maout -d 'Legacy no-op flag only recognized with the cris-axis-aout target'
|
||||
complete -c gcc -o melf -d 'Legacy no-op flag only recognized with the cris-axis-elf and cris-axis-linux-gnu targets'
|
||||
complete -c gcc -o melinux -d 'Only recognized with the cris-axis-aout target, where it selects a GNU/linux-like multilib, include files and instruction set for -march=v8'
|
||||
complete -c gcc -o mlinux -d 'Legacy no-op option only recognized with the cris-axis-linux-gnu target'
|
||||
complete -c gcc -o sim -d 'This option, recognized for the cris-axis-aout and cris-axis-elf arranges to link with input-output functions from a simulator library'
|
||||
complete -c gcc -o mlinux -d 'Legacy no-op flag only recognized with the cris-axis-linux-gnu target'
|
||||
complete -c gcc -o sim -d 'When recognized for the cris-axis-aout and cris-axis-elf arranges to link with input-output functions from a simulator library'
|
||||
complete -c gcc -o sim2 -d 'Like -sim, but pass linker options to locate initialized data at 0x40000000 and zero-initialized data at 0x80000000'
|
||||
complete -c gcc -o mmac -d 'Enable the use of multiply-accumulate instructions'
|
||||
complete -c gcc -o mpush-args -d 'Push instructions will be used to pass outgoing arguments when functions are called'
|
||||
complete -c gcc -o Fdir -d 'Add the framework directory dir to the head of the list of directories to be searched for header files'
|
||||
complete -c gcc -o Fdir -d 'Add the framework dir to the list of directories to be searched for headers'
|
||||
complete -c gcc -o gused -d 'Emit debugging information for symbols that are used'
|
||||
complete -c gcc -o gfull -d 'Emit debugging information for all symbols and types'
|
||||
complete -c gcc -o mmacosx-version-min -d '=version The earliest version of MacOS X that this executable will run on is version'
|
||||
@@ -612,8 +622,8 @@ complete -c gcc -o all_load -d 'Loads all members of static archive libraries'
|
||||
complete -c gcc -o arch_errors_fatal -d 'Cause the errors having to do with files that have the wrong architecture to be fatal'
|
||||
complete -c gcc -o bind_at_load -d 'Causes the output file to be marked such that the dynamic linker will bind all undefined references when the file is loaded or launched'
|
||||
complete -c gcc -o bundle -d 'Produce a Mach-o bundle format file'
|
||||
complete -c gcc -o bundle_loader -d 'This option specifies the executable that will be loading the build output file being linked'
|
||||
complete -c gcc -o dynamiclib -d 'When passed this option, GCC will produce a dynamic library instead of an executable when linking, using the Darwin libtool command'
|
||||
complete -c gcc -o bundle_loader -d 'Specifies the executable that will be loading the build output file being linked'
|
||||
complete -c gcc -o dynamiclib -d 'When enabled, GCC will produce a dynamic library instead of an executable when linking, using the Darwin libtool command'
|
||||
complete -c gcc -o force_cpusubtype_ALL -d 'This causes GCC’s output file to have the ALL subtype, instead of one controlled by the -mcpu or -march option'
|
||||
complete -c gcc -o allowable_client -d 'These options are passed to the Darwin linker'
|
||||
complete -c gcc -o client_name -d 'These options are passed to the Darwin linker'
|
||||
@@ -686,7 +696,7 @@ complete -c gcc -o mode -d 'Selects the IEEE rounding mode'
|
||||
complete -c gcc -o mtrap-precision -d 'In the Alpha architecture, floating point traps are imprecise'
|
||||
complete -c gcc -o precision -d 'In the Alpha architecture, floating point traps are imprecise'
|
||||
complete -c gcc -o mieee-conformant -d 'This option marks the generated code as IEEE conformant'
|
||||
complete -c gcc -o mbuild-constants -d 'Normally GCC examines a 32- or 64-bit integer constant to see if it can construct it from smaller constants in two or three instructions'
|
||||
complete -c gcc -o mbuild-constants -d 'This option require to construct all integer constants using code (maximum is six)'
|
||||
complete -c gcc -o malpha-as -d 'Select whether to generate code to be assembled by the vendor-supplied assembler (-malpha-as) or by the GNU assembler -mgas'
|
||||
complete -c gcc -o mgas -d 'Select whether to generate code to be assembled by the vendor-supplied assembler (-malpha-as) or by the GNU assembler -mgas'
|
||||
complete -c gcc -o mbwx -d 'Indicate whether GCC should generate code to use the optional BWX, CIX, FIX and MAX instruction sets'
|
||||
@@ -703,8 +713,8 @@ complete -c gcc -o mexplicit-relocs -d 'Older Alpha assemblers provided no way t
|
||||
complete -c gcc -o mno-explicit-relocs -d 'Older Alpha assemblers provided no way to generate symbol relocations except via assembler macros'
|
||||
complete -c gcc -o msmall-data -d 'When -mexplicit-relocs is in effect, static data is accessed via gp-relative relocations'
|
||||
complete -c gcc -o mlarge-data -d 'When -mexplicit-relocs is in effect, static data is accessed via gp-relative relocations'
|
||||
complete -c gcc -o msmall-text -d 'When -msmall-text is used, the compiler assumes that the code of the entire program (or shared library) fits in 4MB, and is thus reachable with a branch instruction'
|
||||
complete -c gcc -o mlarge-text -d 'When -msmall-text is used, the compiler assumes that the code of the entire program (or shared library) fits in 4MB, and is thus reachable with a branch instruction'
|
||||
complete -c gcc -o msmall-text -d 'Assumes that the code of the entire program (or shared library) fits in 4MB, and is thus reachable with a branch instruction'
|
||||
complete -c gcc -o mlarge-text -d 'Does not assume that the code of the entire program (or shared library) fits in 4MB, and is thus reachable with a branch instruction'
|
||||
complete -c gcc -o mcpu -d '=cpu_type Set the instruction set and instruction scheduling parameters for machine type cpu_type'
|
||||
complete -c gcc -o mtune -d '=cpu_type Set only the instruction scheduling parameters for machine type cpu_type'
|
||||
complete -c gcc -o mmemory-latency -d '=time Sets the latency the scheduler should assume for typical memory references as seen by the application'
|
||||
@@ -809,8 +819,8 @@ complete -c gcc -o mno-ieee-fp -d 'Control whether or not the compiler uses IEEE
|
||||
complete -c gcc -o msoft-float -d 'Generate output containing library calls for floating point'
|
||||
complete -c gcc -o mno-fp-ret-in-387 -d 'Do not use the FPU registers for return values of functions'
|
||||
complete -c gcc -o mno-fancy-math-387 -d 'Some 387 emulators do not support the "sin", "cos" and "sqrt" instructions for the 387'
|
||||
complete -c gcc -o malign-double -d 'Control whether GCC aligns "double", "long double", and "long long" variables on a two word boundary or a one word boundary'
|
||||
complete -c gcc -o mno-align-double -d 'Control whether GCC aligns "double", "long double", and "long long" variables on a two word boundary or a one word boundary'
|
||||
complete -c gcc -o malign-double -d 'Aligns "double", "long double", and "long long" variables on a two word boundary'
|
||||
complete -c gcc -o mno-align-double -d 'Aligns "double", "long double", and "long long" variables on a one word boundary'
|
||||
complete -c gcc -o m96bit-long-double -d 'These switches control the size of "long double" type'
|
||||
complete -c gcc -o m128bit-long-double -d 'These switches control the size of "long double" type'
|
||||
complete -c gcc -o mmlarge-data-threshold -d '=number When -mcmodel=medium is specified, the data greater than threshold are placed in large data section'
|
||||
@@ -834,7 +844,7 @@ complete -c gcc -o m3dnow -d 'These switches enable or disable the use of instru
|
||||
complete -c gcc -o mno-3dnow -d 'These switches enable or disable the use of instructions in the MMX, SSE, SSE2 or 3DNow! extended instruction sets'
|
||||
complete -c gcc -o mpush-args -d 'Use PUSH operations to store outgoing parameters'
|
||||
complete -c gcc -o mno-push-args -d 'Use PUSH operations to store outgoing parameters'
|
||||
complete -c gcc -o maccumulate-outgoing-args -d 'If enabled, the maximum amount of space required for outgoing arguments will be computed in the function prologue'
|
||||
complete -c gcc -o maccumulate-outgoing-args -d 'The maximum amount of space required for outgoing arguments will be computed in the function prologue'
|
||||
complete -c gcc -o mthreads -d 'Support thread-safe exception handling on Mingw32'
|
||||
complete -c gcc -o mno-align-stringops -d 'Do not align destination of inlined string operations'
|
||||
complete -c gcc -o minline-all-stringops -d 'By default GCC inlines string operations only when destination is known to be aligned at least to 4 byte boundary'
|
||||
@@ -922,8 +932,8 @@ complete -c gcc -o mshort -d 'Consider type "int" to be 16 bits wide, like "shor
|
||||
complete -c gcc -o mnobitfield -d 'Do not use the bit-field instructions'
|
||||
complete -c gcc -o mbitfield -d 'Do use the bit-field instructions'
|
||||
complete -c gcc -o mrtd -d 'Use a different function-calling convention, in which functions that take a fixed number of arguments return with the "rtd" instruction, which pops their arguments while returning'
|
||||
complete -c gcc -o malign-int -d 'Control whether GCC aligns "int", "long", "long long", "float", "double", and "long double" variables on a 32-bit boundary (-malign-int) or a 16-bit boundary (-mno-align-int)'
|
||||
complete -c gcc -o mno-align-int -d 'Control whether GCC aligns "int", "long", "long long", "float", "double", and "long double" variables on a 32-bit boundary (-malign-int) or a 16-bit boundary (-mno-align-int)'
|
||||
complete -c gcc -o malign-int -d 'Make GCC align "int", "long", "long long", "float", "double", and "long double" variables on a 32-bit boundary'
|
||||
complete -c gcc -o mno-align-int -d 'Make GCC aligns "int", "long", "long long", "float", "double", and "long double" variables on 16-bit boundary'
|
||||
complete -c gcc -o mpcrel -d 'Use the pc-relative addressing mode of the 68000 directly, instead of using a global offset table'
|
||||
complete -c gcc -o mno-strict-align -d 'Do not (do) assume that unaligned memory references will be handled by the system'
|
||||
complete -c gcc -o mstrict-align -d 'Do not (do) assume that unaligned memory references will be handled by the system'
|
||||
@@ -965,7 +975,7 @@ complete -c gcc -o m210 -d 'Generate code for the 210 processor'
|
||||
complete -c gcc -o m340 -d 'Generate code for the 210 processor'
|
||||
complete -c gcc -o EB -d 'Generate big-endian code'
|
||||
complete -c gcc -o EL -d 'Generate little-endian code'
|
||||
complete -c gcc -o march -d '=arch Generate code that will run on arch, which can be the name of a generic MIPS ISA, or the name of a particular processor'
|
||||
complete -c gcc -o march -d '=arch Generate code that will run on arch, which can be the name of a generic MIPS ISA, or the name of the processor'
|
||||
complete -c gcc -o mtune -d '=arch Optimize for arch'
|
||||
complete -c gcc -o mips1 -d 'Equivalent to -march=mips1'
|
||||
complete -c gcc -o mips2 -d 'Equivalent to -march=mips2'
|
||||
@@ -974,12 +984,8 @@ complete -c gcc -o mips4 -d 'Equivalent to -march=mips4'
|
||||
complete -c gcc -o mips32 -d 'Equivalent to -march=mips32'
|
||||
complete -c gcc -o mips32r2 -d 'Equivalent to -march=mips32r2'
|
||||
complete -c gcc -o mips64 -d 'Equivalent to -march=mips64'
|
||||
complete -c gcc -o mips16 -d 'Generate (do not generate) MIPS16 code'
|
||||
complete -c gcc -o mno-mips16 -d 'Generate (do not generate) MIPS16 code'
|
||||
complete -c gcc -o mabi -d '=eabi Generate code for the given ABI'
|
||||
complete -c gcc -o mabi -d '=eabi Generate code for the given ABI'
|
||||
complete -c gcc -o mabi -d '=eabi Generate code for the given ABI'
|
||||
complete -c gcc -o mabi -d '=eabi Generate code for the given ABI'
|
||||
complete -c gcc -o mips16 -d 'Generate MIPS16 code'
|
||||
complete -c gcc -o mno-mips16 -d 'Do not generate MIPS16 code'
|
||||
complete -c gcc -o mabi -d '=eabi Generate code for the given ABI'
|
||||
complete -c gcc -o mabicalls -d 'Generate (do not generate) SVR4-style position-independent code'
|
||||
complete -c gcc -o mno-abicalls -d 'Generate (do not generate) SVR4-style position-independent code'
|
||||
@@ -1001,11 +1007,11 @@ complete -c gcc -o mips3d -d 'Use (do not use) the MIPS-3D ASE'
|
||||
complete -c gcc -o mno-mips3d -d 'Use (do not use) the MIPS-3D ASE'
|
||||
complete -c gcc -o mlong64 -d 'Force "long" types to be 64 bits wide'
|
||||
complete -c gcc -o mlong32 -d 'Force "long", "int", and pointer types to be 32 bits wide'
|
||||
complete -c gcc -o msym32 -d 'Assume (do not assume) that all symbols have 32-bit values, regardless of the selected ABI'
|
||||
complete -c gcc -o mno-sym32 -d 'Assume (do not assume) that all symbols have 32-bit values, regardless of the selected ABI'
|
||||
complete -c gcc -s G -d 'Put global and static items less than or equal to num bytes into the small data or bss section instead of the normal data or bss section'
|
||||
complete -c gcc -o membedded-data -d 'Allocate variables to the read-only data section first if possible, then next in the small data section if possible, otherwise in data'
|
||||
complete -c gcc -o mno-embedded-data -d 'Allocate variables to the read-only data section first if possible, then next in the small data section if possible, otherwise in data'
|
||||
complete -c gcc -o msym32 -d 'Assume that all symbols have 32-bit values, regardless of the selected ABI'
|
||||
complete -c gcc -o mno-sym32 -d 'Do not assume that all symbols have 32-bit values, regardless of the selected ABI'
|
||||
complete -c gcc -s G -d 'Put global and static items less than or equal to num bytes into the small data or bss section instead of the normal one'
|
||||
complete -c gcc -o membedded-data -d 'Allocate variables if possible to the read-only data section first, then in the small data section, otherwise in data'
|
||||
complete -c gcc -o mno-embedded-data -d 'Does not allocate variables if possible to the read-only data section first, then in the small data section, otherwise in data'
|
||||
complete -c gcc -o muninit-const-in-rodata -d 'Put uninitialized "const" variables in the read-only data section'
|
||||
complete -c gcc -o mno-uninit-const-in-rodata -d 'Put uninitialized "const" variables in the read-only data section'
|
||||
complete -c gcc -o msplit-addresses -d 'Enable (disable) use of the "%hi()" and "%lo()" assembler relocation operators'
|
||||
@@ -1025,35 +1031,34 @@ complete -c gcc -o mno-mad -d 'Enable (disable) use of the "mad", "madu" and "mu
|
||||
complete -c gcc -o mfused-madd -d 'Enable (disable) use of the floating point multiply-accumulate instructions, when they are available'
|
||||
complete -c gcc -o mno-fused-madd -d 'Enable (disable) use of the floating point multiply-accumulate instructions, when they are available'
|
||||
complete -c gcc -o nocpp -d 'Tell the MIPS assembler to not run its preprocessor over user assembler files (with a '
|
||||
complete -c gcc -o mfix-r4000 -d 'Work around certain R4000 CPU errata: - A double-word or a variable shift may give an incorrect result if executed immediately after starting an integer division'
|
||||
complete -c gcc -o mno-fix-r4000 -d 'Work around certain R4000 CPU errata: - A double-word or a variable shift may give an incorrect result if executed immediately after starting an integer division'
|
||||
complete -c gcc -o mfix-r4400 -d 'Work around certain R4400 CPU errata: - A double-word or a variable shift may give an incorrect result if executed immediately after starting an integer division'
|
||||
complete -c gcc -o mno-fix-r4400 -d 'Work around certain R4400 CPU errata: - A double-word or a variable shift may give an incorrect result if executed immediately after starting an integer division'
|
||||
complete -c gcc -o mfix-vr4120 -d 'Work around certain VR4120 errata: - "dmultu" does not always produce the correct result'
|
||||
complete -c gcc -o mno-fix-vr4120 -d 'Work around certain VR4120 errata: - "dmultu" does not always produce the correct result'
|
||||
complete -c gcc -o mfix-r4000 -d 'Work around certain R4000 CPU errata'
|
||||
complete -c gcc -o mno-fix-r4000 -d 'Does not work around certain R4000 CPU errata'
|
||||
complete -c gcc -o mfix-r4400 -d 'Work around certain R4400 CPU errata'
|
||||
complete -c gcc -o mno-fix-r4400 -d 'Does not work around certain R4400 CPU errata'
|
||||
complete -c gcc -o mfix-vr4120 -d 'Work around certain VR4120 errata'
|
||||
complete -c gcc -o mno-fix-vr4120 -d 'Does not work around certain VR4120 errata'
|
||||
complete -c gcc -o mfix-vr4130 -d 'Work around the VR4130 "mflo"/"mfhi" errata'
|
||||
complete -c gcc -o mfix-sb1 -d 'Work around certain SB-1 CPU core errata'
|
||||
complete -c gcc -o mno-fix-sb1 -d 'Work around certain SB-1 CPU core errata'
|
||||
complete -c gcc -o mflush-func -d 'Specifies the function to call to flush the I and D caches, or to not call any such function'
|
||||
complete -c gcc -o mno-flush-func -d 'Specifies the function to call to flush the I and D caches, or to not call any such function'
|
||||
complete -c gcc -o mbranch-likely -d 'Enable or disable use of Branch Likely instructions, regardless of the default for the selected architecture'
|
||||
complete -c gcc -o mno-branch-likely -d 'Enable or disable use of Branch Likely instructions, regardless of the default for the selected architecture'
|
||||
complete -c gcc -o mno-fix-sb1 -d 'Does not work around certain SB-1 CPU core errata'
|
||||
complete -c gcc -o mflush-func -d 'Specifies the function to call to flush the I and D caches'
|
||||
complete -c gcc -o mno-flush-func -d 'Specifies to not call the function to flush the I and D caches'
|
||||
complete -c gcc -o mbranch-likely -d 'Enable use of Branch Likely instructions, regardless of the default for the selected architecture'
|
||||
complete -c gcc -o mno-branch-likely -d 'Disable use of Branch Likely instructions, regardless of the default for the selected architecture'
|
||||
complete -c gcc -o mfp-exceptions -d 'Specifies whether FP exceptions are enabled'
|
||||
complete -c gcc -o mno-fp-exceptions -d 'Specifies whether FP exceptions are enabled'
|
||||
complete -c gcc -o mvr4130-align -d 'The VR4130 pipeline is two-way superscalar, but can only issue two instructions together if the first one is 8-byte aligned'
|
||||
complete -c gcc -o mno-vr4130-align -d 'The VR4130 pipeline is two-way superscalar, but can only issue two instructions together if the first one is 8-byte aligned'
|
||||
complete -c gcc -o mvr4130-align -d 'VR4130 pipeline is two-way superscalar, but can only issue two instructions together if the first one is 8-byte aligned'
|
||||
complete -c gcc -o mno-vr4130-align -d 'VR4130 pipeline is two-way superscalar, but can only issue two instructions together if the first one is 8-byte aligned'
|
||||
complete -c gcc -o mlibfuncs -d 'Specify that intrinsic library functions are being compiled, passing all values in registers, no matter the size'
|
||||
complete -c gcc -o mno-libfuncs -d 'Specify that intrinsic library functions are being compiled, passing all values in registers, no matter the size'
|
||||
complete -c gcc -o mepsilon -d 'Generate floating-point comparison instructions that compare with respect to the "rE" epsilon register'
|
||||
complete -c gcc -o mno-epsilon -d 'Generate floating-point comparison instructions that compare with respect to the "rE" epsilon register'
|
||||
complete -c gcc -o mabi -d '=gnu Generate code that passes function parameters and return values that (in the called function) are seen as registers $0 and up, as opposed to the GNU ABI which uses global registers $231 and up'
|
||||
complete -c gcc -o mabi -d '=gnu Generate code that passes function parameters and return values that (in the called function) are seen as registers $0 and up, as opposed to the GNU ABI which uses global registers $231 and up'
|
||||
complete -c gcc -o mzero-extend -d 'When reading data from memory in sizes shorter than 64 bits, use (do not use) zero-extending load instructions by default, rather than sign-extending ones'
|
||||
complete -c gcc -o mno-zero-extend -d 'When reading data from memory in sizes shorter than 64 bits, use (do not use) zero-extending load instructions by default, rather than sign-extending ones'
|
||||
complete -c gcc -o mzero-extend -d 'When reading data from memory in sizes shorter than 64 bits, use zero-extending load instructions by default, rather than sign-extending ones'
|
||||
complete -c gcc -o mno-zero-extend -d 'When reading data from memory in sizes shorter than 64 bits, do not use zero-extending load instructions by default, rather than sign-extending ones'
|
||||
complete -c gcc -o mknuthdiv -d 'Make the result of a division yielding a remainder have the same sign as the divisor'
|
||||
complete -c gcc -o mno-knuthdiv -d 'Make the result of a division yielding a remainder have the same sign as the divisor'
|
||||
complete -c gcc -o mtoplevel-symbols -d 'Prepend (do not prepend) a : to all global symbols, so the assembly code can be used with the "PREFIX" assembly directive'
|
||||
complete -c gcc -o mno-toplevel-symbols -d 'Prepend (do not prepend) a : to all global symbols, so the assembly code can be used with the "PREFIX" assembly directive'
|
||||
complete -c gcc -o mtoplevel-symbols -d 'Prepend a : to all global symbols, so the assembly code can be used with the "PREFIX" assembly directive'
|
||||
complete -c gcc -o mno-toplevel-symbols -d 'Do not prepend a : to all global symbols, so the assembly code can be used with the "PREFIX" assembly directive'
|
||||
complete -c gcc -o melf -d 'Generate an executable in the ELF format, rather than the default mmo format used by the mmix simulator'
|
||||
complete -c gcc -o mbranch-predict -d 'Use (do not use) the probable-branch instructions, when static branch prediction indicates a probable branch'
|
||||
complete -c gcc -o mno-branch-predict -d 'Use (do not use) the probable-branch instructions, when static branch prediction indicates a probable branch'
|
||||
@@ -1067,7 +1072,7 @@ complete -c gcc -o mam33 -d 'Generate code which uses features specific to the A
|
||||
complete -c gcc -o mno-am33 -d 'Do not generate code which uses features specific to the AM33 processor'
|
||||
complete -c gcc -o mreturn-pointer-on-d0 -d 'When generating a function which returns a pointer, return the pointer in both "a0" and "d0"'
|
||||
complete -c gcc -o mno-crt0 -d 'Do not link in the C run-time initialization object file'
|
||||
complete -c gcc -o mrelax -d 'Indicate to the linker that it should perform a relaxation optimization pass to shorten branches, calls and absolute memory addresses'
|
||||
complete -c gcc -o mrelax -d 'Tell the linker it should perform a relaxation optimization to shorten branches, calls and absolute memory addresses'
|
||||
complete -c gcc -o march -d 'Generate code that will run on cpu-type, which is the name of a system representing a certain processor type'
|
||||
complete -c gcc -o type -d 'Generate code that will run on cpu-type, which is the name of a system representing a certain processor type'
|
||||
complete -c gcc -o mbacc -d 'Use byte loads and stores when generating code'
|
||||
@@ -1121,12 +1126,12 @@ complete -c gcc -o mmfpgpr -d 'GCC supports two related instruction set architec
|
||||
complete -c gcc -o mno-mfpgpr -d 'GCC supports two related instruction set architectures for the RS/6000 and PowerPC'
|
||||
complete -c gcc -o mnew-mnemonics -d 'Select which mnemonics to use in the generated assembler code'
|
||||
complete -c gcc -o mold-mnemonics -d 'Select which mnemonics to use in the generated assembler code'
|
||||
complete -c gcc -o mcpu -d '=cpu_type Set architecture type, register usage, choice of mnemonics, and instruction scheduling parameters for machine type cpu_type'
|
||||
complete -c gcc -o mtune -d '=cpu_type Set the instruction scheduling parameters for machine type cpu_type, but do not set the architecture type, register usage, or choice of mnemonics, as -mcpu=cpu_type would'
|
||||
complete -c gcc -o mcpu -d '=cpu_type Set architecture type, register usage, choice of mnemonics, and instruction scheduling parameters for type cpu_type'
|
||||
complete -c gcc -o mtune -d '=cpu_type Set the instruction scheduling parameters for cpu_type, but do not set the architecture type, register usage, or choice of mnemonics, as -mcpu=cpu_type'
|
||||
complete -c gcc -o mswdiv -d 'Generate code to compute division as reciprocal estimate and iterative refinement, creating opportunities for increased throughput'
|
||||
complete -c gcc -o mno-swdiv -d 'Generate code to compute division as reciprocal estimate and iterative refinement, creating opportunities for increased throughput'
|
||||
complete -c gcc -o maltivec -d 'Generate code that uses (does not use) AltiVec instructions, and also enable the use of built-in functions that allow more direct access to the AltiVec instruction set'
|
||||
complete -c gcc -o mno-altivec -d 'Generate code that uses (does not use) AltiVec instructions, and also enable the use of built-in functions that allow more direct access to the AltiVec instruction set'
|
||||
complete -c gcc -o mno-swdiv -d 'Do not generate code to compute division as reciprocal estimate and iterative refinement, creating opportunities for increased throughput'
|
||||
complete -c gcc -o maltivec -d 'Generate code that uses AltiVec instructions, and also enable the use of built-in functions that allow more direct access to the AltiVec instruction set'
|
||||
complete -c gcc -o mno-altivec -d 'Generate code that does not use AltiVec instructions, and also enable the use of built-in functions that allow more direct access to the AltiVec instruction set'
|
||||
complete -c gcc -o mvrsave -d 'Generate VRSAVE instructions when generating AltiVec code'
|
||||
complete -c gcc -o mno-vrsave -d 'Generate VRSAVE instructions when generating AltiVec code'
|
||||
complete -c gcc -o msecure-plt -d 'Generate code that allows ld and ld'
|
||||
@@ -1136,9 +1141,8 @@ complete -c gcc -o mno-isel -d 'This switch enables or disables the generation o
|
||||
complete -c gcc -o misel -d '=yes/no This switch has been deprecated'
|
||||
complete -c gcc -o mspe -d 'This switch enables or disables the generation of SPE simd instructions'
|
||||
complete -c gcc -o mno-isel -d 'This switch enables or disables the generation of SPE simd instructions'
|
||||
complete -c gcc -o mspe -d '=yes/no This option has been deprecated'
|
||||
complete -c gcc -o mfloat-gprs -d 'This switch enables or disables the generation of floating point operations on the general purpose registers for architectures that support it'
|
||||
complete -c gcc -o mfloat-gprs -d 'This switch enables or disables the generation of floating point operations on the general purpose registers for architectures that support it'
|
||||
complete -c gcc -o mspe -d '=yes/no Deprecated'
|
||||
complete -c gcc -o mfloat-gprs -d 'This switch enables or disables the generation of floating point operations on the general purpose registers'
|
||||
complete -c gcc -o m32 -d 'Generate code for 32-bit or 64-bit environments of Darwin and SVR4 targets (including GNU/Linux)'
|
||||
complete -c gcc -o m64 -d 'Generate code for 32-bit or 64-bit environments of Darwin and SVR4 targets (including GNU/Linux)'
|
||||
complete -c gcc -o mfull-toc -d 'Modify generation of the TOC (Table Of Contents), which is created for every executable file'
|
||||
@@ -1156,37 +1160,35 @@ complete -c gcc -o msoft-float -d 'Generate code that does not use (uses) the fl
|
||||
complete -c gcc -o mhard-float -d 'Generate code that does not use (uses) the floating-point register set'
|
||||
complete -c gcc -o mmultiple -d 'Generate code that uses (does not use) the load multiple word instructions and the store multiple word instructions'
|
||||
complete -c gcc -o mno-multiple -d 'Generate code that uses (does not use) the load multiple word instructions and the store multiple word instructions'
|
||||
complete -c gcc -o mstring -d 'Generate code that uses (does not use) the load string instructions and the store string word instructions to save multiple registers and do small block moves'
|
||||
complete -c gcc -o mno-string -d 'Generate code that uses (does not use) the load string instructions and the store string word instructions to save multiple registers and do small block moves'
|
||||
complete -c gcc -o mupdate -d 'Generate code that uses (does not use) the load or store instructions that update the base register to the address of the calculated memory location'
|
||||
complete -c gcc -o mno-update -d 'Generate code that uses (does not use) the load or store instructions that update the base register to the address of the calculated memory location'
|
||||
complete -c gcc -o mstring -d 'Generate code that uses the load string and store string word instructions to save registers and do small block moves'
|
||||
complete -c gcc -o mno-string -d 'Generate code that does not use the load string and store string word instructions to save registers and do small block moves'
|
||||
complete -c gcc -o mupdate -d 'Generate code that uses the load or store instructions that update the base register to the address of the calculated memory location'
|
||||
complete -c gcc -o mno-update -d 'Generate code that does not use the load or store instructions that update the base register to the address of the calculated memory location'
|
||||
complete -c gcc -o mfused-madd -d 'Generate code that uses (does not use) the floating point multiply and accumulate instructions'
|
||||
complete -c gcc -o mno-fused-madd -d 'Generate code that uses (does not use) the floating point multiply and accumulate instructions'
|
||||
complete -c gcc -o mno-bit-align -d 'On System V'
|
||||
complete -c gcc -o mbit-align -d 'On System V'
|
||||
complete -c gcc -o mno-strict-align -d 'On System V'
|
||||
complete -c gcc -o mstrict-align -d 'On System V'
|
||||
complete -c gcc -o mrelocatable -d 'On embedded PowerPC systems generate code that allows (does not allow) the program to be relocated to a different address at runtime'
|
||||
complete -c gcc -o mno-relocatable -d 'On embedded PowerPC systems generate code that allows (does not allow) the program to be relocated to a different address at runtime'
|
||||
complete -c gcc -o mrelocatable-lib -d 'On embedded PowerPC systems generate code that allows (does not allow) the program to be relocated to a different address at runtime'
|
||||
complete -c gcc -o mno-relocatable-lib -d 'On embedded PowerPC systems generate code that allows (does not allow) the program to be relocated to a different address at runtime'
|
||||
complete -c gcc -o mno-toc -d 'On System V'
|
||||
complete -c gcc -o mtoc -d 'On System V'
|
||||
complete -c gcc -o mlittle -d 'On System V'
|
||||
complete -c gcc -o mlittle-endian -d 'On System V'
|
||||
complete -c gcc -o mbig -d 'On System V'
|
||||
complete -c gcc -o mbig-endian -d 'On System V'
|
||||
complete -c gcc -o mdynamic-no-pic -d 'On Darwin and Mac OS X systems, compile code so that it is not relocatable, but that its external references are relocatable'
|
||||
complete -c gcc -o mprioritize-restricted-insns -d '=priority This option controls the priority that is assigned to dispatch-slot restricted instructions during the second scheduling pass'
|
||||
complete -c gcc -o msched-costly-dep -d '=dependence_type This option controls which dependences are considered costly by the target during instruction scheduling'
|
||||
complete -c gcc -o minsert-sched-nops -d '=scheme This option controls which nop insertion scheme will be used during the second scheduling pass'
|
||||
complete -c gcc -o mcall-sysv -d 'On System V'
|
||||
complete -c gcc -o mno-bit-align -d 'On System V.4 and embedded PowerPC do not force structures and unions that contain bit-fields to be aligned to the base type of the bit-field.'
|
||||
complete -c gcc -o mbit-align -d 'On System V.4 and embedded PowerPC do force structures and unions that contain bit-fields to be aligned to the base type of the bit-field'
|
||||
complete -c gcc -o mno-strict-align -d 'On System V.4 and embedded PowerPC do not assume that unaligned memory references are handled by the system'
|
||||
complete -c gcc -o mstrict-align -d 'On System V.4 and embedded PowerPC do assume that unaligned memory references are handled by the syste'
|
||||
complete -c gcc -o mrelocatable -d 'On embedded PowerPC generate code that allows the program to be relocated to a different address at runtime'
|
||||
complete -c gcc -o mno-relocatable -d 'On embedded PowerPC generate code that does not allow the program to be relocated to a different address at runtime'
|
||||
complete -c gcc -o mrelocatable-lib -d 'On embedded PowerPC generate code that allows the program to be relocated to a different address at runtime'
|
||||
complete -c gcc -o mno-relocatable-lib -d 'On embedded PowerPC generate code that does not allow the program to be relocated to a different address at runtime'
|
||||
complete -c gcc -o mno-toc -d 'On System V.4 and embedded PowerPC do not assume that register 2 contains a pointer to a global area pointing to the addresses used in the program'
|
||||
complete -c gcc -o mtoc -d 'On System V.4 and embedded PowerPC do assume that register 2 contains a pointer to a global area pointing to the addresses used in the program'
|
||||
complete -c gcc -o mlittle -d 'On System V.4 and embedded PowerPC compile code for the processor in little-endian mode'
|
||||
complete -c gcc -o mlittle-endian -d 'On System V.4 and embedded PowerPC compile code for the processor in little-endian mode'
|
||||
complete -c gcc -o mbig -d 'On System V.4 and embedded PowerPC compile code for the processor in big-endian mode'
|
||||
complete -c gcc -o mbig-endian -d 'On System V.4 and embedded PowerPC compile code for the processor in big-endian mode'
|
||||
complete -c gcc -o mdynamic-no-pic -d 'On Darwin and Mac OS X, compile code so that it is not relocatable, but that its external references are relocatable'
|
||||
complete -c gcc -o mprioritize-restricted-insns -d '=priority Controls the priority that is assigned to dispatch-slot restricted instructions during the second scheduling pass'
|
||||
complete -c gcc -o msched-costly-dep -d '=dependence_type Controls which dependences are considered costly by the target during instruction scheduling'
|
||||
complete -c gcc -o minsert-sched-nops -d '=scheme Controls which nop insertion scheme will be used during the second scheduling pass'
|
||||
complete -c gcc -o mcall-sysv -d 'Specify both -mcall-sysv and -meabi options'
|
||||
complete -c gcc -o mcall-sysv-eabi -d 'Specify both -mcall-sysv and -meabi options'
|
||||
complete -c gcc -o mcall-sysv-noeabi -d 'Specify both -mcall-sysv and -mno-eabi options'
|
||||
complete -c gcc -o mcall-solaris -d 'On System V'
|
||||
complete -c gcc -o mcall-linux -d 'On System V'
|
||||
complete -c gcc -o mcall-gnu -d 'On System V'
|
||||
complete -c gcc -o mcall-netbsd -d 'On System V'
|
||||
complete -c gcc -o mcall-linux -d 'On System V.4 and embedded PowerPC compile code for the Linux-based GNU system'
|
||||
complete -c gcc -o mcall-netbsd -d 'On System V.4 and embedded PowerPC compile code for the NetBSD operating system'
|
||||
complete -c gcc -o maix-struct-return -d 'Return all structures in memory (as specified by the AIX ABI)'
|
||||
complete -c gcc -o msvr4-struct-return -d 'Return structures smaller than 8 bytes in registers (as specified by the SVR4 ABI)'
|
||||
complete -c gcc -o mabi -d 'Extend the current ABI with a particular extension, or remove such extension'
|
||||
@@ -1196,27 +1198,26 @@ complete -c gcc -o mabi -d 'Disable Booke SPE ABI extensions for the current ABI
|
||||
complete -c gcc -o spe -d 'Disable Booke SPE ABI extensions for the current ABI'
|
||||
complete -c gcc -o mabi -d '=ibmlongdouble Change the current ABI to use IBM extended precision long double'
|
||||
complete -c gcc -o mabi -d '=ieeelongdouble Change the current ABI to use IEEE extended precision long double'
|
||||
complete -c gcc -o mprototype -d 'On System V'
|
||||
complete -c gcc -o mno-prototype -d 'On System V'
|
||||
complete -c gcc -o mprototype -d 'On System V.4 and embedded PowerPC assume that all calls to variable argument functions are properly prototyped'
|
||||
complete -c gcc -o mno-prototype -d 'On System V.4 and embedded PowerPC does not assume that all calls to variable argument functions are properly prototyped'
|
||||
complete -c gcc -o msim -d 'On embedded PowerPC systems, assume that the startup module is called sim-crt0'
|
||||
complete -c gcc -o mmvme -d 'On embedded PowerPC systems, assume that the startup module is called crt0'
|
||||
complete -c gcc -o mads -d 'On embedded PowerPC systems, assume that the startup module is called crt0'
|
||||
complete -c gcc -o myellowknife -d 'On embedded PowerPC systems, assume that the startup module is called crt0'
|
||||
complete -c gcc -o mvxworks -d 'On System V'
|
||||
complete -c gcc -o mvxworks -d 'On System V.4 and embedded PowerPC, specify that you are compiling for a VxWorks system'
|
||||
complete -c gcc -o mwindiss -d 'Specify that you are compiling for the WindISS simulation environment'
|
||||
complete -c gcc -o memb -d 'On embedded PowerPC systems, set the PPC_EMB bit in the ELF flags header to indicate that eabi extended relocations are used'
|
||||
complete -c gcc -o meabi -d 'On System V'
|
||||
complete -c gcc -o mno-eabi -d 'On System V'
|
||||
complete -c gcc -o msdata -d '=eabi On System V'
|
||||
complete -c gcc -o msdata -d '=sysv On System V'
|
||||
complete -c gcc -o msdata -d 'On System V'
|
||||
complete -c gcc -o msdata -d 'On System V'
|
||||
complete -c gcc -o msdata-data -d 'On System V'
|
||||
complete -c gcc -o msdata -d 'On embedded PowerPC systems, put all initialized global and static data in the '
|
||||
complete -c gcc -o mno-sdata -d 'On embedded PowerPC systems, put all initialized global and static data in the '
|
||||
complete -c gcc -s G -d 'On embedded PowerPC systems, put global and static items less than or equal to num bytes into the small data or bss sections instead of the normal data or bss section'
|
||||
complete -c gcc -o mregnames -d 'On System V'
|
||||
complete -c gcc -o mno-regnames -d 'On System V'
|
||||
complete -c gcc -o meabi -d 'On System V.4 and embedded PowerPC do adhere to the Embedded Applications Binary Interface (EABI), which is a set of modifications to the System V.4 specs'
|
||||
complete -c gcc -o mno-eabi -d 'On System V.4 and embedded PowerPC do not adhere to the Embedded Applications Binary Interface (EABI), which is a set of modifications to the System V.4 specifications'
|
||||
complete -c gcc -o msdata -d '=eabi On System V.4 and embedded PowerPC, put small initialized const global and static data in the .sdata2, which is pointed to by register r2. Put small initialized non-const global and static data in the .sdata, which is pointed to by register r13. Put small uninitialized global and static data in the .sbss, which is adjacent to the .sdata. This option is incompatible with -mrelocatable and sets -memb'
|
||||
complete -c gcc -o msdata -d '=sysv On System V.4 and embedded PowerPC, put small global and static data in the .sdata, which is pointed to by register r13. Put small uninitialized global and static data in the .sbss, which is adjacent to the .sdata. This option is incompatible with -mrelocatable'
|
||||
complete -c gcc -o msdata -d '=default On System V.4 and embedded PowerPC, if -meabi is used, compile code the same as -msdata=eabi, otherwise same as -msdata=sysv'
|
||||
complete -c gcc -o msdata -d '=data On System V.4 and embedded PowerPC, put small global data in the .sdata section. Put small uninitialized global data in the .sbss section. Do not use register r13 to address small data. Default behavior unless other -msdata options are used'
|
||||
complete -c gcc -o msdata -d 'Enable optimizations that use the small data section. This may be useful for working around optimizer bugs'
|
||||
complete -c gcc -o mno-sdata -d 'Disable optimizations that use the small data section. This may be useful for working around optimizer bugs'
|
||||
complete -c gcc -s G -d 'On embedded PowerPC, put global and static items less than or equal to num bytes into the small data or bss sections instead of the normal'
|
||||
complete -c gcc -o mregnames -d 'On System V.4 and embedded PowerPC do emit register names in the assembly language output using symbolic forms'
|
||||
complete -c gcc -o mno-regnames -d 'On System V.4 and embedded PowerPC do not emit register names in the assembly language output using symbolic forms'
|
||||
complete -c gcc -o mlongcall -d 'Default to making all function calls indirectly, using a register, so that functions which reside further than 32 megabytes (33,554,432 bytes) from the current location can be called'
|
||||
complete -c gcc -o mno-longcall -d 'Default to making all function calls indirectly, using a register, so that functions which reside further than 32 megabytes (33,554,432 bytes) from the current location can be called'
|
||||
complete -c gcc -o pthread -d 'Adds support for multithreading with the pthreads library'
|
||||
@@ -1277,7 +1278,7 @@ complete -c gcc -o mno-renesas -d 'Comply with the calling conventions defined f
|
||||
complete -c gcc -o mnomacsave -d 'Mark the "MAC" register as call-clobbered, even if -mhitachi is given'
|
||||
complete -c gcc -o mieee -d 'Increase IEEE-compliance of floating-point code'
|
||||
complete -c gcc -o misize -d 'Dump instruction size and location in the assembly code'
|
||||
complete -c gcc -o mpadstruct -d 'This option is deprecated'
|
||||
complete -c gcc -o mpadstruct -d 'Deprecated'
|
||||
complete -c gcc -o mspace -d 'Optimize for space instead of speed'
|
||||
complete -c gcc -o mprefergot -d 'When generating position-independent code, emit function calls using the Global Offset Table instead of the Procedure Linkage Table'
|
||||
complete -c gcc -o musermode -d 'Generate a library function call to invalidate instruction cache entries, after fixing up a trampoline'
|
||||
@@ -1289,8 +1290,8 @@ complete -c gcc -o mindexed-addressing -d 'Enable the use of the indexed address
|
||||
complete -c gcc -o mgettrcost -d '=number Set the cost assumed for the gettr instruction to number'
|
||||
complete -c gcc -o mpt-fixed -d 'Assume pt* instructions won’t trap'
|
||||
complete -c gcc -o minvalid-symbols -d 'Assume symbols might be invalid'
|
||||
complete -c gcc -o mno-app-regs -d 'Specify -mapp-regs to generate output using the global registers 2 through 4, which the SPARC SVR4 ABI reserves for applications'
|
||||
complete -c gcc -o mapp-regs -d 'Specify -mapp-regs to generate output using the global registers 2 through 4, which the SPARC SVR4 ABI reserves for applications'
|
||||
complete -c gcc -o mapp-regs -d 'Generate output using the global registers 2 through 4, which the SPARC SVR4 ABI reserves for applications'
|
||||
complete -c gcc -o mno-app-regs -d 'Does not generate output using the global registers 2 through 4, which the SPARC SVR4 ABI reserves for applications'
|
||||
complete -c gcc -o mfpu -d 'Generate output containing floating point instructions'
|
||||
complete -c gcc -o mhard-float -d 'Generate output containing floating point instructions'
|
||||
complete -c gcc -o mno-fpu -d 'Generate output containing library calls for floating point'
|
||||
@@ -1299,11 +1300,11 @@ complete -c gcc -o mhard-quad-float -d 'Generate output containing quad-word (lo
|
||||
complete -c gcc -o msoft-quad-float -d 'Generate output containing library calls for quad-word (long double) floating point instructions'
|
||||
complete -c gcc -o mno-unaligned-doubles -d 'Assume that doubles have 8 byte alignment'
|
||||
complete -c gcc -o munaligned-doubles -d 'Assume that doubles have 8 byte alignment'
|
||||
complete -c gcc -o mno-faster-structs -d 'With -mfaster-structs, the compiler assumes that structures should have 8 byte alignment'
|
||||
complete -c gcc -o mfaster-structs -d 'With -mfaster-structs, the compiler assumes that structures should have 8 byte alignment'
|
||||
complete -c gcc -o mimpure-text -d '-mimpure-text, used in addition to -shared, tells the compiler to not pass -z text to the linker when linking a shared object'
|
||||
complete -c gcc -o mfaster-structs -d 'Assumes that structures should have 8 byte alignment'
|
||||
complete -c gcc -o mno-faster-structs -d 'Does not assume that structures should have 8 byte alignment'
|
||||
complete -c gcc -o mimpure-text -d 'Used in addition to -shared, tells to not pass -z text to the linker when linking a shared object'
|
||||
complete -c gcc -o mcpu -d '=cpu_type Set the instruction set, register set, and instruction scheduling parameters for machine type cpu_type'
|
||||
complete -c gcc -o mtune -d '=cpu_type Set the instruction scheduling parameters for machine type cpu_type, but do not set the instruction set or register set that the option -mcpu=cpu_type would'
|
||||
complete -c gcc -o mtune -d '=cpu_type Set the instruction scheduling parameters for cpu_type, but do not set the instruction set or register set that the option -mcpu=cpu_type would'
|
||||
complete -c gcc -o mv8plus -d 'With -mv8plus, GCC generates code for the SPARC-V8+ ABI'
|
||||
complete -c gcc -o mno-v8plus -d 'With -mv8plus, GCC generates code for the SPARC-V8+ ABI'
|
||||
complete -c gcc -o mvis -d 'With -mvis, GCC generates code that takes advantage of the UltraSPARC Visual Instruction Set extensions'
|
||||
@@ -1323,7 +1324,7 @@ complete -c gcc -o pthread -d 'This is a synonym for -pthreads'
|
||||
complete -c gcc -s G -d 'Create a shared object'
|
||||
complete -c gcc -o Qy -d 'Identify the versions of each tool used by the compiler, in a "'
|
||||
complete -c gcc -o Qn -d 'Refrain from adding "'
|
||||
complete -c gcc -o mcpu -d '=cpu_type Set the instruction set, register set, and instruction scheduling parameters for machine type cpu_type'
|
||||
complete -c gcc -o mcpu -d '=cpu_type Set the instruction set, register set, and instruction scheduling parameters for cpu_type'
|
||||
complete -c gcc -o mbig-memory -d 'Generates code for the big or small memory model'
|
||||
complete -c gcc -o mbig -d 'Generates code for the big or small memory model'
|
||||
complete -c gcc -o msmall-memory -d 'Generates code for the big or small memory model'
|
||||
@@ -1353,8 +1354,8 @@ complete -c gcc -o mparallel-mpy -d 'Allow the generation of MPY││ADD and MP
|
||||
complete -c gcc -o mno-parallel-mpy -d 'Allow the generation of MPY││ADD and MPY││SUB parallel instructions, provided -mparallel-insns is also specified'
|
||||
complete -c gcc -o mlong-calls -d 'Treat all calls as being far away (near)'
|
||||
complete -c gcc -o mno-long-calls -d 'Treat all calls as being far away (near)'
|
||||
complete -c gcc -o mno-ep -d 'Do not optimize (do optimize) basic blocks that use the same index pointer 4 or more times to copy pointer into the "ep" register, and use the shorter "sld" and "sst" instructions'
|
||||
complete -c gcc -o mep -d 'Do not optimize (do optimize) basic blocks that use the same index pointer 4 or more times to copy pointer into the "ep" register, and use the shorter "sld" and "sst" instructions'
|
||||
complete -c gcc -o mep -d 'Optimize basic blocks that use the same index pointer 4 or more times to copy pointer into the "ep" register, and use the shorter "sld" and "sst" instructions'
|
||||
complete -c gcc -o mno-ep -d 'Do not optimize basic blocks that use the same index pointer 4 or more times to copy pointer into the "ep" register, and use the shorter "sld" and "sst" instructions'
|
||||
complete -c gcc -o mno-prolog-function -d 'Do not use (do use) external functions to save and restore registers at the prologue and epilogue of a function'
|
||||
complete -c gcc -o mprolog-function -d 'Do not use (do use) external functions to save and restore registers at the prologue and epilogue of a function'
|
||||
complete -c gcc -o mspace -d 'Try to make the code as small as possible'
|
||||
@@ -1363,12 +1364,12 @@ complete -c gcc -o msda -d '=n Put static or global variables whose size is n by
|
||||
complete -c gcc -o mzda -d '=n Put static or global variables whose size is n bytes or less into the first 32 kilobytes of memory'
|
||||
complete -c gcc -o mv850 -d 'Specify that the target processor is the V850'
|
||||
complete -c gcc -o mbig-switch -d 'Generate code suitable for big switch tables'
|
||||
complete -c gcc -o mapp-regs -d 'This option will cause r2 and r5 to be used in the code generated by the compiler'
|
||||
complete -c gcc -o mno-app-regs -d 'This option will cause r2 and r5 to be treated as fixed registers'
|
||||
complete -c gcc -o mapp-regs -d 'Will cause r2 and r5 to be used in the code generated by the compiler'
|
||||
complete -c gcc -o mno-app-regs -d 'Will cause r2 and r5 to be treated as fixed registers'
|
||||
complete -c gcc -o mv850e1 -d 'Specify that the target processor is the V850E1'
|
||||
complete -c gcc -o mv850e -d 'Specify that the target processor is the V850E'
|
||||
complete -c gcc -o mdisable-callt -d 'This option will suppress generation of the CALLT instruction for the v850e and v850e1 flavors of the v850 architecture'
|
||||
complete -c gcc -o munix -d 'Do not output certain jump instructions ("aobleq" and so on) that the Unix assembler for the VAX cannot handle across long ranges'
|
||||
complete -c gcc -o mdisable-callt -d 'Will suppress generation of the CALLT instruction for the v850e and v850e1 flavors of the v850 architecture'
|
||||
complete -c gcc -o munix -d 'Do not output certain jump instructions (i.e. "aobleq") the Unix assembler for the VAX cannot handle across long ranges'
|
||||
complete -c gcc -o mgnu -d 'Do output those jump instructions, on the assumption that you will assemble with the GNU assembler'
|
||||
complete -c gcc -o mg -d 'Output code for g-format floating point numbers instead of d-format'
|
||||
complete -c gcc -o msim -d 'Choose startup files and linker script suitable for the simulator'
|
||||
@@ -1378,31 +1379,31 @@ complete -c gcc -o mfused-madd -d 'Enable or disable use of fused multiply/add a
|
||||
complete -c gcc -o mno-fused-madd -d 'Enable or disable use of fused multiply/add and multiply/subtract instructions in the floating-point option'
|
||||
complete -c gcc -o mtext-section-literals -d 'Control the treatment of literal pools'
|
||||
complete -c gcc -o mno-text-section-literals -d 'Control the treatment of literal pools'
|
||||
complete -c gcc -o mtarget-align -d 'When this option is enabled, GCC instructs the assembler to automatically align instructions to reduce branch penalties at the expense of some code density'
|
||||
complete -c gcc -o mno-target-align -d 'When this option is enabled, GCC instructs the assembler to automatically align instructions to reduce branch penalties at the expense of some code density'
|
||||
complete -c gcc -o mlongcalls -d 'When this option is enabled, GCC instructs the assembler to translate direct calls to indirect calls unless it can determine that the target of a direct call is in the range allowed by the call instruction'
|
||||
complete -c gcc -o mno-longcalls -d 'When this option is enabled, GCC instructs the assembler to translate direct calls to indirect calls unless it can determine that the target of a direct call is in the range allowed by the call instruction'
|
||||
complete -c gcc -o fbounds-check -d 'For front-ends that support it, generate additional code to check that indices used to access arrays are within the declared range'
|
||||
complete -c gcc -o ftrapv -d 'This option generates traps for signed overflow on addition, subtraction, multiplication operations'
|
||||
complete -c gcc -o fwrapv -d 'This option instructs the compiler to assume that signed arithmetic overflow of addition, subtraction and multiplication wraps around using twos-complement representation'
|
||||
complete -c gcc -o mtarget-align -d 'Instructs the assembler to automatically align instructions to reduce branch penalties at the expense of some code density'
|
||||
complete -c gcc -o mno-target-align -d 'Instructs the assembler to not automatically align instructions to reduce branch penalties at the expense of some code density'
|
||||
complete -c gcc -o mlongcalls -d 'Tell assembler to translate direct calls to indirect calls'
|
||||
complete -c gcc -o mno-longcalls -d 'Tell assembler to not translate direct calls to indirect calls'
|
||||
complete -c gcc -o fbounds-check -d 'Generate additional code to check that indices used to access arrays are within the declared range'
|
||||
complete -c gcc -o ftrapv -d 'Generates traps for signed overflow on addition, subtraction, multiplication operations'
|
||||
complete -c gcc -o fwrapv -d 'Assume that signed arithmetic overflow of addition, subtraction and multiplication wraps around using twos-complement representation'
|
||||
complete -c gcc -o fexceptions -d 'Enable exception handling'
|
||||
complete -c gcc -o fnon-call-exceptions -d 'Generate code that allows trapping instructions to throw exceptions'
|
||||
complete -c gcc -o funwind-tables -d 'Similar to -fexceptions, except that it will just generate any needed static data, but will not affect the generated code in any other way'
|
||||
complete -c gcc -o fasynchronous-unwind-tables -d 'Generate unwind table in dwarf2 format, if supported by target machine'
|
||||
complete -c gcc -o funwind-tables -d 'Similar to -fexceptions, except that it will just generate any needed static data, but will not affect in any other way'
|
||||
complete -c gcc -o fasynchronous-unwind-tables -d 'Generate unwind table in dwarf2 format'
|
||||
complete -c gcc -o fpcc-struct-return -d 'Return "short" "struct" and "union" values in memory like longer ones, rather than in registers'
|
||||
complete -c gcc -o freg-struct-return -d 'Return "struct" and "union" values in registers when possible'
|
||||
complete -c gcc -o fshort-enums -d 'Allocate to an "enum" type only as many bytes as it needs for the declared range of possible values'
|
||||
complete -c gcc -o fshort-double -d 'Use the same size for "double" as for "float"'
|
||||
complete -c gcc -o fshort-wchar -d 'Override the underlying type for wchar_t to be short unsigned int instead of the default for the target'
|
||||
complete -c gcc -o fshared-data -d 'Requests that the data and non-"const" variables of this compilation be shared data rather than private data'
|
||||
complete -c gcc -o fno-common -d 'In C, allocate even uninitialized global variables in the data section of the object file, rather than generating them as common blocks'
|
||||
complete -c gcc -o fno-common -d 'In C, allocate even uninitialized global variables in the data section of the object file, rather than as common blocks'
|
||||
complete -c gcc -o fno-ident -d 'Ignore the #ident directive'
|
||||
complete -c gcc -o finhibit-size-directive -d 'Don’t output a "'
|
||||
complete -c gcc -o fverbose-asm -d 'Put extra commentary information in the generated assembly code to make it more readable'
|
||||
complete -c gcc -o fpic -d 'Generate position-independent code (PIC) suitable for use in a shared library, if supported for the target machine'
|
||||
complete -c gcc -o fPIC -d 'If supported for the target machine, emit position-independent code, suitable for dynamic linking and avoiding any limit on the size of the global offset table'
|
||||
complete -c gcc -o fpie -d 'These options are similar to -fpic and -fPIC, but generated position independent code can be only linked into executables'
|
||||
complete -c gcc -o fPIE -d 'These options are similar to -fpic and -fPIC, but generated position independent code can be only linked into executables'
|
||||
complete -c gcc -o fPIC -d 'Emit position-independent code, suitable for dynamic linking and avoiding any limit on the size of the global offset table'
|
||||
complete -c gcc -o fpie -d 'Similar to -fpic and -fPIC, but generated position independent code can be only linked into executables'
|
||||
complete -c gcc -o fPIE -d 'Similar to -fpic and -fPIC, but generated position independent code can be only linked into executables'
|
||||
complete -c gcc -o fno-jump-tables -d 'Do not use jump tables for switch statements even where it would be more efficient than other code generation strategies'
|
||||
complete -c gcc -o ffixed-reg -d 'Treat the register named reg as a fixed register; generated code should never refer to it (except perhaps as a stack pointer, frame pointer or in some other fixed role)'
|
||||
complete -c gcc -o fcall-used-reg -d 'Treat the register named reg as an allocable register that is clobbered by function calls'
|
||||
@@ -1410,13 +1411,13 @@ complete -c gcc -o fcall-saved-reg -d 'Treat the register named reg as an alloca
|
||||
complete -c gcc -o fpack-struct -d 'Without a value specified, pack all structure members together without holes' -x
|
||||
complete -c gcc -o finstrument-functions -d 'Generate instrumentation calls for entry and exit to functions'
|
||||
complete -c gcc -o fstack-check -d 'Generate code to verify that you do not go beyond the boundary of the stack'
|
||||
complete -c gcc -o fstack-limit-register -d 'Generate code to ensure that the stack does not grow beyond a certain value, either the value of a register or the address of a symbol'
|
||||
complete -c gcc -o fstack-limit-symbol -d 'Generate code to ensure that the stack does not grow beyond a certain value, either the value of a register or the address of a symbol'
|
||||
complete -c gcc -o fno-stack-limit -d 'Generate code to ensure that the stack does not grow beyond a certain value, either the value of a register or the address of a symbol'
|
||||
complete -c gcc -o fstack-limit-register -d 'Generate code to ensure that the stack does not grow beyond the value of a register'
|
||||
complete -c gcc -o fstack-limit-symbol -d 'Generate code to ensure that the stack does not grow beyond the address of a symbol'
|
||||
complete -c gcc -o fno-stack-limit -d 'Does not generate code to ensure that the stack does not grow beyond a certain value, either the value of a register or the address of a symbol'
|
||||
complete -c gcc -o fargument-alias -d 'Specify the possible relationships among parameters and between parameters and global data'
|
||||
complete -c gcc -o fargument-noalias -d 'Specify the possible relationships among parameters and between parameters and global data'
|
||||
complete -c gcc -o fargument-noalias-global -d 'Specify the possible relationships among parameters and between parameters and global data'
|
||||
complete -c gcc -o fleading-underscore -d 'This option and its counterpart, -fno-leading-underscore, forcibly change the way C symbols are represented in the object file'
|
||||
complete -c gcc -o fleading-underscore -d 'This flag and -fno-leading-underscore, forcibly change the way C symbols are represented in the object file'
|
||||
complete -c gcc -o ftls-model -d '=model Alter the thread-local storage model to be used'
|
||||
complete -c gcc -o fvisibility -a 'default internal hidden protected' -d 'Set the default ELF image symbol visibility'
|
||||
complete -c gcc -o fopenmp -d 'Enable handling of OpenMP directives "#pragma omp" in C/C++ and "!$omp" in Fortran'
|
||||
|
||||
29
share/completions/gimp.fish
Normal file
29
share/completions/gimp.fish
Normal file
@@ -0,0 +1,29 @@
|
||||
complete -c gimp -s h -l help -d 'show help'
|
||||
complete -c gimp -l help-all -d 'show help with advanced options'
|
||||
complete -c gimp -l help-gtk -d 'show help with GTK+ options'
|
||||
complete -c gimp -l help-gegl -d 'show help with GEGL options'
|
||||
complete -c gimp -s v -l version -d 'show version'
|
||||
complete -c gimp -l license -d 'show licence'
|
||||
|
||||
complete -c gimp -l verbose -d 'show verbosely'
|
||||
complete -c gimp -s n -l new-instance -d 'open new instance'
|
||||
complete -c gimp -s a -l as-new -d 'open with new images'
|
||||
|
||||
complete -c gimp -s i -l no-interface -d 'hide UI'
|
||||
complete -c gimp -s d -l no-data -d 'do not load patterns, gradients, palettes, and brushes'
|
||||
complete -c gimp -s f -l no-fonts -d 'do not load fonts'
|
||||
complete -c gimp -s s -l no-splash -d 'hide splash screen'
|
||||
complete -c gimp -l no-shm -d 'do not use shared memory'
|
||||
complete -c gimp -l no-cpu-accel -d 'do not use CPU acceleration'
|
||||
|
||||
complete -c gimp -l display -d 'open with X display' -r
|
||||
complete -c gimp -l session -d 'open with alternative sessionrc' -r
|
||||
complete -c gimp -s g -l gimprc -d 'open with alternative gimprc' -r
|
||||
complete -c gimp -l system-gimprc -d 'open with alternative system gimprc' -r
|
||||
complete -c gimp -l dump-gimprc -d 'show gimprc'
|
||||
complete -c gimp -l console-messages -d 'show messages on the console'
|
||||
complete -c gimp -l debug-handlers -d 'enable debug handlers'
|
||||
complete -c gimp -l stack-trace-mode -d 'whether generate stack-trace in case of fatal signals' -a 'never query always' -x
|
||||
complete -c gimp -l pdb-compat-mode -d 'whether PDB provides aliases for deprecated functions' -a 'off on warn' -x
|
||||
complete -c gimp -l batch-interpreter -d 'run procedure to use to process batch events' -r
|
||||
complete -c gimp -s b -l batch -d 'run command non-interactively' -a '-' -r
|
||||
File diff suppressed because it is too large
Load Diff
28
share/completions/gojq.fish
Normal file
28
share/completions/gojq.fish
Normal file
@@ -0,0 +1,28 @@
|
||||
# Pure Go implementation of jq
|
||||
# https://github.com/itchyny/gojq
|
||||
|
||||
complete -c gojq -s c -l compact-output -d "Compact output, no pretty-print"
|
||||
complete -c gojq -s r -l raw-output -d "Output raw strings without quotes"
|
||||
complete -c gojq -s j -l join-output -d "Stop printing a newline after each output"
|
||||
complete -c gojq -s 0 -l nul-output -d "Print NUL after each output"
|
||||
complete -c gojq -s C -l color-output -d "Colorize output even if piped"
|
||||
complete -c gojq -s M -l monochrome-output -d "Stop colorizing output"
|
||||
complete -c gojq -l yaml-output -d "Output as YAML"
|
||||
complete -c gojq -l indent -x -d "Number of spaces for indentation"
|
||||
complete -c gojq -l tab -d "Use tabs for indentation"
|
||||
complete -c gojq -s n -l null-input -d "Use null as input value"
|
||||
complete -c gojq -s R -l raw-input -d "Read input as raw strings"
|
||||
complete -c gojq -s s -l slurp -d "Read all inputs into an array"
|
||||
complete -c gojq -l stream -d "Parse input in stream fashion"
|
||||
complete -c gojq -l yaml-input -d "Read input as YAML"
|
||||
complete -c gojq -s f -l from-file -rF -d "Load query from file"
|
||||
complete -c gojq -s L -xa "(__fish_complete_directories)" -d "Directory to search modules from"
|
||||
complete -c gojq -l arg -x -d "Set variable to string value"
|
||||
complete -c gojq -l argjson -x -d "Set variable to JSON value"
|
||||
complete -c gojq -l slurpfile -x -d "Set variable to the JSON contents of the file"
|
||||
complete -c gojq -l rawfile -x -d "Set variable to the contents of the file"
|
||||
complete -c gojq -l args -d "Consume remaining arguments as positional string values"
|
||||
complete -c gojq -l jsonargs -d "Consume remaining arguments as positional JSON values"
|
||||
complete -c gojq -s e -l exit-status -d "Exit 1 when the last value is false or null"
|
||||
complete -c gojq -s v -l version -d "Print gojq version"
|
||||
complete -c gojq -s h -l help -d "Print help"
|
||||
1
share/completions/gradlew.fish
Normal file
1
share/completions/gradlew.fish
Normal file
@@ -0,0 +1 @@
|
||||
complete -c gradlew -w gradle
|
||||
@@ -1,9 +1,5 @@
|
||||
complete -c gunzip -s c -l stdout -d "Compress to stdout"
|
||||
complete -c gunzip -k -x -a "(
|
||||
__fish_complete_suffix .gz
|
||||
__fish_complete_suffix .tgz
|
||||
)
|
||||
"
|
||||
complete -c gunzip -k -x -a "(__fish_complete_suffix .gz .tgz)"
|
||||
complete -c gunzip -s f -l force -d Overwrite
|
||||
complete -c gunzip -s h -l help -d "Display help and exit"
|
||||
complete -c gunzip -s k -l keep -d "Keep input files"
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
complete -c gv -k -xa "(__fish_complete_suffix .ps)"
|
||||
complete -c gv -k -xa "(__fish_complete_suffix .ps.gz)"
|
||||
complete -c gv -k -xa "(__fish_complete_suffix .eps)"
|
||||
complete -c gv -k -xa "(__fish_complete_suffix .pdf)"
|
||||
complete -c gv -k -xa "(__fish_complete_suffix .ps .ps.gz .eps .pdf)"
|
||||
complete -c gv -l monochrome -d 'Display document using only black and white'
|
||||
complete -c gv -l grayscale -d 'Display document without colors'
|
||||
complete -c gv -l color -d 'Display document as usual'
|
||||
|
||||
1
share/completions/gw.fish
Normal file
1
share/completions/gw.fish
Normal file
@@ -0,0 +1 @@
|
||||
complete -c gw -w gradle
|
||||
@@ -1,10 +1,5 @@
|
||||
complete -c gzip -s c -l stdout -d "Compress to stdout"
|
||||
complete -c gzip -s d -l decompress -k -x -a "
|
||||
(
|
||||
__fish_complete_suffix .gz
|
||||
__fish_complete_suffix .tgz
|
||||
)
|
||||
"
|
||||
complete -c gzip -s d -l decompress -k -x -a "(__fish_complete_suffix .gz .tgz)"
|
||||
|
||||
complete -c gzip -s f -l force -d Overwrite
|
||||
complete -c gzip -s h -l help -d "Display help and exit"
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
|
||||
complete -c highlight -s O -l out-format -d 'Output file in given format' -xa 'xterm256 latex tex rtf html xhtml ansi bbcode svg'
|
||||
complete -c highlight -s t -l tab -d 'Specify tab length' -x
|
||||
complete -c highlight -s i -l input -d 'Name of the input file' -r
|
||||
complete -c highlight -s o -l output -d 'Name of the output file' -r
|
||||
complete -c highlight -s d -l outdir -d 'Output directory' -r
|
||||
complete -c highlight -s S -l syntax -d 'Set type of the source code' -xa "(highlight -p | sed -r 's/^(.*\S)\s+:\s*(\S+).*\$/\2\t\1/; /^\$/d')"
|
||||
complete -c highlight -s s -l style -d 'Highlight style' -xa "(highlight --list-themes | sed '/^\$\| /d')"
|
||||
@@ -11,4 +11,4 @@ complete -c hjson -n __fish_should_complete_switches -a -rt -d "round trip comme
|
||||
complete -c hjson -n __fish_should_complete_switches -a -nocol -d "disable color output"
|
||||
complete -c hjson -n __fish_should_complete_switches -a "-cond=" -d "set condense option [default 60]"
|
||||
|
||||
complete -c hjson -k -xa "(__fish_complete_suffix .hjson; __fish_complete_suffix .json)"
|
||||
complete -c hjson -k -xa "(__fish_complete_suffix .hjson .json)"
|
||||
|
||||
8
share/completions/horcrux.fish
Normal file
8
share/completions/horcrux.fish
Normal file
@@ -0,0 +1,8 @@
|
||||
set -l subcommands 'bind split'
|
||||
set -l subcommand_show_condition "not __fish_seen_subcommand_from $subcommands"
|
||||
set -l split_option_show_condition "__fish_seen_subcommand_from split"
|
||||
|
||||
complete -c horcrux -a bind -n "$subcommand_show_condition" -f -d 'Bind directory'
|
||||
complete -c horcrux -a split -n "$subcommand_show_condition" -f -d 'Split file'
|
||||
complete -c horcrux -s n -r -n "$split_option_show_condition" -d 'Count of horcruxes to make'
|
||||
complete -c horcrux -s t -r -n "$split_option_show_condition" -d 'Count of horcruxes required to resurrect the original file'
|
||||
@@ -1,11 +1,22 @@
|
||||
# htop is an interactive process viewer.
|
||||
# See: http://hisham.hm/htop
|
||||
# See: https://htop.dev
|
||||
|
||||
complete -c htop -l delay -s d -d 'Update interval' -x
|
||||
complete -c htop -l no-color -s C -d 'Start htop in monochrome mode'
|
||||
complete -c htop -l no-colour -d 'Start htop in monochrome mode'
|
||||
complete -c htop -l filter -s F -d 'Filter processes by terms matching the commands' -x
|
||||
complete -c htop -l help -s h -d 'Show help and exit'
|
||||
complete -c htop -l pid -s p -d 'Show only given PIDs' -x -a '(__fish_append , (__fish_complete_pids))'
|
||||
complete -c htop -l user -s u -d 'Monitor given user' -x -a '(__fish_complete_users)'
|
||||
complete -c htop -l sort-key -d 'Sort column' -xa '(htop --sort-key help)'
|
||||
complete -c htop -l version -s v -d 'Show version and exit'
|
||||
complete -c htop -l pid -s p -d 'Show only given PIDs' -xa '(__fish_append , (__fish_complete_pids))'
|
||||
complete -c htop -l sort-key -s s -d 'Sort column' -xa '(htop --sort-key help)'
|
||||
complete -c htop -l user -s u -d 'Monitor given user' -xa '(__fish_complete_users)'
|
||||
complete -c htop -l no-unicode -s U -d 'Do not use unicode but ASCII characters for graph meters'
|
||||
complete -c htop -l no-mouse -s M -d 'Disable support of mouse control'
|
||||
complete -c htop -l readonly -d 'Disable all system and process changing features'
|
||||
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-capabilites -d 'Drop unneeded Linux capabilites (Requires libpcap support)' -xka "
|
||||
off
|
||||
basic
|
||||
strict
|
||||
"
|
||||
|
||||
1
share/completions/ibmcloud.fish
Normal file
1
share/completions/ibmcloud.fish
Normal file
@@ -0,0 +1 @@
|
||||
complete -c ibmcloud -f -a '(__fish_argcomplete_complete (commandline -opc) --generate-bash-completion)'
|
||||
@@ -4,11 +4,12 @@
|
||||
# Also the manpage and even the grammar it accepts is utter shite (options can only be before commands, some things are only in the BNF, others only in the text)
|
||||
# It also quite likes the word "dev", even though it needs it less than the BNF specifies
|
||||
|
||||
set -l ip_commands link address addrlabel route rule neigh ntable tunnel tuntap maddr mroute mrule monitor xfrm netns l2tp tcp_metrics
|
||||
set -l ip_commands link address addrlabel route rule neighbour ntable tunnel tuntap maddr mroute mrule monitor xfrm netns l2tp tcp_metrics
|
||||
set -l ip_addr a ad add addr addre addres address
|
||||
set -l ip_link l li lin link
|
||||
set -l ip_neigh n ne nei neig neigh neighb neighbo neighbor neighbour
|
||||
set -l ip_route r ro rou rout route
|
||||
set -l ip_all_commands $ip_commands $ip_addr $ip_link $ip_route
|
||||
set -l ip_all_commands $ip_commands $ip_addr $ip_link $ip_neigh $ip_route
|
||||
|
||||
function __fish_ip_commandwords
|
||||
set -l skip 0
|
||||
@@ -61,10 +62,10 @@ function __fish_ip_commandwords
|
||||
else
|
||||
echo $word
|
||||
end
|
||||
case n ne nei neig neigh
|
||||
case n ne nei neig neigh neighb neighbo neighbor neighbour
|
||||
if test $have_command = 0
|
||||
set have_command 1
|
||||
echo neigh
|
||||
echo neighbour
|
||||
else
|
||||
echo $word
|
||||
end
|
||||
@@ -239,6 +240,18 @@ function __fish_ip_types
|
||||
xfrm "Virtual xfrm interface"
|
||||
end
|
||||
|
||||
function __fish_ip_neigh_states
|
||||
printf '%s\t%s\n' permanent "entry is valid forever" \
|
||||
noarp "entry is valid without validation" \
|
||||
reachable "entry is valid until timeout" \
|
||||
stale "entry is valid but suspicious" \
|
||||
none "pseudo state" \
|
||||
incomplete "entry has not yet been validated" \
|
||||
delay "entry validation is currently delayed" \
|
||||
probe "neighbor is being probed" \
|
||||
failed "neighbor validation has ultimately failed"
|
||||
end
|
||||
|
||||
function __fish_complete_ip
|
||||
set -l cmd (__fish_ip_commandwords)
|
||||
set -l count (count $cmd)
|
||||
@@ -418,6 +431,66 @@ function __fish_complete_ip
|
||||
case help
|
||||
end
|
||||
end
|
||||
case neighbour
|
||||
if not set -q cmd[3]
|
||||
printf '%s\t%s\n' help "Show help" \
|
||||
add "Add new neighbour entry" \
|
||||
delete "Delete neighbour entry" \
|
||||
change "Change neighbour entry" \
|
||||
replace "Add or change neighbour entry" \
|
||||
show "List neighbour entries" \
|
||||
flush "Flush neighbour entries" \
|
||||
get "Lookup neighbour entry"
|
||||
else
|
||||
switch $cmd[2]
|
||||
case add del delete change replace
|
||||
switch $cmd[-2]
|
||||
case lladdr
|
||||
case nud
|
||||
__fish_ip_neigh_states
|
||||
case proxy
|
||||
case dev
|
||||
__fish_ip_device
|
||||
case '*'
|
||||
echo lladdr
|
||||
echo nud
|
||||
echo proxy
|
||||
echo dev
|
||||
echo router
|
||||
echo use
|
||||
echo managed
|
||||
echo extern_learn
|
||||
end
|
||||
case show flush
|
||||
switch $cmd[-2]
|
||||
case to
|
||||
case dev
|
||||
__fish_ip_device
|
||||
case vrf
|
||||
case nud
|
||||
__fish_ip_neigh_states
|
||||
echo all
|
||||
case '*'
|
||||
echo to
|
||||
echo dev
|
||||
echo vrf
|
||||
echo nomaster
|
||||
echo proxy
|
||||
echo unused
|
||||
echo nud
|
||||
end
|
||||
case get
|
||||
switch $cmd[-2]
|
||||
case to
|
||||
case dev
|
||||
__fish_ip_device
|
||||
case '*'
|
||||
echo proxy
|
||||
echo to
|
||||
echo dev
|
||||
end
|
||||
end
|
||||
end
|
||||
case route
|
||||
if not set -q cmd[3]
|
||||
printf '%s\t%s\n' add "Add new route" \
|
||||
|
||||
176
share/completions/iwctl.fish
Normal file
176
share/completions/iwctl.fish
Normal file
@@ -0,0 +1,176 @@
|
||||
# Execute an `iwctl ... list` command and parse output
|
||||
function __iwctl_filter -w iwctl
|
||||
# set results "iwctl $cmd list | tail -n +5"
|
||||
# if test -n "$empty"
|
||||
# set -a results "| string match --invert '*$empty*'"
|
||||
# end
|
||||
# eval "$results" | awk '{print $2}'
|
||||
# awk does not work on multiline entries, therefor we use string match,
|
||||
# which has the added benefit of filtering out the `No devices in ...` lines
|
||||
|
||||
argparse -i all-columns -- $argv
|
||||
|
||||
# remove color escape sequences
|
||||
set -l results (iwctl $argv | string replace -ra '\e\[[\d;]+m' '')
|
||||
# calculate column widths
|
||||
set -l headers $results[3]
|
||||
# We exploit the fact that all column labels will have >2 space to the left, and inside column labels there is always only one space.
|
||||
set -l leading_ws (string match -r "^ *" -- $headers | string length)
|
||||
set -l column_widths (string match -a -r '(?<= )\S.*?(?: (?=\S)|$)' -- $headers | string length)
|
||||
|
||||
if set -ql _flag_all_columns
|
||||
for line in (string match " *" -- $results[5..] | string sub -s (math $leading_ws + 1))
|
||||
for column_width in $column_widths
|
||||
printf %s\t (string sub -l $column_width -- $line | string trim -r)
|
||||
set line (string sub -s (math $column_width + 1) -- $line)
|
||||
end
|
||||
printf "\n"
|
||||
end
|
||||
else
|
||||
# only take lines starting with ` `, i.e., no `No devices ...`
|
||||
# then take the first column as substring
|
||||
string match " *" $results[5..] | string sub -s (math $leading_ws + 1) -l $column_widths[1] | string trim -r
|
||||
end
|
||||
# string match -rg " .{$(math $header_spaces[1] - 2)}(.{$(math $first_column_label + $header_spaces[2])})" $results[5..] | string trim
|
||||
end
|
||||
|
||||
function __iwctl_match_subcoms
|
||||
set -l match (string split --no-empty " " -- $argv)
|
||||
|
||||
set argv (commandline -poc)
|
||||
# iwctl allows to specify arguments for username, password, passphrase and dont-ask regardless of any following commands
|
||||
argparse -i 'u/username=' 'p/password=' 'P/passphrase=' 'v/dont-ask' -- $argv
|
||||
set argv $argv[2..]
|
||||
|
||||
if test (count $argv) != (count $match)
|
||||
return 1
|
||||
end
|
||||
|
||||
while set -q argv[1]
|
||||
string match -q -- $match[1] $argv[1]
|
||||
or return 1
|
||||
set -e match[1] argv[1]
|
||||
end
|
||||
end
|
||||
|
||||
function __iwctl_connect
|
||||
set argv (commandline -poc)
|
||||
# remove all options
|
||||
argparse -i 'u/username=' 'p/password=' 'P/passphrase=' 'v/dont-ask' -- $argv
|
||||
# station name should now be the third argument (`iwctl station <wlan>`)
|
||||
for network in (__iwctl_filter station $argv[3] get-networks rssi-dbms --all-columns)
|
||||
set network (string split \t -- $network)
|
||||
set -l strength "$network[3]"
|
||||
# This follows iwctls display of * to ****
|
||||
# https://git.kernel.org/pub/scm/network/wireless/iwd.git/tree/client/station.c?id=4a0a97379008489daa108c9bc0a4204c1ae9c6a8#n380
|
||||
if test $strength -ge -6000
|
||||
set strength 4
|
||||
else if test $strength -ge -6700
|
||||
set strength 3
|
||||
else if test $strength -ge -7500
|
||||
set strength 2
|
||||
else
|
||||
set strength 1
|
||||
end
|
||||
|
||||
printf "%s\t[%s] - %s\n" "$network[1]" (string repeat -n $strength '*' | string pad -rw 4 -c -) "$network[2]"
|
||||
end
|
||||
end
|
||||
|
||||
# The `empty` messages in case we want to go back to using those
|
||||
# set ad_hoc '(__iwctl_filter ad-hoc "No devices in Ad-Hoc mode available.")'
|
||||
# set adpater '(__iwctl_filter adapter)'
|
||||
# set ap '(__iwctl_filter ap "No devices in access point mode available.")'
|
||||
# set device '(__iwctl_filter device)'
|
||||
# set dpp '(__iwctl_filter dpp "No DPP-capable devices available")'
|
||||
# set known_networks '(__iwctl_filter known-networks)'
|
||||
# set station '(__iwctl_filter station "No devices in Station mode available.")'
|
||||
# set wsc '(__iwctl_filter wsc "No WSC-capable devices available")'
|
||||
|
||||
complete -f iwctl
|
||||
|
||||
# Options
|
||||
complete -c iwctl -s h -l help
|
||||
complete -c iwctl -s p -l password -rf
|
||||
complete -c iwctl -s u -l username -rf
|
||||
complete -c iwctl -s P -l passphrase -rf
|
||||
complete -c iwctl -s v -l dont-ask -d "Don't ask for missing credentials"
|
||||
|
||||
# Subcommand
|
||||
complete -c iwctl -n '__iwctl_match_subcoms' \
|
||||
-a "ad-hoc adapter ap debug device dpp exit help known-networks quit station version wsc"
|
||||
|
||||
# ad-hoc
|
||||
complete -c iwctl -n '__iwctl_match_subcoms ad-hoc' -a list -d "List devices in Ad-Hoc mode"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms ad-hoc' -a "(__iwctl_filter ad-hoc list)"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "ad-hoc *"' -n 'not __iwctl_match_subcoms ad-hoc list' -a start -d "Start or join an Ad-Hoc network"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "ad-hoc *"' -n 'not __iwctl_match_subcoms ad-hoc list' -a start_open -d "Start of join an open Ad-Hoc network"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "ad-hoc *"' -n 'not __iwctl_match_subcoms ad-hoc list' -a stop -d "Leave an Ad-Hoc network"
|
||||
|
||||
# adapter
|
||||
complete -c iwctl -n '__iwctl_match_subcoms adapter' -a "list" -d "List adapters"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms adapter' -a "(__iwctl_filter adapter list)"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "adapter *"' -n 'not __iwctl_match_subcoms adapter list' -a "show" -d "Show adapter info"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "adapter *"' -n 'not __iwctl_match_subcoms adapter list' -a "set-property" -d "Set property"
|
||||
# TODO implement completions for `properties`, i.e. all rows with `*` in first column
|
||||
|
||||
# ap
|
||||
complete -c iwctl -n '__iwctl_match_subcoms ap' -a "list" -d "List devices in AP mode"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms ap' -a "(__iwctl_filter ap list)"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "ap *"' -n 'not __iwctl_match_subcoms ap list' -a start -d "Start an access point"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "ap *"' -n 'not __iwctl_match_subcoms ap list' -a start-profile -d "Start an access point based on a disk profile"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "ap *"' -n 'not __iwctl_match_subcoms ap list' -a stop -d "Stop a started access point"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "ap *"' -n 'not __iwctl_match_subcoms ap list' -a show -d "Show AP info"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "ap *"' -n 'not __iwctl_match_subcoms ap list' -a get-networks -d "Get network list after scanning"
|
||||
|
||||
# debug
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "debug *"' -a connect -d "Connect to a specific BSS"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "debug *"' -a roam -d "Roam to a BSS"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "debug *"' -a get-networks -d "Get networks"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "debug *"' -a autoconnect -d "Set autoconnect property"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "debug * autoconnect"' -a "on off" -d "Set autoconnect property"
|
||||
|
||||
# device
|
||||
complete -c iwctl -n '__iwctl_match_subcoms device' -a "list" -d "List devices"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms device' -a "(__iwctl_filter device list)"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "device *"' -n 'not __iwctl_match_subcoms device list' -a "show" -d "Show device info"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "device *"' -n 'not __iwctl_match_subcoms device list' -a "set-property" -d "Set property"
|
||||
# TODO implement completions for `properties`, i.e. all rows with `*` in first column
|
||||
|
||||
# dpp
|
||||
complete -c iwctl -n '__iwctl_match_subcoms dpp' -a "list" -d "List DPP-capable devices"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms dpp' -a "(__iwctl_filter dpp list)"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "dpp *"' -n 'not __iwctl_match_subcoms dpp list' -a start-enrollee -d "Starts a DPP Enrollee"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "dpp *"' -n 'not __iwctl_match_subcoms dpp list' -a start-configurator -d "Starts a DPP Configurator"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "dpp *"' -n 'not __iwctl_match_subcoms dpp list' -a stop -d "Aborts a DPP operations"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "dpp *"' -n 'not __iwctl_match_subcoms dpp list' -a show -d "Show the DPP state"
|
||||
|
||||
# known-networks
|
||||
# TODO Does not support SSIDs ending/starting on whitespace. Not sure how to fix.
|
||||
complete -c iwctl -n '__iwctl_match_subcoms known-networks' -a "list" -d "List known networks"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms known-networks' -a "(__iwctl_filter known-networks list)"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "known-networks *"' -n 'not __iwctl_match_subcoms known-networks list' -a forget -d "Forget a known network"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "known-networks *"' -n 'not __iwctl_match_subcoms known-networks list' -a show -d "Show nown network"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "known-networks *"' -n 'not __iwctl_match_subcoms known-networks list' -a set-property -d "Set property"
|
||||
|
||||
# station
|
||||
complete -c iwctl -n '__iwctl_match_subcoms station' -a "list" -d "List devices in Station mode"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms station' -a "(__iwctl_filter station list)"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station *"' -n 'not __iwctl_match_subcoms station list' -a connect -d "Connect to network"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station * connect"' -a "(__iwctl_connect)" -d "Connect to network" --keep-order
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station *"' -n 'not __iwctl_match_subcoms station list' -a connect-hidden -d "Connect to hidden network"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station *"' -n 'not __iwctl_match_subcoms station list' -a disconnect -d "Disconnect"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station *"' -n 'not __iwctl_match_subcoms station list' -a get-networks -d "Get networks"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station * get-networks"' -a "rssi-dbms rssi-bars"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station *"' -n 'not __iwctl_match_subcoms station list' -a get-hidden-access-points -d "Get hidden APs"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station * get-hidden-access-points"' -a "rssi-dbms"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station *"' -n 'not __iwctl_match_subcoms station list' -a scan -d "Scan for networks"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "station *"' -n 'not __iwctl_match_subcoms station list' -a show -d "Show station info"
|
||||
|
||||
# wsc
|
||||
complete -c iwctl -n '__iwctl_match_subcoms wsc' -a "list" -d "List WSC-capable devices"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms wsc' -a "(__iwctl_filter wsc list)"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "wsc *"' -n 'not __iwctl_match_subcoms wsc list' -a push-button -d "PushButton Mode"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "wsc *"' -n 'not __iwctl_match_subcoms wsc list' -a start-user-pin -d "PIN mode"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "wsc *"' -n 'not __iwctl_match_subcoms wsc list' -a start-pin -d "PIN mode with generated PIN"
|
||||
complete -c iwctl -n '__iwctl_match_subcoms "wsc *"' -n 'not __iwctl_match_subcoms wsc list' -a cancel -d "Aborts WSC operations"
|
||||
45
share/completions/java_home.fish
Normal file
45
share/completions/java_home.fish
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
function __fish_complete_macos_java_version
|
||||
set -l json (/usr/libexec/java_home -X|plutil -convert json -o - -)
|
||||
osascript -l JavaScript -s o -e "JSON.parse('$json').forEach(e => console.log(`\${e.JVMVersion}\t\${e.JVMArch} \${e.JVMName} by--exec \${e.JVMVendor}`))"
|
||||
end
|
||||
|
||||
function __fish_complete_macos_java_home_exec
|
||||
# seperate the buffer into two parts
|
||||
# where the first used to get the JAVA_HOME
|
||||
# and the second is the subcommand to complete
|
||||
set -l cmds (string replace -a -r ' *java_home *' '' (commandline) )
|
||||
set -l cmds (string replace -r ' *--exec *' \n -- "$cmds")
|
||||
|
||||
# parse the java_home argv to get $JAVA_HOME/bin
|
||||
argparse v/version= a/arch= -- "$cmds[1]"
|
||||
set -l get_java_home /usr/libexec/java_home
|
||||
if test -n "$_flag_v"
|
||||
set get_java_home "$get_java_home -v $_flag_v"
|
||||
end
|
||||
if test -n "$_flag_a"
|
||||
set get_java_home "$get_java_home -a $_flag_a"
|
||||
end
|
||||
set -l java_bin_dir (eval $get_java_home)"/bin"
|
||||
|
||||
# if such $binary in $JAVA_HOME/bin
|
||||
# complete the subcommand
|
||||
# else
|
||||
# complete using $binary as prefix
|
||||
set -l binary (string match -r '^.*?(?= )' $cmds[2])
|
||||
if test -f "$java_bin_dir/$binary"
|
||||
complete -C $cmds[2]
|
||||
else
|
||||
command ls $java_bin_dir | string match -r ^"$binary.*"
|
||||
end
|
||||
end
|
||||
|
||||
complete -ec java_home
|
||||
complete -xc java_home -n "__fish_not_contain_opt -s h exec " -l exec
|
||||
complete -xc java_home -n "__fish_contains_opt exec " -a "(__fish_complete_macos_java_home_exec)"
|
||||
complete -xc java_home -n "__fish_not_contain_opt -s h exec " -s v -l version -a '(__fish_complete_macos_java_version)' -d 'Filter versions (as if JAVA_VERSION had been set in the environment).'
|
||||
complete -xc java_home -n "__fish_not_contain_opt -s h exec " -s a -l arch -a "arm64 x86_64" -d 'Filter architecture (as if JAVA_ARCH had been set in the environment).'
|
||||
complete -xc java_home -n "__fish_not_contain_opt -s h exec " -s h -l help -d 'Usage information.'
|
||||
complete -fc java_home -n "__fish_not_contain_opt -s h exec " -s F -l failfast -d 'Fail when filters return no JVMs, do not continue with default.'
|
||||
complete -fc java_home -n "__fish_not_contain_opt -s h exec " -s X -l xml -d 'Print full JVM list and additional data as XML plist.'
|
||||
complete -fc java_home -n "__fish_not_contain_opt -s h exec " -s V -l verbose -d 'Print full JVM list with architectures.'
|
||||
@@ -1,27 +1,29 @@
|
||||
# jq is a lightweight and flexible command-line JSON processor.
|
||||
# See: https://stedolan.github.io/jq
|
||||
|
||||
complete -c jq -l version -d 'Output version and exit'
|
||||
complete -c jq -l seq -d 'Use application/json-seq MIME type scheme'
|
||||
complete -c jq -l version -d 'Output jq version'
|
||||
complete -c jq -l seq -d 'Use application/json-seq MIME type'
|
||||
complete -c jq -l stream -d 'Parse input in streaming fasion'
|
||||
complete -c jq -l slurp -s s -d 'Run filter just once in large array'
|
||||
complete -c jq -l raw-input -s R -d 'Don\'t parse as JSON but as string'
|
||||
complete -c jq -l slurp -s s -d 'Read input to array and filter once'
|
||||
complete -c jq -l raw-input -s R -d 'Parse input as string (not JSON)'
|
||||
complete -c jq -l null-input -s n -d 'Ignore input and treat it as null'
|
||||
complete -c jq -l compact-output -s c -d 'Don\'t pretty-print JSON'
|
||||
complete -c jq -l tab -d 'Use a tab for indentation instead of 2 spaces'
|
||||
complete -c jq -l indent -x -d 'Use given number of spaces for indentation'
|
||||
complete -c jq -l tab -d 'Indent w/ tabs instead of spaces'
|
||||
complete -c jq -l indent -x -d 'Num of spaces per indent'
|
||||
complete -c jq -l color-output -s C -d 'Color output'
|
||||
complete -c jq -l monochrome-output -s M -d 'Don\'t color output'
|
||||
complete -c jq -l ascii-output -s a -d 'Replace UTF-8 characters with escape sequences'
|
||||
complete -c jq -l unbuffered -d 'Flush output after each JSON object is printed'
|
||||
complete -c jq -l ascii-output -s a -d 'Replace UTF-8 chars w/ escape sequences'
|
||||
complete -c jq -l unbuffered -d 'Flush output after each JSON object'
|
||||
complete -c jq -l sort-keys -s S -d 'Sort object keys in output'
|
||||
complete -c jq -l raw-output -s r -d 'If output is string output its content directly to stdout'
|
||||
complete -c jq -l raw-output -s r -d 'Write string output w/out quotes'
|
||||
complete -c jq -l join-output -s j -d 'Raw output without newlines'
|
||||
complete -c jq -l from-file -s f -r -d 'Read filter from file'
|
||||
complete -c jq -s L -d 'Prepend given directory to search modules'
|
||||
complete -c jq -l exit-status -s e -x -d 'Set exit status'
|
||||
complete -c jq -s L -d 'Prepend dir to module search list'
|
||||
complete -c jq -l exit-status -s e -d 'Set exit status from output'
|
||||
complete -c jq -l arg -x -d 'Set variable'
|
||||
complete -c jq -l argjson -x -d 'Set JSON-encoded variable'
|
||||
complete -c jq -l slurpfile -r -d 'Read JSON in file and bind to given variable'
|
||||
complete -c jq -l argfile -r -d 'Read JSON in file and bind to given variable [see man]'
|
||||
complete -c jq -l run-tests -r -d 'Run tests in given file'
|
||||
complete -c jq -l slurpfile -x -d 'Read JSON in file and bind to given variable'
|
||||
complete -c jq -l argfile -x -d 'Read JSON in file and bind to given variable [see man]'
|
||||
complete -c jq -l args -d 'Remaining args are positional string args'
|
||||
complete -c jq -l jsonargs -d 'Remaining args are positional JSON text args'
|
||||
complete -c jq -l run-tests -d 'Run tests in given file'
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
function __ksi_completions
|
||||
set --local ct (commandline --current-token)
|
||||
set --local tokens (commandline --tokenize --cut-at-cursor --current-process)
|
||||
printf "%s\n" $tokens $ct | command kitty +complete fish2
|
||||
end
|
||||
|
||||
complete -f -c kitty -a "(__ksi_completions)"
|
||||
@@ -1,6 +1,6 @@
|
||||
# Completions for the FreeBSD `kldload` kernel module load utility
|
||||
function __fish_list_kldload_options
|
||||
set -l klds (__fish_complete_suffix /boot/kernel/(commandline -ct) ".ko" | string replace -r '.*/(.+)\\.ko' '$1')
|
||||
set -l klds (__fish_complete_suffix --complete=/boot/kernel/(commandline -ct) ".ko" | string replace -r '.*/(.+)\\.ko' '$1')
|
||||
# Completing available klds is fast, but completing it with a call to __fish_whatis
|
||||
# is decidedly not. With 846 modules (FreeBSD 11.1), fish --profile 'complete -C"kldload "' returns the following:
|
||||
# 10671 11892698 > complete -C"kldload "
|
||||
|
||||
43
share/completions/krita.fish
Normal file
43
share/completions/krita.fish
Normal file
@@ -0,0 +1,43 @@
|
||||
function __krita_complete_image_format
|
||||
set -l previous_token (commandline -oc)[-1]
|
||||
set -l current_token (commandline -t)
|
||||
|
||||
if test "$previous_token" = --new-image
|
||||
switch $current_token
|
||||
case '*,*,*'
|
||||
# nothing is completed as arbitrary width and height are expected
|
||||
case '*,'
|
||||
printf '%s,\n' U8 U16 F16 F32 |
|
||||
string replace -r '^' $current_token
|
||||
case '*'
|
||||
printf '%s,\n' RGBA XYZA LABA CMYKA GRAY YCbCrA
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function __krita_list_workspaces
|
||||
path basename ~/.local/share/krita/workspaces/*.kws |
|
||||
path change-extension ''
|
||||
end
|
||||
|
||||
complete -c krita -s h -l help -d 'show help'
|
||||
complete -c krita -l help-all -d 'show help with Qt options'
|
||||
complete -c krita -s v -l version -d 'show version'
|
||||
|
||||
complete -c krita -l export -d 'export file as image'
|
||||
complete -c krita -l export-pdf -d 'export file as PDF'
|
||||
complete -c krita -l export-sequence -d 'export animation as sequence'
|
||||
|
||||
complete -c krita -l export-filename -d 'exported filename' -n '__fish_seen_subcommand_from --export --export-pdf --export-sequence' -r
|
||||
|
||||
complete -c krita -l template -d 'open template' -r
|
||||
|
||||
complete -c krita -l nosplash -d 'hide splash screen'
|
||||
complete -c krita -l canvasonly -d 'open with canvasonly mode'
|
||||
complete -c krita -l fullscreen -d 'open with fullscreen mode'
|
||||
complete -c krita -l workspace -d 'open with workspace' -a '(__krita_list_workspaces)' -x
|
||||
complete -c krita -l file-layer -d 'open with file-layer' -r
|
||||
complete -c krita -l resource-location -d 'open with resource' -r
|
||||
|
||||
complete -c krita -l new-image -d 'open with new image'
|
||||
complete -c krita -a '(__krita_complete_image_format)' -x
|
||||
@@ -1,4 +1,4 @@
|
||||
complete -c latexmk -k -x -a "(__fish_complete_suffix (commandline -ct) .tex '(La)TeX file')"
|
||||
complete -c latexmk -k -x -a "(__fish_complete_suffix --description='(La)TeX file' .tex)"
|
||||
complete -c latexmk -o bibtex -d 'use bibtex when needed (default)'
|
||||
complete -c latexmk -o bibtex- -d 'never use bibtex'
|
||||
complete -c latexmk -o bibtex-cond -d 'use bibtex when needed, but only if the bib files exist'
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
#loginctl (systemd 248)
|
||||
#loginctl (systemd 254)
|
||||
|
||||
#variables
|
||||
set -l seen __fish_seen_subcommand_from
|
||||
set -l commands activate attach disable-linger enable-linger flush-devices kill-session kill-user list-seats list-sessions list-users lock-session lock-sessions seat-status session-status show-seat show-session show-user terminate-seat terminate-session terminate-user unlock-session unlock-sessions user-status
|
||||
set -l output cat export json json-pretty json-seq json-sse short short-full short-iso short-iso-precise short-monotonic short-precise short-unix verbose with-unit
|
||||
|
||||
complete -c loginctl -f
|
||||
|
||||
#commands
|
||||
complete -c loginctl -x -n "not $seen $commands" -a "$commands"
|
||||
|
||||
@@ -25,3 +27,23 @@ complete -c loginctl -x -n "not $seen $commands" -s P -d "Equivalent to --value
|
||||
complete -c loginctl -x -n "not $seen $commands" -l signal -s s -d "Which signal to send"
|
||||
complete -c loginctl -f -n "not $seen $commands" -l value -d "When showing properties, only print the value"
|
||||
complete -c loginctl -f -n "not $seen $commands" -l version -d "Show package version"
|
||||
|
||||
|
||||
function __fish_loginctl_list_sessions
|
||||
loginctl list-sessions --no-legend --no-pager --output=short | string replace -r '^\s*(\d+)\s+\d+\s+(\S+)\s+(\S+\s+)?(\S+\d+).*' '$1\t$2 at $4'
|
||||
end
|
||||
|
||||
|
||||
function __fish_loginctl_list_users
|
||||
loginctl list-users --no-legend --no-pager --output=short | string replace -r '(\d+) (\S+) .*' '$1\t$2'
|
||||
end
|
||||
|
||||
|
||||
function __fish_loginctl_list_seats
|
||||
loginctl list-seats --no-legend --no-pager --output=short
|
||||
end
|
||||
|
||||
|
||||
complete -c loginctl -n "$seen session-status show-session activate lock-session unlock-session terminate-session kill-session" -a '(__fish_loginctl_list_sessions)'
|
||||
complete -c loginctl -n "$seen user-status show-user enable-linger disable-linger terminate-user kill-user" -a '(__fish_loginctl_list_users)'
|
||||
complete -c loginctl -n "$seen seat-status show-seat attach terminate-seat" -a '(__fish_loginctl_list_seats)'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
__fish_complete_lpr lp
|
||||
complete -c lpr -k -xa "(__fish_complete_suffix .pdf)"
|
||||
complete -c lpr -k -xa "(__fish_complete_suffix .ps)"
|
||||
complete -c lpr -k -xa "(__fish_complete_suffix .pdf .ps)"
|
||||
complete -c lp -s d -d 'Prints files to the named printer' -xa '(__fish_print_lpr_printers)'
|
||||
complete -c lp -s i -d 'Specifies an existing job to modify' -x
|
||||
complete -c lp -s n -d 'Sets the number of copies to print from 1 to 100' -x
|
||||
|
||||
@@ -8,7 +8,7 @@ complete -c lpadmin -s v -d 'Sets the device-uri attribute of the printer queue'
|
||||
complete -c lpadmin -s D -d 'Provides a textual description of the destination' -x
|
||||
complete -c lpadmin -s E -d 'Enables the destination and accepts jobs'
|
||||
complete -c lpadmin -s L -d 'Provides a textual location of the destination' -x
|
||||
complete -c lpadmin -s P -d 'Specify a PDD file to use with the printer' -k -xa "(__fish_complete_suffix .ppd; __fish_complete_suffix .ppd.gz)"
|
||||
complete -c lpadmin -s P -d 'Specify a PDD file to use with the printer' -k -xa "(__fish_complete_suffix .ppd .ppd.gz)"
|
||||
complete -c lpadmin -s o -xa cupsIPPSupplies=true -d 'Specify if IPP supply level values should be reported'
|
||||
complete -c lpadmin -s o -xa cupsIPPSupplies=false -d 'Specify if IPP supply level values should be reported'
|
||||
complete -c lpadmin -s o -xa cupsSNMPSupplies=true -d 'Specify if SNMP supply level values should be reported'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
__fish_complete_lpr lpr
|
||||
complete -c lpr -k -xa "(__fish_complete_suffix .pdf)"
|
||||
complete -c lpr -k -xa "(__fish_complete_suffix .ps)"
|
||||
complete -c lpr -k -xa "(__fish_complete_suffix .pdf .ps)"
|
||||
complete -c lpr -s H -x -d 'Specifies an alternate server' -xa '(__fish_print_hostnames)'
|
||||
complete -c lpr -s C -s J -s T -x -d 'Sets the job name'
|
||||
#complete -c lpr -o '\\#' -d 'Sets the number of copies to print from 1 to 100' -xa
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
function __fish_print_lsblk_columns --description 'Print available lsblk columns'
|
||||
LC_ALL=C lsblk --help | sed '1,/Available .*columns:/d; /^$/,$d; s/^\s\+//; s/\s/\t/'
|
||||
LC_ALL=C lsblk --help | sed '1,/Available .*columns:/d; /^$/,$d; s/^[[:space:]]\+//; s/[[:space:]]/\t/'
|
||||
end
|
||||
|
||||
complete -c lsblk -s a -l all -d "print all devices"
|
||||
|
||||
@@ -12,9 +12,13 @@ function __fish_print_make_targets --argument-names directory file
|
||||
if make --version 2>/dev/null | string match -q 'GNU*'
|
||||
# https://stackoverflow.com/a/26339924
|
||||
make $makeflags -pRrq : 2>/dev/null |
|
||||
awk -F: '/^# Files/,/^# Finished Make data base/ {
|
||||
awk -F: -v 'bs_regex=\\\\\\\\' '/^# Files/,/^# Finished Make data base/ {
|
||||
if ($1 == "# Not a target") skip = 1;
|
||||
if ($1 !~ "^[#.\t]") { if (!skip) print $1; skip=0 }
|
||||
if ($1 !~ "^[#.\t]" && !is_continuation ) {
|
||||
if (!skip) print $1;
|
||||
skip = 0
|
||||
}
|
||||
is_continuation = $0 ~ "^([^#]*[^#" bs_regex "])?(" bs_regex bs_regex ")*" bs_regex "$";
|
||||
}' 2>/dev/null
|
||||
else
|
||||
# BSD make
|
||||
|
||||
8
share/completions/md-to-clip.fish
Normal file
8
share/completions/md-to-clip.fish
Normal file
@@ -0,0 +1,8 @@
|
||||
# Source: https://github.com/command-line-interface-pages/v2-tooling/tree/main/md-to-clip
|
||||
complete -c md-to-clip -s h -l help -d 'Display help'
|
||||
complete -c md-to-clip -s v -l version -d 'Display version'
|
||||
complete -c md-to-clip -s a -l author -d 'Display author'
|
||||
complete -c md-to-clip -s e -l email -d 'Display author email'
|
||||
complete -c md-to-clip -o nfs -l no-file-save -d 'Whether to display conversion result in stdout instead of writing it to a file'
|
||||
complete -c md-to-clip -o od -l output-directory -d 'Directory where conversion result will be written'
|
||||
complete -c md-to-clip -o spc -l special-placeholder-config -d 'Config with special placeholders'
|
||||
@@ -1,52 +1,315 @@
|
||||
# Completions for the meson build system (http://mesonbuild.com/)
|
||||
|
||||
set -l basic_arguments \
|
||||
"h,help,show help message and exit" \
|
||||
",stdsplit,Split stdout and stderr in test logs" \
|
||||
",errorlogs,Print logs from failing test(s)" \
|
||||
",werror,Treat warnings as errors" \
|
||||
",strip,Strip targets on install" \
|
||||
"v,version,Show version number and exit"
|
||||
function __fish_meson_needs_command
|
||||
set -l cmd (commandline -opc)
|
||||
set -e cmd[1]
|
||||
argparse -s 'v/version' -- $cmd 2>/dev/null
|
||||
or return 0
|
||||
not set -q argv[1]
|
||||
end
|
||||
|
||||
set -l dir_arguments \
|
||||
",localedir,Locale data directory [share/locale]" \
|
||||
",sbindir,System executable directory [sbin]" \
|
||||
",infodir,Info page directory [share/info]" \
|
||||
",prefix,Installation prefix [/usr/local]" \
|
||||
",mandir,Manual page directory [share/man]" \
|
||||
",datadir,Data file directory [share]" \
|
||||
",bindir,Executable directory [bin]" \
|
||||
",sharedstatedir,Arch-agnostic data directory [com]" \
|
||||
",libdir,Library directory [system default]" \
|
||||
",localstatedir,Localstate data directory [var]" \
|
||||
",libexecdir,Library executable directory [libexec]" \
|
||||
",includedir,Header file directory [include]" \
|
||||
",sysconfdir,Sysconf data directory [etc]"
|
||||
function __fish_meson_using_command
|
||||
set -l cmd (commandline -opc)
|
||||
set -e cmd[1]
|
||||
test (count $cmd) -eq 0
|
||||
and return 1
|
||||
contains -- $cmd[1] $argv
|
||||
and return 0
|
||||
end
|
||||
|
||||
for arg in $basic_arguments
|
||||
set -l parts (string split , -- $arg)
|
||||
if not string match -q "" -- $parts[1]
|
||||
complete -c meson -s "$parts[1]" -l "$parts[2]" -d "$parts[3]"
|
||||
function __fish_meson_builddir
|
||||
# Consider the value of -C option to detect the build directory
|
||||
set -l cmd (commandline -opc)
|
||||
argparse -i 'C=' -- $cmd
|
||||
if set -q _flag_C
|
||||
echo $_flag_C
|
||||
else
|
||||
complete -c meson -l "$parts[2]" -d "$parts[3]"
|
||||
echo .
|
||||
end
|
||||
end
|
||||
|
||||
for arg in $dir_arguments
|
||||
set -l parts (string split , -- $arg)
|
||||
complete -c meson -l "$parts[2]" -d "$parts[3]" -xa '(__fish_complete_directories)'
|
||||
function __fish_meson_targets
|
||||
set -l python (__fish_anypython); or return
|
||||
meson introspect --targets (__fish_meson_builddir) | $python -S -c 'import json, sys
|
||||
data = json.load(sys.stdin)
|
||||
targets = set()
|
||||
for target in data:
|
||||
targets.add(target["name"])
|
||||
for name in targets:
|
||||
print(name)' 2>/dev/null
|
||||
end
|
||||
|
||||
complete -c meson -s D -d "Set value of an option (-D foo=bar)"
|
||||
function __fish_meson_subprojects
|
||||
set -l python (__fish_anypython); or return
|
||||
meson introspect --projectinfo (__fish_meson_builddir) | $python -S -c 'import json, sys
|
||||
data = json.load(sys.stdin)
|
||||
for subproject in data["subprojects"]:
|
||||
print(subproject["name"])' 2>/dev/null
|
||||
end
|
||||
|
||||
complete -c meson -l buildtype -xa 'plain debug debugoptimized release minsize' -d "Set build type [debug]"
|
||||
complete -c meson -l layout -xa 'mirror flat' -d "Build directory layout [mirror]"
|
||||
complete -c meson -l backend -xa 'ninja vs vs2010 vs2015 vs2017 xcode' -d "Compilation backend [ninja]"
|
||||
complete -c meson -l default-library -xa 'shared static both' -d "Default library type [shared]"
|
||||
complete -c meson -l warning-level -xa '1 2 3' -d "Warning level [1]"
|
||||
complete -c meson -l unity -xa 'on off subprojects' -d "Unity build [off]"
|
||||
complete -c meson -l cross-file -r -d "File describing cross-compilation environment"
|
||||
complete -c meson -l wrap-mode -xa 'WrapMode.{default,nofallback,nodownload,forcefallback}' -d "Special wrap mode to use"
|
||||
function __fish_meson_tests
|
||||
# --list option shows suites in a short form, e.g. if a test "gvariant"
|
||||
# is present both in "glib:glib" and "glib:slow" suites, it will be shown
|
||||
# in a list as "glib:glib+slow / gvariant". So, just filter out the first
|
||||
# part and list all of the test names.
|
||||
meson test -C (__fish_meson_builddir) --no-rebuild --list | string split -r -f1 ' / '
|
||||
end
|
||||
|
||||
# final parameter
|
||||
complete -c meson -n "__fish_is_nth_token 1" -xa '(__fish_complete_directories)'
|
||||
function __fish_meson_test_suites
|
||||
set -l python (__fish_anypython); or return
|
||||
meson introspect --tests (__fish_meson_builddir) | $python -S -c 'import json, sys
|
||||
data = json.load(sys.stdin)
|
||||
suites = set()
|
||||
for test in data:
|
||||
suites.update(test["suite"])
|
||||
for name in suites:
|
||||
print(name)' 2>/dev/null
|
||||
end
|
||||
|
||||
function __fish_meson_help_commands
|
||||
meson help --help | string match -g -r '^ *{(.*)}' | string split ,
|
||||
end
|
||||
|
||||
# Each meson command and subcommand has -h/--help option
|
||||
complete -c meson -s h -l help -d 'Show help'
|
||||
|
||||
# In order to prevent directory completions from being mixed in with subcommand completions,
|
||||
# we need to use -kxa instead of -xa and make sure we do the directory completions first.
|
||||
# In order for subcommands to be sorted alphabetically, we need to make sure that we compose
|
||||
# them in the reverse alphabetical order and use -kxa there as well.
|
||||
|
||||
# This is to support the implicit setup/configure mode, deprecated upstream but not yet removed.
|
||||
complete -c meson -n '__fish_meson_needs_command' -kxa '(__fish_complete_directories)'
|
||||
|
||||
### wrap
|
||||
set -l wrap_cmds list search install update info status promote update-db
|
||||
complete -c meson -n __fish_meson_needs_command -kxa wrap -d 'Manage WrapDB dependencies'
|
||||
complete -c meson -n "__fish_meson_using_command wrap; and not __fish_seen_subcommand_from $wrap_cmds" -xa '
|
||||
list\t"Show all available projects"
|
||||
search\t"Search the db by name"
|
||||
install\t"Install the specified project"
|
||||
update\t"Update wrap files from WrapDB"
|
||||
info\t"Show available versions of a project"
|
||||
status\t"Show installed and available versions of your projects"
|
||||
promote\t"Bring a subsubproject up to the master project"
|
||||
update-db\t"Update list of projects available in WrapDB"
|
||||
'
|
||||
complete -c meson -n "__fish_meson_using_command wrap; and __fish_seen_subcommand_from $wrap_cmds" -l allow-insecure -d 'Allow insecure server connections'
|
||||
complete -c meson -n '__fish_meson_using_command wrap; and __fish_seen_subcommand_from update' -l force -d 'Update wraps that does not seems to come from WrapDB'
|
||||
complete -c meson -n '__fish_meson_using_command wrap; and __fish_seen_subcommand_from update' -l sourcedir -xa '(__fish_complete_directories)' -d 'Source directory'
|
||||
complete -c meson -n '__fish_meson_using_command wrap; and __fish_seen_subcommand_from update' -l types -x -d 'Comma-separated list of subproject types'
|
||||
complete -c meson -n '__fish_meson_using_command wrap; and __fish_seen_subcommand_from update' -l num-processes -x -d 'How many parallel processes to use'
|
||||
complete -c meson -n '__fish_meson_using_command wrap; and __fish_seen_subcommand_from update' -l allow-insecure -x -d 'Allow insecure server connections'
|
||||
complete -c meson -n '__fish_meson_using_command wrap; and __fish_seen_subcommand_from promote' -xa '(__fish_complete_directories)' -d 'Project path'
|
||||
|
||||
### test
|
||||
complete -c meson -n __fish_meson_needs_command -kxa test -d 'Run tests for the project'
|
||||
# TODO: meson allows to pass just "testname" to run all tests with that name,
|
||||
# or "subprojname:testname" to run "testname" from "subprojname",
|
||||
# or "subprojname:" to run all tests defined by "subprojname",
|
||||
# but completion is only handled for the "testname".
|
||||
complete -c meson -n '__fish_meson_using_command test' -xa '(__fish_meson_tests)'
|
||||
complete -c meson -n '__fish_meson_using_command test' -s h -l help -d 'Show help'
|
||||
complete -c meson -n '__fish_meson_using_command test' -s C -xa '(__fish_complete_directories)' -d 'Directory to cd into before running'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l maxfail -x -d 'Number of failing tests before aborting the test run'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l repeat -x -d 'Number of times to run the tests'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l no-rebuild -d 'Do not rebuild before running tests'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l gdb -d 'Run test under gdb'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l gdb-path -r -d 'Run test under gdb'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l list -d 'List available tests'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l wrapper -r -d 'Wrapper to run tests with (e.g. valgrind)'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l suite -xa '(__fish_meson_test_suites)' -d 'Only run tests belonging to the given suite'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l no-suite -xa '(__fish_meson_test_suites)' -d 'Do not run tests belonging to the given suite'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l no-stdsplit -d 'Do not split stderr and stdout in test logs'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l print-errorlogs -d 'Print logs of failing tests'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l benchmark -d 'Run benchmarks instead of tests'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l logbase -x -d 'Base name for log file'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l num-processes -x -d 'How many parallel processes to use'
|
||||
complete -c meson -n '__fish_meson_using_command test' -s v -l verbose -d 'Do not redirect stdout and stderr'
|
||||
complete -c meson -n '__fish_meson_using_command test' -s q -l quiet -d 'Produce less output to the terminal'
|
||||
complete -c meson -n '__fish_meson_using_command test' -s t -l timeout-multiplier -x -d 'Multiplier for test timeout'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l setup -x -d 'Which test setup to use'
|
||||
complete -c meson -n '__fish_meson_using_command test' -l test-args -x -d 'Arguments to pass to the test(s)'
|
||||
|
||||
### subprojects
|
||||
set -l subprojects_cmds update checkout download foreach purge packagefiles
|
||||
complete -c meson -n __fish_meson_needs_command -kxa subprojects -d 'Manage subprojects'
|
||||
complete -c meson -n "__fish_meson_using_command subprojects; and not __fish_seen_subcommand_from $subprojects_cmds" -xa '
|
||||
update\t"Update all subprojects"
|
||||
checkout\t"Checkout a branch (git only)"
|
||||
download\t"Ensure subprojects are fetched"
|
||||
foreach\t"Execute a command in each subproject"
|
||||
purge\t"Remove all wrap-based subproject artifacts"
|
||||
packagefiles\t"Manage the packagefiles overlay"
|
||||
'
|
||||
complete -c meson -n "__fish_meson_using_command subprojects; and __fish_seen_subcommand_from $subprojects_cmds" -l sourcedir -xa '(__fish_complete_directories)' -d 'Path to source directory'
|
||||
complete -c meson -n "__fish_meson_using_command subprojects; and __fish_seen_subcommand_from $subprojects_cmds" -l types -xa 'file git hg svn' -d 'Comma-separated list of subproject types'
|
||||
complete -c meson -n "__fish_meson_using_command subprojects; and __fish_seen_subcommand_from $subprojects_cmds" -l num-processes -x -d 'How many parallel processes to use'
|
||||
complete -c meson -n "__fish_meson_using_command subprojects; and __fish_seen_subcommand_from $subprojects_cmds" -l allow-insecure -x -d 'Allow insecure server connections'
|
||||
complete -c meson -n '__fish_meson_using_command subprojects; and __fish_seen_subcommand_from update' -l reset -d 'Checkout wrap\'s revision and hard reset to that commit'
|
||||
complete -c meson -n '__fish_meson_using_command subprojects; and __fish_seen_subcommand_from checkout' -s b -d 'Create a new branch'
|
||||
complete -c meson -n '__fish_meson_using_command subprojects; and __fish_seen_subcommand_from purge' -l include-cache -d 'Remove the package cache as well'
|
||||
complete -c meson -n '__fish_meson_using_command subprojects; and __fish_seen_subcommand_from purge' -l confirm -d 'Confirm the removal of subproject artifacts'
|
||||
complete -c meson -n '__fish_meson_using_command subprojects; and __fish_seen_subcommand_from packagefiles' -l apply -d 'Apply packagefiles to the subproject'
|
||||
complete -c meson -n '__fish_meson_using_command subprojects; and __fish_seen_subcommand_from packagefiles' -l save -d 'Save packagefiles from the subproject'
|
||||
|
||||
### setup
|
||||
complete -c meson -n __fish_meson_needs_command -kxa setup -d 'Configure a build directory'
|
||||
# All of the setup options are also exposed to the global scope
|
||||
# Use -k here for one of the cases to make sure directories come after any other top-level completions
|
||||
complete -c meson -n '__fish_meson_using_command setup' -xa '(__fish_complete_directories)'
|
||||
# A lot of options are shared for "setup" and "configure" commands
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l prefix -xa '(__fish_complete_directories)' -d 'Installation prefix'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l bindir -xa '(__fish_complete_directories)' -d 'Executable directory'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l datadir -xa '(__fish_complete_directories)' -d 'Data file directory'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l includedir -xa '(__fish_complete_directories)' -d 'Header file directory'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l infodir -xa '(__fish_complete_directories)' -d 'Info page directory'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l libdir -xa '(__fish_complete_directories)' -d 'Library directory'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l licensedir -xa '(__fish_complete_directories)' -d 'Licenses directory'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l libexecdir -xa '(__fish_complete_directories)' -d 'Library executable directory'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l localedir -xa '(__fish_complete_directories)' -d 'Locale data directory'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l localstatedir -xa '(__fish_complete_directories)' -d 'Localstate data directory'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l mandir -xa '(__fish_complete_directories)' -d 'Manual page directory'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l sbindir -xa '(__fish_complete_directories)' -d 'System executable directory'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l sharedstatedir -xa '(__fish_complete_directories)' -d 'Architecture-independent data directory'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l sysconfdir -xa '(__fish_complete_directories)' -d 'Sysconf data directory'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l auto-features -xa 'enabled disabled auto' -d 'Override value of all "auto" features'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l backend -xa 'ninja vs vs2010 vs2012 vs2013 vs2015 vs2017 vs2019 vs2022 xcode' -d 'Backend to use'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l buildtype -xa 'plain debug debugoptimized release minsize custom' -d 'Build type to use'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l debug -d 'Enable debug symbols and other info'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l default-library -xa 'shared static both' -d 'Default library type'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l errorlogs -d 'Print the logs from failing tests'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l install-umask -x -d 'Default umask to apply on permissions of installed files'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l layout -xa 'mirror flat' -d 'Build directory layout'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l optimization -xa 'plain 0 g 1 2 3 s' -d 'Optimization level'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l prefer-static -d 'Try static linking before shared linking'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l stdsplit -d 'Split stdout and stderr in test logs'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l strip -d 'Strip targets on install'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l unity -xa 'on off subprojects' -d 'Unity build'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l unity-size -x -d 'Unity block size'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l warnlevel -xa '0 1 2 3 everything' -d 'Compiler warning level to use'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l werror -d 'Treat warnings as errors'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l wrap-mode -xa 'default nofallback nodownload forcefallback nopromote' -d 'Wrap mode'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l force-fallback-for -x -d 'Force fallback for those subprojects'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l pkgconfig.relocatable -d 'Generate pkgconfig files as relocatable'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l python.install-env -xa 'auto prefix system venv' -d 'Which python environment to install to'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l python.platlibdir -x -d 'Directory for site-specific, platform-specific files'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l python.purelibdir -x -d 'Directory for site-specific, non-platform-specific files'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l pkg-config-path -x -d 'Additional paths for pkg-config (for host machine)'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l build.pkg-config-path -x -d 'Additional paths for pkg-config (for build machine)'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l cmake-prefix-path -x -d 'Additional prefixes for cmake (for host machine)'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -l build.cmake-prefix-path -x -d 'Additional prefixes for cmake (for build machine)'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup configure' -s D -x -d 'Set the value of an option'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup' -l native-file -r -d 'File with overrides for native compilation environment'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup' -l cross-file -r -d 'File describing cross compilation environment'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup' -l vsenv -d 'Force setup of Visual Studio environment'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup' -s v -l version -d 'Show version number and exit'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup' -l fatal-meson-warnings -d 'Make all Meson warnings fatal'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup' -l reconfigure -d 'Set options and reconfigure the project'
|
||||
complete -c meson -n '__fish_meson_needs_command || __fish_meson_using_command setup' -l wipe -d 'Wipe build directory and reconfigure'
|
||||
|
||||
### rewrite
|
||||
set -l rewrite_cmds target kwargs default-options command
|
||||
complete -c meson -n __fish_meson_needs_command -kxa rewrite -d 'Modify the project'
|
||||
complete -c meson -n "__fish_meson_using_command rewrite; and not __fish_seen_subcommand_from $rewrite_cmds" -s s -l sourcedir -xa '(__fish_complete_directories)' -d 'Path to source directory'
|
||||
complete -c meson -n "__fish_meson_using_command rewrite; and not __fish_seen_subcommand_from $rewrite_cmds" -s V -l verbose -d 'Enable verbose output'
|
||||
complete -c meson -n "__fish_meson_using_command rewrite; and not __fish_seen_subcommand_from $rewrite_cmds" -s S -l skip-errors -d 'Skip errors instead of aborting'
|
||||
complete -c meson -n "__fish_meson_using_command rewrite; and not __fish_seen_subcommand_from $rewrite_cmds" -xa '
|
||||
target\t"Modify a target"
|
||||
kwargs\t"Modify keyword arguments"
|
||||
default-options\t"Modify the project default options"
|
||||
command\t"Execute a JSON array of commands"
|
||||
'
|
||||
# TODO: "meson rewrite target" completions are incomplete and hard to implement properly
|
||||
complete -c meson -n '__fish_meson_using_command rewrite; and __fish_seen_subcommand_from target' -s s -l subdir -xa '(__fish_complete_directories)' -d 'Subdirectory of the new target'
|
||||
complete -c meson -n '__fish_meson_using_command rewrite; and __fish_seen_subcommand_from target' -l type -d 'Type of the target to add' \
|
||||
-xa 'both_libraries executable jar library shared_library shared_module static_library'
|
||||
complete -c meson -n '__fish_meson_using_command rewrite; and __fish_seen_subcommand_from kwargs; and __fish_is_nth_token 3' -xa 'set delete add remove remove_regex info' -d 'Action to execute'
|
||||
complete -c meson -n '__fish_meson_using_command rewrite; and __fish_seen_subcommand_from kwargs; and __fish_is_nth_token 4' -xa 'dependency target project' -d 'Function type to modify'
|
||||
complete -c meson -n '__fish_meson_using_command rewrite; and __fish_seen_subcommand_from default-options; and __fish_is_nth_token 3' -xa 'set delete' -d 'Action to execute'
|
||||
|
||||
### introspect
|
||||
complete -c meson -n __fish_meson_needs_command -kxa introspect -d 'Display info about a project'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -xa '(__fish_complete_directories)'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -l ast -d 'Dump the AST of the meson file'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -l benchmarks -d 'List all benchmarks'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -l buildoptions -d 'List all build options'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -l buildsystem-files -d 'List files that make up the build system'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -l dependencies -d 'List external dependencies'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -l scan-dependencies -d 'Scan for dependencies used in the meson.build file'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -l installed -d 'List all installed files and directories'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -l install-plan -d 'List all installed files and directories with their details'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -l projectinfo -d 'Information about projects'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -l targets -d 'List top level targets'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -l tests -d 'List all unit tests'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -l backend -xa 'ninja vs vs2010 vs2012 vs2013 vs2015 vs2017 vs2019 vs2022 xcode' -d 'The backend to use for the --buildoptions introspection'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -s a -l all -d 'Print all available information'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -s i -l indent -d 'Enable pretty printed JSON'
|
||||
complete -c meson -n '__fish_meson_using_command introspect' -s f -l force-object-output -d 'Always use the new JSON format for multiple entries'
|
||||
|
||||
### install
|
||||
complete -c meson -n __fish_meson_needs_command -kxa install -d 'Install the project'
|
||||
complete -c meson -n '__fish_meson_using_command install' -f
|
||||
complete -c meson -n '__fish_meson_using_command install' -s C -xa '(__fish_complete_directories)' -d 'Directory to cd into before running'
|
||||
complete -c meson -n '__fish_meson_using_command install' -l no-rebuild -d 'Do not rebuild before installing'
|
||||
complete -c meson -n '__fish_meson_using_command install' -l only-changed -d 'Only overwrite files that are older than the copied file'
|
||||
complete -c meson -n '__fish_meson_using_command install' -l quiet -d 'Do not print every file that was installed'
|
||||
complete -c meson -n '__fish_meson_using_command install' -l destdir -r -d 'Sets or overrides DESTDIR environment'
|
||||
complete -c meson -n '__fish_meson_using_command install' -s n -l dry-run -d 'Do not actually install, but print logs'
|
||||
complete -c meson -n '__fish_meson_using_command install' -l skip-subprojects -xa '(__fish_meson_subprojects)' -d 'Do not install files from given subprojects'
|
||||
complete -c meson -n '__fish_meson_using_command install' -l tags -x -d 'Install only targets having one of the given tags'
|
||||
complete -c meson -n '__fish_meson_using_command install' -l strip -d 'Strip targets even if strip option was not set during configure'
|
||||
|
||||
### init
|
||||
complete -c meson -n __fish_meson_needs_command -kxa init -d 'Create a project from template'
|
||||
complete -c meson -n '__fish_meson_using_command init' -s C -xa '(__fish_complete_directories)' -d 'Directory to cd into before running'
|
||||
complete -c meson -n '__fish_meson_using_command init' -s n -l name -x -d 'Project name'
|
||||
complete -c meson -n '__fish_meson_using_command init' -s e -l executable -x -d 'Executable name'
|
||||
complete -c meson -n '__fish_meson_using_command init' -s d -l deps -x -d 'Dependencies, comma-separated'
|
||||
complete -c meson -n '__fish_meson_using_command init' -s l -l language -xa 'c cpp cs cuda d fortran java objc objcpp rust vala' -d 'Project language'
|
||||
complete -c meson -n '__fish_meson_using_command init' -s b -l build -d 'Build after generation'
|
||||
complete -c meson -n '__fish_meson_using_command init' -l builddir -r -d 'Directory for build'
|
||||
complete -c meson -n '__fish_meson_using_command init' -s f -l force -d 'Force overwrite of existing files and directories'
|
||||
complete -c meson -n '__fish_meson_using_command init' -l type -xa 'executable library' -d 'Project type'
|
||||
complete -c meson -n '__fish_meson_using_command init' -l version -x -d 'Project version'
|
||||
|
||||
### help
|
||||
complete -c meson -n __fish_meson_needs_command -kxa help -d 'Show help for a command'
|
||||
complete -c meson -n '__fish_meson_using_command help' -xa "(__fish_meson_help_commands)"
|
||||
|
||||
### dist
|
||||
complete -c meson -n __fish_meson_needs_command -kxa dist -d 'Generate a release archive'
|
||||
complete -c meson -n '__fish_meson_using_command dist' -f
|
||||
complete -c meson -n '__fish_meson_using_command dist' -s C -xa '(__fish_complete_directories)' -d 'Directory to cd into before running'
|
||||
complete -c meson -n '__fish_meson_using_command dist' -l allow-dirty -d 'Allow even when repository contains uncommitted changes'
|
||||
complete -c meson -n '__fish_meson_using_command dist' -l formats -xa 'xztar gztar zip' -d 'Comma separated list of archive types to create'
|
||||
complete -c meson -n '__fish_meson_using_command dist' -l include-subprojects -d 'Include source code of subprojects'
|
||||
complete -c meson -n '__fish_meson_using_command dist' -l no-tests -d 'Do not build and test generated packages'
|
||||
|
||||
### devenv
|
||||
complete -c meson -n __fish_meson_needs_command -kxa devenv -d 'Run a command from the build directory'
|
||||
complete -c meson -n '__fish_meson_using_command devenv' -s h -l help -d 'Show help'
|
||||
complete -c meson -n '__fish_meson_using_command devenv' -s C -xa '(__fish_complete_directories)' -d 'Path to build directory'
|
||||
complete -c meson -n '__fish_meson_using_command devenv' -s w -l workdir -xa '(__fish_complete_directories)' -d 'Directory to cd into before running'
|
||||
complete -c meson -n '__fish_meson_using_command devenv' -l dump -d 'Only print required environment'
|
||||
complete -c meson -n '__fish_meson_using_command devenv' -l dump-format -xa 'sh export vscode' -d 'Format used with --dump'
|
||||
|
||||
### configure
|
||||
complete -c meson -n __fish_meson_needs_command -kxa configure -d 'Change project options'
|
||||
complete -c meson -n '__fish_meson_using_command configure' -xa '(__fish_complete_directories)'
|
||||
complete -c meson -n '__fish_meson_using_command configure' -l clearcache -d 'Clear cached state'
|
||||
complete -c meson -n '__fish_meson_using_command configure' -l no-pager -d 'Do not redirect output to a pager'
|
||||
|
||||
### compile
|
||||
complete -c meson -n __fish_meson_needs_command -kxa compile -d 'Build the configured project'
|
||||
complete -c meson -n '__fish_meson_using_command compile' -xa '(__fish_meson_targets)'
|
||||
complete -c meson -n '__fish_meson_using_command compile' -l clean -d 'Clean the build directory'
|
||||
complete -c meson -n '__fish_meson_using_command compile' -s C -r -d 'Directory to cd into before running'
|
||||
complete -c meson -n '__fish_meson_using_command compile' -s j -l jobs -x -d 'The number of worker jobs to run'
|
||||
complete -c meson -n '__fish_meson_using_command compile' -s l -l load-average -x -d 'The system load average to try to maintain'
|
||||
complete -c meson -n '__fish_meson_using_command compile' -s v -l verbose -d 'Show more verbose output'
|
||||
complete -c meson -n '__fish_meson_using_command compile' -l ninja-args -x -d 'Arguments to pass to `ninja`'
|
||||
complete -c meson -n '__fish_meson_using_command compile' -l vs-args -x -d 'Arguments to pass to `msbuild`'
|
||||
complete -c meson -n '__fish_meson_using_command compile' -l xcode-args -x -d 'Arguments to pass to `xcodebuild`'
|
||||
|
||||
# tag: k_reverse_order
|
||||
|
||||
@@ -26,7 +26,8 @@ complete -c mix -n __fish_mix_needs_command -a archive.install -d "Installs an a
|
||||
complete -c mix -n __fish_mix_needs_command -a archive.uninstall -d "Uninstalls archives"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a clean -d "Deletes generated application files"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a cmd -d "Executes the given command"
|
||||
complete -c mix -n __fish_mix_needs_command -a compile -d "Compiles source files"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a compile -d "Compiles source files"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a compile.phoenix -d "Compiles Phoenix source files that support code reloading"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a deps -d "Lists dependencies and their status"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a deps.clean -d "Deletes the given dependencies' files"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a deps.compile -d "Compiles dependencies"
|
||||
@@ -41,53 +42,159 @@ complete -f -c mix -n __fish_mix_needs_command -a local -d "Lists local tasks"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a local.hex -d "Installs Hex locally"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a local.public_keys -d "Manages public keys"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a local.rebar -d "Installs rebar locally"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a local.phx -d "Updates the Phoenix project generator locally"
|
||||
complete -c mix -n __fish_mix_needs_command -a new -d "Creates a new Elixir project"
|
||||
complete -c mix -n __fish_mix_needs_command -a profile.fprof -d "Profiles the given file or expression with fprof"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx -d "Prints Phoenix tasks and their information."
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.digest -d "Digests and compresses static files"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.digest.clean -d "Removes old versions of static assets."
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.gen -d "Lists all available Phoenix generators"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.gen.auth -d "Generates authentication logic for a resource"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.gen.cert -d "Generates a self-signed certificate for HTTPS testing"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.gen.channel -d "Generates a Phoenix channel"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.gen.context -d "Generates a context with functions around an Ecto schema"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.gen.embedded -d "Generates an embedded Ecto schema file"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.gen.html -d "Generates context and controller for an HTML resource"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.gen.json -d "Generates context and controller for a JSON resource"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.gen.live -d "Generates LiveView, templates, and context for a resource"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.gen.notifier -d "Generates a notifier that delivers emails by default"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.gen.presence -d "Generates a Presence tracker"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.gen.release -d "Generates release files and optional Dockerfile for release-based deployments"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.gen.schema -d "Generates an Ecto schema and migration file"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.gen.secret -d "Generates a secret"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.gen.socket -d "Generates a Phoenix socket handler"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.new -d "Creates a new Phoenix application"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.new.ecto -d "Creates a new Ecto project within an umbrella project"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.new.web -d "Creates a new Phoenix web project within an umbrella project"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.routes -d "Prints all routes"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a phx.server -d "Starts applications and their servers"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a run -d "Runs the given file or expression"
|
||||
complete -f -c mix -n __fish_mix_needs_command -a test -d "Runs a project's tests"
|
||||
|
||||
# archive.build subcommand
|
||||
complete -c mix -n '__fish_mix_using_command archive.build' -s i -d "specify input directory"
|
||||
complete -f -c mix -n '__fish_mix_using_command archive.build' -s o -d "specify output file name"
|
||||
complete -f -c mix -n '__fish_mix_using_command archive.build' -l no-compile -d "skip compilation"
|
||||
complete -c mix -n '__fish_mix_using_command archive.build' -s i -d "Specify input directory"
|
||||
complete -f -c mix -n '__fish_mix_using_command archive.build' -s o -d "Specify output file name"
|
||||
complete -f -c mix -n '__fish_mix_using_command archive.build' -l no-compile -d "Skip compilation"
|
||||
|
||||
# clean subcommand
|
||||
complete -f -c mix -n '__fish_mix_using_command clean' -l all -d "Clean everything, including dependencies"
|
||||
|
||||
# escript.build subcommand
|
||||
complete -f -c mix -n '__fish_mix_using_command escript.build' -l force -d "forces compilation regardless of modification times"
|
||||
complete -f -c mix -n '__fish_mix_using_command escript.build' -l no-compile -d "skips compilation to .beam files"
|
||||
complete -f -c mix -n '__fish_mix_using_command escript.build' -l force -d "Forces compilation regardless of modification times"
|
||||
complete -f -c mix -n '__fish_mix_using_command escript.build' -l no-compile -d "Skips compilation to .beam files"
|
||||
|
||||
# new subcommand
|
||||
complete -f -c mix -n '__fish_mix_using_command new' -l sup -d "generate an OTP application skeleton with a supervision tree"
|
||||
complete -f -c mix -n '__fish_mix_using_command new' -l umbrella -d "can be given to generate an umbrella project"
|
||||
complete -f -c mix -n '__fish_mix_using_command new' -l app -d "can be given in order to name the OTP application"
|
||||
complete -f -c mix -n '__fish_mix_using_command new' -l module -d "can be given in order to name the modules in the generated code skeleton"
|
||||
complete -f -c mix -n '__fish_mix_using_command new' -l sup -d "Generate an OTP application skeleton with a supervision tree"
|
||||
complete -f -c mix -n '__fish_mix_using_command new' -l umbrella -d "Can be given to generate an umbrella project"
|
||||
complete -f -c mix -n '__fish_mix_using_command new' -l app -d "Can be given in order to name the OTP application"
|
||||
complete -f -c mix -n '__fish_mix_using_command new' -l module -d "Can be given in order to name the modules in the generated code skeleton"
|
||||
|
||||
# run subcommand
|
||||
complete -c mix -n '__fish_mix_using_command run' -l config -s c -d "loads the given configuration file"
|
||||
complete -c mix -n '__fish_mix_using_command run' -l eval -s e -d "evaluates the given code"
|
||||
complete -c mix -n '__fish_mix_using_command run' -l require -s r -d "requires pattern before running the command"
|
||||
complete -c mix -n '__fish_mix_using_command run' -l parallel-require -s pr -d "requires pattern in parallel"
|
||||
complete -c mix -n '__fish_mix_using_command run' -l no-compile -d "does not compile even if files require compilation"
|
||||
complete -c mix -n '__fish_mix_using_command run' -l no-deps-check -d "does not check dependencies"
|
||||
complete -c mix -n '__fish_mix_using_command run' -l no-halt -d "does not halt the system after running the command"
|
||||
complete -c mix -n '__fish_mix_using_command run' -l no-start -d "does not start applications after compilation"
|
||||
complete -c mix -n '__fish_mix_using_command run' -l config -s c -d "Loads the given configuration file"
|
||||
complete -c mix -n '__fish_mix_using_command run' -l eval -s e -d "Evaluates the given code"
|
||||
complete -c mix -n '__fish_mix_using_command run' -l require -s r -d "Requires pattern before running the command"
|
||||
complete -c mix -n '__fish_mix_using_command run' -l parallel-require -s pr -d "Requires pattern in parallel"
|
||||
complete -c mix -n '__fish_mix_using_command run' -l no-compile -d "Does not compile even if files require compilation"
|
||||
complete -c mix -n '__fish_mix_using_command run' -l no-deps-check -d "Does not check dependencies"
|
||||
complete -c mix -n '__fish_mix_using_command run' -l no-halt -d "Does not halt the system after running the command"
|
||||
complete -c mix -n '__fish_mix_using_command run' -l no-start -d "Does not start applications after compilation"
|
||||
|
||||
# test subcommand
|
||||
complete -c mix -n '__fish_mix_using_command test' -l trace -d "run tests with detailed reporting; automatically sets `--max-cases` to 1"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l max-cases -d "set the maximum number of cases running async"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l cover -d "the directory to include coverage results"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l force -d "forces compilation regardless of modification times"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l no-compile -d "do not compile, even if files require compilation"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l no-start -d "do not start applications after compilation"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l no-color -d "disable color in the output"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l color -d "enable color in the output"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l include -d "include tests that match the filter"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l exclude -d "exclude tests that match the filter"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l only -d "run only tests that match the filter"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l seed -d "seeds the random number generator used to randomize test order"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l timeout -d "set the timeout for the tests"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l trace -d "Run tests with detailed reporting; automatically sets `--max-cases` to 1"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l max-cases -d "Set the maximum number of cases running async"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l cover -d "The directory to include coverage results"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l force -d "Forces compilation regardless of modification times"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l no-compile -d "Do not compile, even if files require compilation"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l no-start -d "Do not start applications after compilation"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l no-color -d "Disable color in the output"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l color -d "Enable color in the output"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l include -d "Include tests that match the filter"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l exclude -d "Exclude tests that match the filter"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l only -d "Run only tests that match the filter"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l seed -d "Seeds the random number generator used to randomize test order"
|
||||
complete -c mix -n '__fish_mix_using_command test' -l timeout -d "Set the timeout for the tests"
|
||||
|
||||
# phx subcommand
|
||||
complete -f -c mix -n '__fish_mix_using_command phx' -l version -d "Prints the Phoenix version"
|
||||
complete -c mix -n '__fish_mix_using_command phx.digest' -s o -d "Specify output file name"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.digest' -l no-vsn -d "digest the stylesheet asset references without the query string `?vsn=d`"
|
||||
complete -c mix -n '__fish_mix_using_command phx.digest.clean' -s o -l output -d "The path to your compiled assets directory. Defaults to priv/static"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.digest.clean' -l age -d "Maximum age (in seconds) for assets"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.digest.clean' -l keep -d "How many previous versions of assets to keep"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.digest.clean' -l all -d "Specifies that all compiled assets (including the manifest) will be removed"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.auth' -l web -d "Customize the web module namespace"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.auth' -l binary-id -d "Uses `binary_id` for schema's primary key and its references"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.auth' -l table -d "Specify the the table name for the migration and schema"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.cert' -s o -l output -d "The path and base filename for the certificate and key"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.cert' -s n -l name -d "The Common Name value in certificate's subject"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.context' -l binary-id -d "Uses `binary_id` for schema's primary key and its references"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.context' -l table -d "Specify the the table name for the migration and schema"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.context' -l merge-with-existing-context -d "Skips prompt and automatically merge the new schema access functions and tests"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.context' -l no-merge-with-existing-context -d "Skips prompt and prevents changes to an existing context"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.html' -l context-app -d "Specifies the context app"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.html' -l web -d "Customize the web module namespace"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.html' -l no-context -d "Omits context internal implementation"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.html' -l no-schema -d "Omits schema internal implementation"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.html' -l binary-id -d "Uses `binary_id` for schema's primary key and its references"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.html' -l table -d "Specify the the table name for the migration and schema"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.json' -l context-app -d "Specifies the context app"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.json' -l web -d "Customize the web module namespace"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.json' -l no-context -d "Omits context internal implementation"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.json' -l no-schema -d "Omits schema internal implementation"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.json' -l binary-id -d "Uses `binary_id` for schema's primary key and its references"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.json' -l table -d "Specify the the table name for the migration and schema"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.live' -l context-app -d "Specifies the context app"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.live' -l web -d "Customize the web module namespace"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.live' -l no-context -d "Omits context internal implementation"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.live' -l no-schema -d "Omits schema internal implementation"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.live' -l binary-id -d "Uses `binary_id` for schema's primary key and its references"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.live' -l table -d "Specify the the table name for the migration and schema"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.notifier' -l context-app -d "Specifies the context app"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.release' -l docker -d "Generates a Docker and .dockerignore file"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.release' -l no-ecto -d "Skip migration-related file generation"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.release' -l ecto -d "Force migration-related file generation"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.schema' -l no-migration -d "Omits migration file"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.schema' -l context-app -d "Specifies the context app"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.schema' -l table -d "Specify the the table name for the migration and schema"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.schema' -l binary-id -d "Uses `binary_id` for schema's primary key and its references"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.schema' -l no-binary-id -d "Use normal ids despite the default configuration"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.schema' -l prefix -d "Specifies a prefix"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.gen.schema' -l migration -d "Force generation of the migration"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l umbrella -d "Generate an umbrella project, with one application for your domain, and a second application for the web interface."
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l app -d "The name of the OTP application"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l module -d "The name of the base module in the generated skeleton"
|
||||
complete -x -c mix -n '__fish_mix_using_command phx.new' -l database -a "postgres mysql mssql sqlite3" -d "Specify the database adapter for Ecto"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l no-assets -d "Do not generate the assets folder"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l no-ecto -d "Do not generate Ecto files"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l no-html -d "Do not generate HTML views"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l no-gettext -d "Do not generate gettext files"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l no-dashboard -d "Do not include Phoenix.LiveDashboard"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l no-live -d "Comment out LiveView socket setup in assets/js/app.js"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l no-mailer -d "Do not generate Swoosh mailer files"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l no-esbuild -d "Do not include esbuild dependencies and assets"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l no-tailwind -d "Do not include tailwind dependencies and assets"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l binary-id -d "Use binary_id as primary key type in Ecto schemas"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l verbose -d "Use verbose output"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -s v -l version -d "Prints the Phoenix installer version"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l no-context -d "Omits context internal implementation"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l no-install -d "Disable prompt to install dependencies"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new' -l install -d "Force prompt to install dependencies"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new.ecto' -l app -d "The name of the OTP application"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new.ecto' -l module -d "The name of the base module in the generated skeleton"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new.ecto' -l database -d "Specify the database adapter for Ecto"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new.ecto' -l binary-id -d "Use binary_id as primary key type in Ecto schemas"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new.web' -l app -d "The name of the OTP application"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.new.web' -l module -d "The name of the base module in the generated skeleton"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.routes' -l info -d "Locate the controller function definition called by the given url"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.server' -l open -d "Open browser window for each started endpoint"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.server' -l config -s c -d "Loads the given configuration file"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.server' -l eval -s e -d "Evaluates the given code"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.server' -l require -s r -d "Requires pattern before running the command"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.server' -l parallel-require -s pr -d "Requires pattern in parallel"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.server' -l no-compile -d "Does not compile even if files require compilation"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.server' -l no-deps-check -d "Does not check dependencies"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.server' -l no-halt -d "Does not halt the system after running the command"
|
||||
complete -f -c mix -n '__fish_mix_using_command phx.server' -l no-start -d "Does not start applications after compilation"
|
||||
|
||||
# help subcommand
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a app.start -d "Starts all registered apps"
|
||||
@@ -98,6 +205,7 @@ complete -f -c mix -n '__fish_mix_using_command help' -a archive.uninstall -d "U
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a clean -d "Deletes generated application files"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a cmd -d "Executes the given command"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a compile -d "Compiles source files"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a compile.phoenix -d "Compiles Phoenix source files that support code reloading"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a deps -d "Lists dependencies and their status"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a deps.clean -d "Deletes the given dependencies' files"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a deps.compile -d "Compiles dependencies"
|
||||
@@ -114,5 +222,28 @@ complete -f -c mix -n '__fish_mix_using_command help' -a local.public_keys -d "M
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a local.rebar -d "Installs rebar locally"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a new -d "Creates a new Elixir project"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a profile.fprof -d "Profiles the given file or expression with fprof"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx -d "Prints Phoenix tasks and their information."
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.digest -d "Digests and compresses static files"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.digest.clean -d "Removes old versions of static assets."
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.gen -d "Lists all available Phoenix generators"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.gen.auth -d "Generates authentication logic for a resource"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.gen.cert -d "Generates a self-signed certificate for HTTPS testing"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.gen.channel -d "Generates a Phoenix channel"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.gen.context -d "Generates a context with functions around an Ecto schema"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.gen.embedded -d "Generates an embedded Ecto schema file"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.gen.html -d "Generates context and controller for an HTML resource"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.gen.json -d "Generates context and controller for a JSON resource"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.gen.live -d "Generates LiveView, templates, and context for a resource"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.gen.notifier -d "Generates a notifier that delivers emails by default"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.gen.presence -d "Generates a Presence tracker"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.gen.release -d "Generates release files and optional Dockerfile for release-based deployments"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.gen.schema -d "Generates an Ecto schema and migration file"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.gen.secret -d "Generates a secret"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.gen.socket -d "Generates a Phoenix socket handler"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.new -d "Creates a new Phoenix application"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.new.ecto -d "Creates a new Ecto project within an umbrella project"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.new.web -d "Creates a new Phoenix web project within an umbrella project"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.routes -d "Prints all routes"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a phx.server -d "Starts applications and their servers"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a run -d "Runs the given file or expression"
|
||||
complete -f -c mix -n '__fish_mix_using_command help' -a test -d "Runs a project's tests"
|
||||
|
||||
@@ -88,7 +88,7 @@ function __fish_mvn_profiles
|
||||
end
|
||||
|
||||
function __fish_mvn_projects
|
||||
grep "<module>" pom.xml 2>/dev/null | sed 's/\s*<[^<]*>\(.*\)<[^<]*>/\1/'
|
||||
grep "<module>" pom.xml 2>/dev/null | sed 's/[[:space:]]*<[^<]*>\(.*\)<[^<]*>/\1/'
|
||||
end
|
||||
|
||||
complete -c mvn -f -r -o P -l activate-profiles -a "(__fish_mvn_profiles)" -d "Comma-delimited list of profiles to activate"
|
||||
|
||||
8
share/completions/mycli.fish
Normal file
8
share/completions/mycli.fish
Normal file
@@ -0,0 +1,8 @@
|
||||
# fish completion for mycli -*- shell-script -*-
|
||||
|
||||
function __fish_mycli_dsn
|
||||
mycli --list-dsn
|
||||
end
|
||||
|
||||
complete -c mycli -s d -l dsn -x -d 'Use DSN configured into the [alias_dsn]' -a '(__fish_mycli_dsn)'
|
||||
complete -c mycli -a '(__fish_mycli_dsn)'
|
||||
@@ -8,6 +8,7 @@ complete -c ncat -s 6 -d "IPv6 only"
|
||||
complete -c ncat -s U -l unixsock -d "Use Unix domain sockets"
|
||||
complete -c ncat -s u -l udp -d "Use UDP"
|
||||
complete -c ncat -l sctp -d "Use SCTP"
|
||||
complete -c ncat -l vsock -d "Use AF_VSOCK sockets"
|
||||
|
||||
# CONNECT MODE OPTIONS
|
||||
complete -c ncat -s g -x -d "Loose source routing"
|
||||
@@ -35,12 +36,14 @@ function __fish_complete_openssl_ciphers
|
||||
end
|
||||
end
|
||||
complete -c ncat -l ssl-ciphers -x -a "(__fish_complete_list : __fish_complete_openssl_ciphers)" -d "Specify SSL ciphersuites"
|
||||
complete -c ncat -l ssl-servername -x -a "(__fish_print_hostnames)" -d "Request distinct server name"
|
||||
complete -c ncat -l ssl-alpn -x -d "Specify ALPN protocol list"
|
||||
|
||||
# PROXY OPTIONS
|
||||
complete -c ncat -l proxy -x -d "Specify proxy address"
|
||||
complete -c ncat -l proxy-type -x -d "Specify proxy protocol"
|
||||
complete -c ncat -l proxy-type -x -a "http socks4 socks5" -d "Specify proxy protocol"
|
||||
complete -c ncat -l proxy-auth -x -d "Specify proxy credentials"
|
||||
complete -c ncat -l proxy-dns -x -a "local remote both none" -d "Specify where to resolve proxy destination"
|
||||
|
||||
# COMMAND EXECUTION OPTIONS
|
||||
complete -c ncat -s e -l exec -r -d "Execute command"
|
||||
@@ -67,8 +70,10 @@ complete -c ncat -s v -l verbose -d "Be verbose"
|
||||
# MISC OPTIONS
|
||||
complete -c ncat -s C -l crlf -d "Use CRLF as EOL"
|
||||
complete -c ncat -s h -l help -d "Help screen"
|
||||
complete -c ncat -l -recv-only -d "Only receive data"
|
||||
complete -c ncat -l recv-only -d "Only receive data"
|
||||
complete -c ncat -l send-only -d "Only send data"
|
||||
complete -c ncat -l no-shutdown -d "Do not shutdown into half-duplex mode"
|
||||
complete -c ncat -s n -l nodns -d "Do not resolve hostnames"
|
||||
complete -c ncat -s t -l telnet -d "Answer Telnet negotiations"
|
||||
complete -c ncat -l version -d "Display version"
|
||||
complete -c ncat -s z -d "Report connection status only"
|
||||
|
||||
@@ -1,16 +1,53 @@
|
||||
complete -c ncdu -s h -l help -d 'Print help'
|
||||
complete -c ncdu -s q -d 'Quiet mode. Refresh interval 2 seconds'
|
||||
complete -c ncdu -s q -l slow-ui-updates -d 'Quiet mode. Refresh interval 2 seconds'
|
||||
complete -c ncdu -l fast-ui-updates -d 'Refresh interval 10 per second'
|
||||
complete -c ncdu -s v -s V -l version -d 'Print version'
|
||||
complete -c ncdu -s x -d 'Same filesystem'
|
||||
complete -c ncdu -s e -d 'Enable extended information'
|
||||
complete -c ncdu -s r -d 'Read only'
|
||||
complete -c ncdu -s x -l one-file-system -d 'Same filesystem'
|
||||
complete -c ncdu -l cross-file-system -d 'Cross filesystems'
|
||||
complete -c ncdu -s e -l extended -d 'Enable extended information'
|
||||
complete -c ncdu -l no-extended -d 'Disable extended information'
|
||||
complete -c ncdu -s r -d 'Read only mode'
|
||||
complete -c ncdu -s o -d 'Export scanned directory' -r
|
||||
complete -c ncdu -s f -d 'Import scanned directory' -r
|
||||
complete -c ncdu -s 0 -s 1 -s 2 -d 'UI to use when scanning (0=none,2=full ncurses)'
|
||||
complete -c ncdu -l si -d 'Use base 10 prefixes instead of base 2'
|
||||
complete -c ncdu -l si -d 'Use base 10 prefixes'
|
||||
complete -c ncdu -l no-si -d 'Use base 2 prefixes'
|
||||
complete -c ncdu -l exclude -d 'Exclude files that match pattern' -x
|
||||
complete -c ncdu -s X -l exclude-from -d 'Exclude files that match any pattern in file' -r
|
||||
complete -c ncdu -s L -l follow-symlinks -d 'Follow symlinks (excluding dirs)'
|
||||
complete -c ncdu -l no-follow-symlinks -d 'Do not follow symlinks (excluding dirs)'
|
||||
complete -c ncdu -l exclude-caches -d 'Exclude dirs containing CACHEDIR.TAG'
|
||||
complete -c ncdu -l include-caches -d 'Include dirs containing CACHEDIR.TAG'
|
||||
complete -c ncdu -l confirm-quit -d 'Prompt before exiting ncdu'
|
||||
complete -c ncdu -l color -d 'Set color scheme' -x
|
||||
complete -c ncdu -l no-confirm-quit -d 'No confirmation before exiting ncdu'
|
||||
complete -c ncdu -l color -d 'Set color scheme' -a 'off dark dark-bg' -x
|
||||
complete -c ncdu -l ignore-config -d 'Do not load any configuration files'
|
||||
complete -c ncdu -l include-kernfs -d 'Include Linux pseudo filesystems'
|
||||
complete -c ncdu -l exclude-kernfs -d 'Exclude Linux pseudo filesystems'
|
||||
complete -c ncdu -l enable-shell -d 'Enable shell spawning'
|
||||
complete -c ncdu -l disable-shell -d 'Disable shell spawning'
|
||||
complete -c ncdu -l enable-delete -d 'Enable built-in file deletion'
|
||||
complete -c ncdu -l disable-delete -d 'Disable built-in file deletion'
|
||||
complete -c ncdu -l enable-refresh -d 'Enable directory refreshing'
|
||||
complete -c ncdu -l disable-refresh -d 'Disable directory refreshing'
|
||||
complete -c ncdu -l disk-usage -d 'Show disk usage of files'
|
||||
complete -c ncdu -l apparent-size -d 'Show apparent size of files'
|
||||
complete -c ncdu -l show-hidden -d 'Show hidden and excluded files'
|
||||
complete -c ncdu -l hide-hidden -d 'Hide hidden and excluded files'
|
||||
complete -c ncdu -l show-itemcount -d 'Show the item counts column'
|
||||
complete -c ncdu -l hide-itemcount -d 'Hide the item counts column'
|
||||
complete -c ncdu -l show-mtime -d 'Show last modification time column'
|
||||
complete -c ncdu -l hide-mtime -d 'Hide last modification time column'
|
||||
complete -c ncdu -l show-graph -d 'Show the relative size bar column'
|
||||
complete -c ncdu -l hide-graph -d 'Hide the relative size bar column'
|
||||
complete -c ncdu -l show-percent -d 'Show the relative size percent column'
|
||||
complete -c ncdu -l hide-percent -d 'Hide the relative size percent column'
|
||||
complete -c ncdu -l graph-style -d 'Relative size bar column style' -a 'hash half-block eighth-block' -x
|
||||
complete -c ncdu -l shared-column -d 'Show/hide hard link shared sizes' -a 'off shared unique' -x
|
||||
complete -c ncdu -l sort -d 'Column to sort on' -a 'disk-usage disk-usage-desc name name-desc apparent-size apparent-size-desc itemcount itemcount-desc mtime mtime-desc' -x
|
||||
complete -c ncdu -l enable-natsort -d 'Enable natural sort'
|
||||
complete -c ncdu -l disable-natsort -d 'Disable natural sort'
|
||||
complete -c ncdu -l group-directories-first -d 'Sort directories before files'
|
||||
complete -c ncdu -l no-group-directories-first -d 'Do not sort directories before files'
|
||||
complete -c ncdu -l confirm-delete -d 'Require a confirmation before deleting'
|
||||
complete -c ncdu -l no-confirm-delete -d 'Do not require a confirmation before deleting'
|
||||
|
||||
@@ -13,6 +13,7 @@ end
|
||||
|
||||
function __fish_print_ninja_targets
|
||||
__fish_ninja -t targets 2>/dev/null | string replace -r ':.*' ''
|
||||
__fish_ninja -t targets all 2>/dev/null | string replace -r ':.*' '' | string match -e -r '\.(?:o|so|a)$'
|
||||
end
|
||||
complete -c ninja -f -a '(__fish_print_ninja_targets)' -d target
|
||||
complete -x -c ninja -s t -x -a "(__fish_print_ninja_tools)" -d subtool
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user