[pacman-dev] [PATCH 4/4] zsh completion: make sure all indentions are tabs
Daniel Wallace
danielwallace at gtmanfred.com
Wed Mar 6 16:13:46 EST 2013
Signed-off-by: Daniel Wallace <danielwallace at gtmanfred.com>
---
contrib/zsh_completion.in | 156 +++++++++++++++++++++++-----------------------
1 file changed, 78 insertions(+), 78 deletions(-)
diff --git a/contrib/zsh_completion.in b/contrib/zsh_completion.in
index 515320c..d5a6e06 100644
--- a/contrib/zsh_completion.in
+++ b/contrib/zsh_completion.in
@@ -60,7 +60,7 @@ _pacman_opts_query_modifiers=(
'-k[Check package files]'
'-l[List package contents]'
'-m[List installed packages not found in sync db(s)]'
- '-n[List installed packages found in sync db(s)]'
+ '-n[List installed packages found in sync db(s)]'
'-t[List packages not required by any package]'
'-u[List packages that can be upgraded]'
)
@@ -76,8 +76,8 @@ _pacman_opts_remove=(
)
_pacman_opts_database=(
- '--asdeps[mark packages as non-explicitly installed]'
- '--asexplicit[mark packages as explicitly installed]'
+ '--asdeps[mark packages as non-explicitly installed]'
+ '--asexplicit[mark packages as explicitly installed]'
)
# options for passing to _arguments: options for --sync command
@@ -102,9 +102,9 @@ _pacman_opts_sync_modifiers=(
'-w[Download packages only]'
'-y[Download fresh package databases]'
'*--ignore[Ignore a package upgrade]:package:
- _pacman_completions_all_packages'
+ _pacman_completions_all_packages'
'*--ignoregroup[Ignore a group upgrade]:package group:
- _pacman_completions_all_groups'
+ _pacman_completions_all_groups'
'--asdeps[Install packages as non-explicitly installed]'
'--asexplicit[Install packages as explicitly installed]'
'--force[Overwrite conflicting files]'
@@ -191,7 +191,7 @@ _pacman_action_sync() {
"$_pacman_opts_common[@]" \
"$_pacman_opts_sync_modifiers[@]" \
'*-c[Remove old packages from cache]' \
- ;;
+ ;;
sync_group)
_arguments -s : \
"$_pacman_opts_common[@]" \
@@ -276,9 +276,9 @@ _pacman_completions_installed_packages() {
}
_pacman_all_packages() {
- _alternative : \
- 'localpkgs:local packages:_pacman_completions_installed_packages' \
- 'repopkgs:repository packages:_pacman_completions_all_packages'
+ _alternative : \
+ 'localpkgs:local packages:_pacman_completions_installed_packages' \
+ 'repopkgs:repository packages:_pacman_completions_all_packages'
}
# provides completions for repository names
@@ -383,7 +383,7 @@ _pacman_zsh_comp() {
}
_key_shortopts=(
- '-h[show help]' \
+ '-h[show help]'
'-a[Add the specified keys (empty for stdin)]: :_files'
'-d[Remove the Specified keyids]:*: :_keys'
'-e[Export the specified or all keyids]:*: :_keys'
@@ -461,82 +461,82 @@ _pacman_key() {
}
_keys() {
- local keylist keys
- keylist=$(pacman-key --list-keys 2>/dev/null | awk '
- $1 == "pub" {
- # key id
- split($2, a, "/"); print a[2]
- }
- $1 == "uid" {
- # email
- if (match($NF, /<[^>]+>/))
- print substr($NF, RSTART + 1, RLENGTH - 2)
- #this adds support for names as well if that is ever added
- }
- $1 == "uid" {
- for (i=2;i<NF;i++) {printf "%s%s",sep, $i;sep=" "}; printf "\n"
- }' |sed -e 's/(.*)//g' -e 's/^\ //g' -e 's/\ *$//g' |uniq
- )
- keys=(${(s:/:)${keylist//$'\n'/\/}})
- _describe -t modules 'keys in keyring' keys && return 0
+ local keylist keys
+ keylist=$(pacman-key --list-keys 2>/dev/null | awk '
+ $1 == "pub" {
+ # key id
+ split($2, a, "/"); print a[2]
+ }
+ $1 == "uid" {
+ # email
+ if (match($NF, /<[^>]+>/))
+ print substr($NF, RSTART + 1, RLENGTH - 2)
+ #this adds support for names as well if that is ever added
+ }
+ $1 == "uid" {
+ for (i=2;i<NF;i++) {printf "%s%s",sep, $i;sep=" "}; printf "\n"
+ }' |sed -e 's/(.*)//g' -e 's/^\ //g' -e 's/\ *$//g' |uniq
+ )
+ keys=(${(s:/:)${keylist//$'\n'/\/}})
+ _describe -t modules 'keys in keyring' keys && return 0
}
_makepkg_shortopts=(
- '*-s[Install missing dependencies with pacman]'
- '*-i[Install package after successful build]'
- '*-A[Ignore incomplete arch field in PKGBUILD]'
- '*-c[Clean up work files after build]'
- '*-d[Skip all dependency checks]'
- '*-e[Do not extract source files (use existing src/ dir)]'
- '*-f[Overwrite existing package]'
- '*-g[Generate integrity checks for source files]'
- '*-h[Show help message and exit]'
- '*-L[Log package build process]'
- '*-m[Disable colorized output messages]'
- '*-o[Download and extract files only]'
- '-p[Use an alternate build script (instead of 'PKGBUILD')]: :_files'
- '*-r[Remove installed dependencies after a successful build]'
- '*-R[Repackage contents of the package without rebuilding]'
- '*-S[Generate a source-only tarball without downloading sources]'
+ '*-s[Install missing dependencies with pacman]'
+ '*-i[Install package after successful build]'
+ '*-A[Ignore incomplete arch field in PKGBUILD]'
+ '*-c[Clean up work files after build]'
+ '*-d[Skip all dependency checks]'
+ '*-e[Do not extract source files (use existing src/ dir)]'
+ '*-f[Overwrite existing package]'
+ '*-g[Generate integrity checks for source files]'
+ '*-h[Show help message and exit]'
+ '*-L[Log package build process]'
+ '*-m[Disable colorized output messages]'
+ '*-o[Download and extract files only]'
+ '-p[Use an alternate build script (instead of 'PKGBUILD')]: :_files'
+ '*-r[Remove installed dependencies after a successful build]'
+ '*-R[Repackage contents of the package without rebuilding]'
+ '*-S[Generate a source-only tarball without downloading sources]'
)
_makepkg_action_none(){
- _arguments \
- "$_makepkg_shortopts[@]"\
- "$_makepkg_longopts[@]"
+ _arguments \
+ "$_makepkg_shortopts[@]" \
+ "$_makepkg_longopts[@]"
}
_makepkg_longopts=(
- '--ignorearch[Ignore incomplete arch field in PKGBUILD]'
- '--clean[Clean up work files after build]'
- '--nodeps[Skip all dependency checks]'
- '--noextract[Do not extract source files (use existing src/ dir)]'
- '--force[Overwrite existing package]'
- '--geninteg[Generate integrity checks for source files]'
- '--help[Show help message and exit]'
- '--install[Install package after successful build]'
- '--log[Log package build process]'
- '--nocolor[Disable colorized output messages]'
- '--nobuild[Download and extract files only]'
- '--rmdeps[Remove installed dependencies after a successful build]'
- '--repackage[Repackage contents of the package without rebuilding]'
- '--syncdeps[Install missing dependencies with pacman]'
- '--source[Generate a source-only tarball without downloading sources]'
- '--allsource[Generate a source-only tarball including downloaded source]'
- '--asroot[Allow makepkg to run as root user]'
- '--check[Run check() function in the PKGBUILD]'
- '--config[Use an alternate config file instead of '/etc/makepkg.conf']: :_files'
- '--holdver[Prevent automatic version bumping for development PKGBUILDs]'
- '--key[Specify key to use for gpg signing instead of the default]: :_keys'
- '--nocheck[Do not run the check() function in the PKGBUILD]'
- '--nosign[Do not create a signature for the package]'
- '--pkg[Only build listed packages from a split package]'
- '--sign[Sign the resulting package with gpg]'
- '--skipchecksums[Do not verify checksums of the source files]'
- '--skipinteg[do not perform any verification checks on source files]'
- '--skippgpcheck[Do not verify source files with PGP signatures]'
- '--noconfirm[do not ask for confirmation when resolving dependencies]'
- '--asdeps[Install packages as non-explicitly installed]'
- '--noprogressbar[Do not show a progress bar when downloading files]'
+ '--ignorearch[Ignore incomplete arch field in PKGBUILD]'
+ '--clean[Clean up work files after build]'
+ '--nodeps[Skip all dependency checks]'
+ '--noextract[Do not extract source files (use existing src/ dir)]'
+ '--force[Overwrite existing package]'
+ '--geninteg[Generate integrity checks for source files]'
+ '--help[Show help message and exit]'
+ '--install[Install package after successful build]'
+ '--log[Log package build process]'
+ '--nocolor[Disable colorized output messages]'
+ '--nobuild[Download and extract files only]'
+ '--rmdeps[Remove installed dependencies after a successful build]'
+ '--repackage[Repackage contents of the package without rebuilding]'
+ '--syncdeps[Install missing dependencies with pacman]'
+ '--source[Generate a source-only tarball without downloading sources]'
+ '--allsource[Generate a source-only tarball including downloaded source]'
+ '--asroot[Allow makepkg to run as root user]'
+ '--check[Run check() function in the PKGBUILD]'
+ '--config[Use an alternate config file instead of '/etc/makepkg.conf']: :_files'
+ '--holdver[Prevent automatic version bumping for development PKGBUILDs]'
+ '--key[Specify key to use for gpg signing instead of the default]: :_keys'
+ '--nocheck[Do not run the check() function in the PKGBUILD]'
+ '--nosign[Do not create a signature for the package]'
+ '--pkg[Only build listed packages from a split package]'
+ '--sign[Sign the resulting package with gpg]'
+ '--skipchecksums[Do not verify checksums of the source files]'
+ '--skipinteg[do not perform any verification checks on source files]'
+ '--skippgpcheck[Do not verify source files with PGP signatures]'
+ '--noconfirm[do not ask for confirmation when resolving dependencies]'
+ '--asdeps[Install packages as non-explicitly installed]'
+ '--noprogressbar[Do not show a progress bar when downloading files]'
)
_makepkg(){
case $words[CURRENT] in
--
1.8.1.5
More information about the pacman-dev
mailing list