completion: complete directory parameters to directories only

i.e. don't complete to files if only directories are acceptable.
This commit is contained in:
Jani Nikula 2014-03-12 22:33:49 +02:00 committed by David Bremner
parent d5822224da
commit b6238f7e51

View file

@ -78,7 +78,7 @@ _notmuch_compact()
$split &&
case "${prev}" in
--backup)
_filedir
_filedir -d
return
;;
esac
@ -107,7 +107,7 @@ _notmuch_config()
;;
# these will also complete on config get, but we don't care
database.path)
_filedir
_filedir -d
;;
maildir.synchronize_flags)
COMPREPLY=( $(compgen -W "true false" -- ${cur}) )