Compare commits
4 Commits
fa622e181c
...
1f388f5b45
Author | SHA1 | Date |
---|---|---|
|
1f388f5b45 | |
|
90be2a206f | |
|
cc18accaac | |
|
3dc13483c1 |
|
@ -83,6 +83,14 @@ rm -f ~/.zcompdump; compinit
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Second Solution:
|
||||||
|
zsh-completions as a plugin, they suggest manually adding its source directory to fpath before sourcing oh-my-zsh.sh.
|
||||||
|
This ensures Zsh loads the completion files only once, improving performance.
|
||||||
|
Recommended Fix:
|
||||||
|
Instead of the existing method, they propose adding this line:
|
||||||
|
|
||||||
|
fpath=($ZSH/custom/plugins/zsh-completions/src $fpath)
|
||||||
|
|
||||||
### Contributing
|
### Contributing
|
||||||
|
|
||||||
Contributions are welcome, see [CONTRIBUTING](https://github.com/zsh-users/zsh-completions/blob/master/CONTRIBUTING.md).
|
Contributions are welcome, see [CONTRIBUTING](https://github.com/zsh-users/zsh-completions/blob/master/CONTRIBUTING.md).
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for go 1.24.0 (https://go.dev/).
|
# Completion script for go 1.25.0 (https://go.dev/).
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
@ -428,6 +428,7 @@ case $state in
|
||||||
'-all[show all the documentation for the package]' \
|
'-all[show all the documentation for the package]' \
|
||||||
'-c[respect case when matching symbols]' \
|
'-c[respect case when matching symbols]' \
|
||||||
'-cmd[treat a command (package main) like a regular package]' \
|
'-cmd[treat a command (package main) like a regular package]' \
|
||||||
|
'-http[serve HTML docs over HTTP]' \
|
||||||
'-short[one-line representation for each symbol]' \
|
'-short[one-line representation for each symbol]' \
|
||||||
'-src[show the full source code for the symbol]' \
|
'-src[show the full source code for the symbol]' \
|
||||||
'-u[show docs for unexported and exported symbols and methods]' \
|
'-u[show docs for unexported and exported symbols and methods]' \
|
||||||
|
@ -946,6 +947,8 @@ case $state in
|
||||||
'-extld[use linker when linking in external mode]:linker' \
|
'-extld[use linker when linking in external mode]:linker' \
|
||||||
'-extldflags[pass flags to external linker]:flags' \
|
'-extldflags[pass flags to external linker]:flags' \
|
||||||
'-f[ignore version mismatch]' \
|
'-f[ignore version mismatch]' \
|
||||||
|
'-fipso[write fips module to file]:file:_files' \
|
||||||
|
'-funcalign[set function align to N bytes]:byte' \
|
||||||
'-g[disable go package data checks]' \
|
'-g[disable go package data checks]' \
|
||||||
'-h[halt on error]' \
|
'-h[halt on error]' \
|
||||||
'-importcfg[read import configuration from file]:config:_files' \
|
'-importcfg[read import configuration from file]:config:_files' \
|
||||||
|
@ -1118,6 +1121,7 @@ case $state in
|
||||||
_arguments \
|
_arguments \
|
||||||
'-m[print each executable embedded module version information]' \
|
'-m[print each executable embedded module version information]' \
|
||||||
'-v[report unrecognized files]' \
|
'-v[report unrecognized files]' \
|
||||||
|
'-json[print each executable embedded module version in JSON format]' \
|
||||||
'*:files:_files'
|
'*:files:_files'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue