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
|
-- Music
|
||||||
constants = constants .. " d'Acide JBX "
|
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
|
-- If true, extract covers from tags, copy covers in current folder, exclude those
|
||||||
-- outside the size boundaries.
|
-- outside the size boundaries.
|
||||||
covers = true
|
covers = true
|
||||||
|
|
|
@ -11,20 +11,7 @@ fi
|
||||||
_pcc()
|
_pcc()
|
||||||
{
|
{
|
||||||
case $words[1] in
|
case $words[1] in
|
||||||
pacman-deps)
|
pacfiles)
|
||||||
case $words[2] in
|
|
||||||
-*q*)
|
|
||||||
_pacman_action_query
|
|
||||||
return ;;
|
|
||||||
-)
|
|
||||||
return 1;;
|
|
||||||
*)
|
|
||||||
_pacman_action_sync
|
|
||||||
return ;;
|
|
||||||
esac
|
|
||||||
return ;;
|
|
||||||
|
|
||||||
pacman-files)
|
|
||||||
_pacman_action_query
|
_pacman_action_query
|
||||||
return ;;
|
return ;;
|
||||||
|
|
||||||
|
@ -32,7 +19,7 @@ _pcc()
|
||||||
_pacman_action_query
|
_pacman_action_query
|
||||||
return ;;
|
return ;;
|
||||||
|
|
||||||
pacman-size)
|
pacsize)
|
||||||
case $words[2] in
|
case $words[2] in
|
||||||
-*q*)
|
-*q*)
|
||||||
_pacman_action_query
|
_pacman_action_query
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
## -*- mode:sh -*- #
|
## -*- mode:sh -*- #
|
||||||
##==============================================================================
|
|
||||||
## Completion
|
|
||||||
##==============================================================================
|
|
||||||
if [ "zsh" = "$SHELL_CURRENT" ]; then
|
if [ "zsh" = "$SHELL_CURRENT" ]; then
|
||||||
compdef _gcc crun
|
compdef _gcc crun
|
||||||
compdef _gcc formatc
|
compdef _gcc formatc
|
||||||
|
@ -9,9 +7,8 @@ if [ "zsh" = "$SHELL_CURRENT" ]; then
|
||||||
compdef _gs pdfextract
|
compdef _gs pdfextract
|
||||||
compdef _gs pdfresize
|
compdef _gs pdfresize
|
||||||
compdef _pacman pacman-color
|
compdef _pacman pacman-color
|
||||||
compdef _pcc pacman-deps
|
compdef _pcc pacfiles
|
||||||
compdef _pcc pacman-files
|
compdef _pcc pacsize
|
||||||
compdef _pcc pacman-size
|
|
||||||
compdef _pcc pql
|
compdef _pcc pql
|
||||||
compdef _tex ltx
|
compdef _tex ltx
|
||||||
compdef _path_commands typex
|
compdef _path_commands typex
|
||||||
|
|
Loading…
Reference in New Issue