summaryrefslogtreecommitdiff
path: root/completions/vpnc
diff options
context:
space:
mode:
Diffstat (limited to 'completions/vpnc')
-rw-r--r--completions/vpnc23
1 files changed, 11 insertions, 12 deletions
diff --git a/completions/vpnc b/completions/vpnc
index b7b8c14a..5eb5be71 100644
--- a/completions/vpnc
+++ b/completions/vpnc
@@ -16,12 +16,12 @@ _vpnc()
return
;;
--vendor)
- COMPREPLY=( $( compgen -W 'cisco netscreen' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W 'cisco netscreen' -- "$cur") )
return
;;
--natt-mode)
- COMPREPLY=( $( compgen -W 'natt none force-natt cisco-udp' \
- -- "$cur" ) )
+ COMPREPLY=( $(compgen -W 'natt none force-natt cisco-udp' \
+ -- "$cur") )
return
;;
--script|--pid-file|--ca-file)
@@ -29,23 +29,23 @@ _vpnc()
return
;;
--dh)
- COMPREPLY=( $( compgen -W 'dh1 dh2 dh5' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W 'dh1 dh2 dh5' -- "$cur") )
return
;;
--pfs)
- COMPREPLY=( $( compgen -W 'nopfs dh1 dh2 dh5 server' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W 'nopfs dh1 dh2 dh5 server' -- "$cur") )
return
;;
--ifmode)
- COMPREPLY=( $( compgen -W 'tun tap' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W 'tun tap' -- "$cur") )
return
;;
--debug)
- COMPREPLY=( $( compgen -W '0 1 2 3 99' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '0 1 2 3 99' -- "$cur") )
return
;;
--auth-mode)
- COMPREPLY=( $( compgen -W 'psk cert hybrid' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W 'psk cert hybrid' -- "$cur") )
return
;;
--ca-dir)
@@ -54,14 +54,13 @@ _vpnc()
;;
--password-helper)
compopt -o filenames
- COMPREPLY=( $( compgen -c -- "$cur" ) )
+ COMPREPLY=( $(compgen -c -- "$cur") )
return
;;
esac
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '$( _parse_help "$1" --long-help )' \
- -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '$(_parse_help "$1" --long-help)' -- "$cur") )
elif [[ "$cur" == */* ]]; then
# explicit filename
_filedir conf
@@ -74,7 +73,7 @@ _vpnc()
$reset
IFS=$'\n'
compopt -o filenames
- COMPREPLY=( $( compgen -W '${configs[@]}' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '${configs[@]}' -- "$cur") )
fi
} &&
complete -F _vpnc vpnc