We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f074325 commit 5b96d53Copy full SHA for 5b96d53
1 file changed
custom-completions/git/git-completions.nu
@@ -274,8 +274,16 @@ def "nu-complete git files-or-refs" [] {
274
| append (nu-complete git built-in-refs)
275
}
276
277
+def "nu-complete git aliases" [] {
278
+ ^git config --get-regexp ^alias\.
279
+ | lines
280
+ | parse "alias.{value} {description}"
281
+}
282
+
283
def "nu-complete git subcommands" [] {
284
^git help -a | lines | where $it starts-with " " | parse -r '\s*(?P<value>[^ ]+) \s*(?P<description>\w.*)'
285
+ | append (nu-complete git aliases)
286
+ | uniq-by value
287
288
289
def "nu-complete git add" [] {
0 commit comments