diff options
Diffstat (limited to 'contrib/vpnc')
-rw-r--r-- | contrib/vpnc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/vpnc b/contrib/vpnc index aaf0300a..722fee3a 100644 --- a/contrib/vpnc +++ b/contrib/vpnc @@ -6,8 +6,7 @@ _vpnc() local cur prev COMPREPLY=() - cur=`_get_cword` - prev=${COMP_WORDS[COMP_CWORD-1]} + _get_comp_words_by_ref cur prev case $prev in --pfs) @@ -18,7 +17,7 @@ _vpnc() COMPREPLY=( $( compgen -W 'dh1 dh2 dh5' -- "$cur" ) ) return 0 ;; - --@(pid-file|script)) + --pid-file|--script) _filedir return 0 ;; |