mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-03 07:37:47 +00:00
Provide completion for git subcommands (#1044)
This is to provide completion for when user types `git [Tab]`. There is already completion for `git help [Tab]` but I don't know why author don't add it to `git` alone. Fixes #1043
This commit is contained in:
parent
a6c41303bb
commit
07050f877f
1 changed files with 4 additions and 0 deletions
|
@ -798,3 +798,7 @@ export extern "git grep" [
|
|||
--quiet(-q) # Do not output matched lines; instead, exit with status 0 when there is a match and with non-zero status when there isn’t.
|
||||
...pathspecs: string # Target pathspecs to limit the scope of the search.
|
||||
]
|
||||
|
||||
export extern "git" [
|
||||
command?: string@"nu-complete git subcommands" # subcommand to show help for
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue