prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="-h -c -s -l -d"
- lopts="--help --change --save --load --default --force --fingerprint --config"
- prfls=""
- if [ -d ~/.autorandr/ ]; then
+ 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'`"
+ elif [ -d ~/.config/autorandr ]; then
+ prfls="`find ~/.config/autorandr/* -maxdepth 1 -type d -printf '%f\n'`"
+ else
+ prfls=""
fi
case "${cur}" in
return 0
}
complete -F _autorandr autorandr
-complete -F _autorandr auto-disper
-