]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - bash_completion/autorandr
Removed legacy autorandr (see the legacy branch)
[deb_pkgs/autorandr.git] / bash_completion / autorandr
index 151c59698807c5b7de8d2a7ebc43b5677d88ecb0..61de0bb4f9344322b5c0d46e68975fab2ae5fac4 100644 (file)
@@ -9,7 +9,7 @@ _autorandr ()
        prev="${COMP_WORDS[COMP_CWORD-1]}"
 
        opts="-h -c -s -l -d"
-       lopts="--help --change --save --load --default --force --fingerprint"
+       lopts="--help --change --save --load --default --force --fingerprint --config --dry-run"
        if [ -d ~/.autorandr ]; then
                prfls="`find ~/.autorandr/* -maxdepth 1 -type d -printf '%f\n'`"
        else
@@ -34,7 +34,7 @@ _autorandr ()
 
        case "${prev}" in
                -l|--load|-d|--default)
-                       COMPREPLY=( $( compgen -W "${prfls}" ) )
+                       COMPREPLY=( $( compgen -W "${prfls}" -- $cur ) )
                        return 0
                        ;;
                *)
@@ -44,5 +44,3 @@ _autorandr ()
        return 0
 }
 complete -F _autorandr autorandr
-complete -F _autorandr auto-disper
-