mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-12-06 16:08:42 +08:00
commit
4ab5826a5d
1 file changed
+3
-1
+3
-1
@@ -186,7 +186,9 @@ _yaourt_completions_repositories() {
|
|||||||
# $cmd must be declared by calling function
|
# $cmd must be declared by calling function
|
||||||
_yaourt_get_command() {
|
_yaourt_get_command() {
|
||||||
# this is mostly nicked from _perforce
|
# this is mostly nicked from _perforce
|
||||||
cmd=( "pacman" )
|
cmd=$( grep "^PACMAN=" "/etc/yaourtrc" \
|
||||||
|
&& grep "^PACMAN=" "/etc/yaourtrc" | cut -c8- \
|
||||||
|
|| echo "pacman" )
|
||||||
integer i
|
integer i
|
||||||
for (( i = 2; i < CURRENT - 1; i++ )); do
|
for (( i = 2; i < CURRENT - 1; i++ )); do
|
||||||
if [[ ${words[i]} = "--config" || ${words[i]} = "--root" ]]; then
|
if [[ ${words[i]} = "--config" || ${words[i]} = "--root" ]]; then
|
||||||
|
|||||||
Reference in new issue
Block a user