blob: 87971a854fecef6095912374b5f26e5ac5f92909 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#compdef dolphin
# SPDX-FileCopyrightText: 2022 ivan tkachenko <[email protected]>
#
# SPDX-License-Identifier: GPL-2.0-or-later
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_and_dirs' \
&& ret=0
return $ret
|