You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ fish --version
fish, version 2.6.0-560-g874a675e
$ uname -a
Linux sam-xps-ubuntu 4.12.8-041208-generic #201708161815 SMP Wed Aug 16 22:17:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ echo$TERM
xterm-256color
I have git-extras installed, which puts a bunch of git- commands available in the PATH and Fish is doing two very good things:
Suggests custom git commands when appropriated (source for it here and here):
Generates completions for these custom commands using the man pages provided by git-extras, so fish can suggest options when you type the custom commands as such git-<custom_command>...:
The problem is, that these completions won't work if you type the custom commands as git <custom_command> (only --help is suggested):
I have tried a few things to get around this, without success.
That gives very weird and convoluted completion results. I presume because using -w makes command actually ignore the -n, extending plain git with all the options of each custom command:
I also tried some expansion combinations with command -CSTRING but it won't show completions for things like complete -CSTRING"git-authors -".
Also don't know any way to alias/abbr multi-word strings to single-word commands (in order to tell fish that git authors is the same as git-authors).
Any suggestions? I would love to open a PR if this is actually possible to achieve.
The text was updated successfully, but these errors were encountered:
I have git-extras installed, which puts a bunch of
git-
commands available in the PATH and Fish is doing two very good things:git-<custom_command>...
:The problem is, that these completions won't work if you type the custom commands as
git <custom_command>
(only--help
is suggested):I have tried a few things to get around this, without success.
First, using
-w, --wraps
option ofcomplete
:That gives very weird and convoluted completion results. I presume because using
-w
makescommand
actually ignore the-n
, extending plaingit
with all the options of each custom command:I also tried some expansion combinations with
command -CSTRING
but it won't show completions for things likecomplete -CSTRING"git-authors -"
.Also don't know any way to alias/abbr multi-word strings to single-word commands (in order to tell fish that
git authors
is the same asgit-authors
).Any suggestions? I would love to open a PR if this is actually possible to achieve.
The text was updated successfully, but these errors were encountered: