From: Jani Nikula Date: Wed, 12 Mar 2014 20:33:49 +0000 (+0200) Subject: completion: complete directory parameters to directories only X-Git-Tag: 0.18_rc0~66 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b6238f7e510b26e49d7ba91c687ca22e2f07882d;p=notmuch.git completion: complete directory parameters to directories only i.e. don't complete to files if only directories are acceptable. --- diff --git a/completion/notmuch-completion.bash b/completion/notmuch-completion.bash index 59f1a3ea..d88c5e7d 100644 --- a/completion/notmuch-completion.bash +++ b/completion/notmuch-completion.bash @@ -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}) )