mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-12-01 05:29:53 +08:00
#36 vpnc: remove unneeded wrapping function
This commit is contained in:
1 parent
a415d4194c
commit
58bd504348
1 file changed
+3
-8
@@ -42,11 +42,6 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
_vpnc-connect() {
|
||||
local confs
|
||||
confs=(/etc/vpnc/*.conf(:t:s/\.conf/)) # FIXME /etc/vpnc/ is only accessible to root, how do we deal with this ?
|
||||
_describe -t "confs" "conf" confs && return 0
|
||||
}
|
||||
|
||||
_vpnc-connect "$@"
|
||||
|
||||
# FIXME /etc/vpnc/ is only accessible to root, how do we deal with this ?
|
||||
local confs; confs=(/etc/vpnc/*.conf(:t:s/\.conf/))
|
||||
_describe -t confs 'VPNC conf' confs
|
||||
Reference in new issue
Block a user