X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d55099ad47b8c0053042b5e1d04d1055483ae7e8..7c6b63d159ad8ea8cad5af53c402539151862cba:/completions/dolphin.zsh diff --git a/completions/dolphin.zsh b/completions/dolphin.zsh index 3433c5496..87971a854 100644 --- a/completions/dolphin.zsh +++ b/completions/dolphin.zsh @@ -6,13 +6,19 @@ local ret=1 +# complete both URL protocols and local directories +_urls_and_dirs() { + _urls + _directories +} + _arguments -C \ '(* -)'{-h,--help}'[Displays help on commandline options]' \ '--select[The files and folders passed as arguments will be selected.]' \ '--split[Dolphin will get started with a split view.]' \ '--new-window[Dolphin will explicitly open in a new window.]' \ '--daemon[Start Dolphin Daemon (only required for DBus Interface).]' \ - '*:: :_urls' \ + '*:: :_urls_and_dirs' \ && ret=0 return $ret