[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 4a69a5a53cd68d058b05ce1cd9398eefb00aa5bb

Ville Skyttä ville.skytta at iki.fi
Sun Oct 24 09:44:18 UTC 2010


The following commit has been merged in the master branch:
commit cf882a49e2fd9b53464e7a1e94f311f7a678d7db
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Oct 24 12:37:22 2010 +0300

    Coding style tweaks.

diff --git a/completions/_mock b/completions/_mock
index 40e422c..c1888ed 100644
--- a/completions/_mock
+++ b/completions/_mock
@@ -27,7 +27,8 @@ _mock()
     _split_longopt && split=true
 
     case $prev in
-        -h|--help|--copyin|--copyout|--arch|-D|--define|--with|--without|--uniqueext|--rpmbuild_timeout|--sources|--cwd)
+        -h|--help|--copyin|--copyout|--arch|-D|--define|--with|--without|\
+        --uniqueext|--rpmbuild_timeout|--sources|--cwd)
             return 0
             ;;
         -r|--root)
@@ -62,15 +63,13 @@ _mock()
     $split && return 0
 
     if [[ "$cur" == -* ]] ; then
-        COMPREPLY=( $( compgen -W '--version --help --rebuild \
-            --buildsrpm --shell --chroot --clean --init \
-            --installdeps --install --update --orphanskill \
-            --copyin --copyout --root --offline --no-clean \
-            --cleanup-after --no-cleanup-after --arch --target \
-            --define --with --without --resultdir --uniqueext \
-            --configdir --rpmbuild_timeout --unpriv --cwd --spec \
-            --sources --verbose --quiet --trace --enable-plugin \
-            --disable-plugin --print-root-path' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--version --help --rebuild --buildsrpm
+            --shell --chroot --clean --init --installdeps --install --update
+            --orphanskill --copyin --copyout --root --offline --no-clean
+            --cleanup-after --no-cleanup-after --arch --target --define --with
+            --without --resultdir --uniqueext --configdir --rpmbuild_timeout
+            --unpriv --cwd --spec --sources --verbose --quiet --trace
+            --enable-plugin --disable-plugin --print-root-path' -- "$cur" ) )
     else
         _filedir '@(?(no)src.r|s)pm'
     fi
diff --git a/completions/dd b/completions/dd
index e236f85..5b952b4 100644
--- a/completions/dd
+++ b/completions/dd
@@ -9,24 +9,24 @@ _dd()
     _get_comp_words_by_ref -n = cur
 
     case $cur in
-    if=*|of=*)
-        cur=${cur#*=}
-        _filedir
-        return 0
-        ;;
-    conv=*)
-        cur=${cur#*=}
-        COMPREPLY=( $( compgen -W 'ascii ebcdic ibm block unblock \
-            lcase notrunc ucase swab noerror sync' -- "$cur" ) )
-        return 0
-        ;;
+        if=*|of=*)
+            cur=${cur#*=}
+            _filedir
+            return 0
+            ;;
+        conv=*)
+            cur=${cur#*=}
+            COMPREPLY=( $( compgen -W 'ascii ebcdic ibm block unblock lcase
+                notrunc ucase swab noerror sync' -- "$cur" ) )
+            return 0
+            ;;
     esac
 
     _expand || return 0
 
     COMPREPLY=( $( compgen -W '--help --version' -- "$cur" ) \
-                $( compgen -W 'bs cbs conv count ibs if obs of seek skip'\
-                -S '=' -- "$cur" ) )
+                $( compgen -W 'bs cbs conv count ibs if obs of seek skip' \
+                           -S '=' -- "$cur" ) )
 } &&
 complete -F _dd -o nospace -o filenames dd
 
diff --git a/completions/dselect b/completions/dselect
index 8bea891..e33e5bd 100644
--- a/completions/dselect
+++ b/completions/dselect
@@ -27,7 +27,6 @@ _dselect()
             remove quit' -- "$cur" ) )
     fi
 
-
     return 0
 } &&
 complete -F _dselect -o filenames dselect
diff --git a/completions/postfix b/completions/postfix
index ec91c1a..d9de61d 100644
--- a/completions/postfix
+++ b/completions/postfix
@@ -51,13 +51,13 @@ _postmap()
     esac
 
     if [[ $cur == -* ]]; then
-        COMPREPLY=( $( compgen -W '-N -f -i -n -o -p -r -v -w -c -d -q'\
+        COMPREPLY=( $( compgen -W '-N -f -i -n -o -p -r -v -w -c -d -q' \
             -- "$cur" ) )
         return 0
     fi
 
     if [[ "$cur" == *:* ]]; then
-            COMPREPLY=( $( compgen -f -- "${cur#*:}" ) )
+        COMPREPLY=( $( compgen -f -- "${cur#*:}" ) )
     else
         len=${#cur}
         idx=0
@@ -143,7 +143,7 @@ _postconf()
     esac
 
     if [[ $cur == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A -a -b -c -d -e -h -m -l -n -t -v'\
+        COMPREPLY=( $( compgen -W '-A -a -b -c -d -e -h -m -l -n -t -v' \
             -- "$cur" ) )
         return 0
     fi
diff --git a/completions/python b/completions/python
index 9d8fcc9..4bcaa4c 100644
--- a/completions/python
+++ b/completions/python
@@ -43,8 +43,6 @@ _python()
             -U -v -V -W -x -c" -- "$cur" ) )
     fi
 
-
-
     return 0
 } &&
 complete -F _python -o filenames python
diff --git a/completions/sbcl b/completions/sbcl
index a43ec1f..2daf65e 100644
--- a/completions/sbcl
+++ b/completions/sbcl
@@ -11,11 +11,11 @@ _sbcl()
 
     # completing an option (may or may not be separated by a space)
     if [[ "$cur" == -* ]]; then
-    COMPREPLY=( $( compgen -W '--core --noinform --help --version \
-        --sysinit --userinit --eval --noprint --disable-debugger \
-        --end-runtime-options --end-toplevel-options ' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '--core --noinform --help --version
+            --sysinit --userinit --eval --noprint --disable-debugger
+            --end-runtime-options --end-toplevel-options ' -- "$cur" ) )
     else
-    _filedir
+        _filedir
     fi
 
     return 0
diff --git a/completions/shadow b/completions/shadow
index a3451b7..ffe66e3 100644
--- a/completions/shadow
+++ b/completions/shadow
@@ -14,7 +14,8 @@ _useradd()
     #       with -u/--uid
 
     case $prev in
-        -c|--comment|-h|--help|-e|--expiredate|-f|--inactive|-k|--key|-p|--password|-u|--uid|-Z|--selinux-user)
+        -c|--comment|-h|--help|-e|--expiredate|-f|--inactive|-k|--key|\
+        -p|--password|-u|--uid|-Z|--selinux-user)
             return 0
             ;;
         -b|--base-dir|-d|--home|-k|--skel)
@@ -64,7 +65,8 @@ _usermod()
     #       with -u/--uid
 
     case $prev in
-        -c|--comment|-d|--home|-e|--expiredate|-f|--inactive|-h|--help|-l|--login|-p|--password|-u|--uid|-Z|--selinux-user)
+        -c|--comment|-d|--home|-e|--expiredate|-f|--inactive|-h|--help|\
+        -l|--login|-p|--password|-u|--uid|-Z|--selinux-user)
             return 0
             ;;
         -g|--gid)
@@ -126,7 +128,8 @@ _chage()
     _split_longopt && split=true
 
     case $prev in
-        -d|--lastday|-E|--expiredate|-h|--help|-I|--inactive|-m|--mindays|-M|--maxdays|-W|--warndays)
+        -d|--lastday|-E|--expiredate|-h|--help|-I|--inactive|-m|--mindays|\
+        -M|--maxdays|-W|--warndays)
             return 0
             ;;
     esac

-- 
bash-completion



More information about the Bash-completion-commits mailing list