Shell: Fix pacman completion
parent
23d69bfc89
commit
b9d5b9bab0
|
@ -19,6 +19,10 @@ constants = constants .. ' der die das den dem des ein eine einen eines einer wo
|
|||
-- Music
|
||||
constants = constants .. " d'Acide JBX "
|
||||
|
||||
-- Extension support for external covers. This is a pattern-matching string. For
|
||||
-- instance 'jpe?g' will match both 'jpg' and 'jpeg'. Case is ignored.
|
||||
cover_extlist = { gif = true }
|
||||
|
||||
-- If true, extract covers from tags, copy covers in current folder, exclude those
|
||||
-- outside the size boundaries.
|
||||
covers = true
|
||||
|
|
|
@ -11,20 +11,7 @@ fi
|
|||
_pcc()
|
||||
{
|
||||
case $words[1] in
|
||||
pacman-deps)
|
||||
case $words[2] in
|
||||
-*q*)
|
||||
_pacman_action_query
|
||||
return ;;
|
||||
-)
|
||||
return 1;;
|
||||
*)
|
||||
_pacman_action_sync
|
||||
return ;;
|
||||
esac
|
||||
return ;;
|
||||
|
||||
pacman-files)
|
||||
pacfiles)
|
||||
_pacman_action_query
|
||||
return ;;
|
||||
|
||||
|
@ -32,7 +19,7 @@ _pcc()
|
|||
_pacman_action_query
|
||||
return ;;
|
||||
|
||||
pacman-size)
|
||||
pacsize)
|
||||
case $words[2] in
|
||||
-*q*)
|
||||
_pacman_action_query
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
## -*- mode:sh -*- #
|
||||
##==============================================================================
|
||||
## Completion
|
||||
##==============================================================================
|
||||
|
||||
if [ "zsh" = "$SHELL_CURRENT" ]; then
|
||||
compdef _gcc crun
|
||||
compdef _gcc formatc
|
||||
|
@ -9,9 +7,8 @@ if [ "zsh" = "$SHELL_CURRENT" ]; then
|
|||
compdef _gs pdfextract
|
||||
compdef _gs pdfresize
|
||||
compdef _pacman pacman-color
|
||||
compdef _pcc pacman-deps
|
||||
compdef _pcc pacman-files
|
||||
compdef _pcc pacman-size
|
||||
compdef _pcc pacfiles
|
||||
compdef _pcc pacsize
|
||||
compdef _pcc pql
|
||||
compdef _tex ltx
|
||||
compdef _path_commands typex
|
||||
|
|
Loading…
Reference in New Issue