Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
FS#75841 - let pacman's completion support makepkg-mingw and pacboy?
Attached to Project:
Pacman
Opened by Wu Zhenyu (Freed) - Wednesday, 07 September 2022, 14:27 GMT
Last edited by Allan McRae (Allan) - Wednesday, 07 September 2022, 23:32 GMT
Opened by Wu Zhenyu (Freed) - Wednesday, 07 September 2022, 14:27 GMT
Last edited by Allan McRae (Allan) - Wednesday, 07 September 2022, 23:32 GMT
|
DetailsIt is not a bug.
I use pacman not only in archlinux, but also in windows' msys2. msys2 has two scripts, named makepkg-mingw and pacboy. makepkg-mingw is a program which set correct environment vars then call makepkg. pacboy is just a wrapper of pacman -- `pacboy -S ripgrep:x` is a short for `pacman -S mingw-w64-x64-ripgrep`. So they can use same shell completions with makepkg/pacman. I think there are three methods: 1. change the upstream, just <https://gitlab.archlinux.org/pacman/pacman/-/blob/master/scripts/completion/zsh_completion.in#L1>: ```diff diff --git a/zsh_completion.in b/zsh_completion.in index f65edeb..9fbd7f3 100644 --- a/zsh_completion.in +++ b/zsh_completion.in @@ -1,4 +1,4 @@ -#compdef pacman pacman.static=pacman pacman-conf pacman-key makepkg +#compdef pacman pacman.static=pacman pacman-conf pacman-key makepkg makepkg-mingw=makepkg pacboy=pacman # copy this file to /usr/share/zsh/site-functions/_pacman ``` 2. Let the downstream add a patch. 3. Let user add `compdef _pacman makepkg-mingw=makepkg pacboy=pacman` in their zshrc I don't know which method the most of the people want? <https://github.com/msys2/MSYS2-packages/issues/2996> Not offense. Just some proposals. Thanks! |
This task depends upon
Closed by Allan McRae (Allan)
Wednesday, 07 September 2022, 23:32 GMT
Reason for closing: Won't implement
Wednesday, 07 September 2022, 23:32 GMT
Reason for closing: Won't implement
Comment by Allan McRae (Allan) -
Wednesday, 07 September 2022, 23:32 GMT
I don't think it is pacman's job to track every user of its completion files.