summaryrefslogtreecommitdiff
path: root/completions/_svn
diff options
context:
space:
mode:
Diffstat (limited to 'completions/_svn')
-rw-r--r--completions/_svn13
1 files changed, 6 insertions, 7 deletions
diff --git a/completions/_svn b/completions/_svn
index 37b6b2b4..42e2dbe7 100644
--- a/completions/_svn
+++ b/completions/_svn
@@ -16,11 +16,11 @@ _svn()
proplist plist pl propset pset ps resolved revert \
status stat st switch sw unlock update up'
- if [[ $cword -eq 1 ]] ; then
+ if [[ $cword -eq 1 ]]; then
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '--version' -- "$cur" ) )
+ COMPREPLY=( $(compgen -W '--version' -- "$cur") )
else
- COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
+ COMPREPLY=( $(compgen -W "$commands" -- "$cur") )
fi
else
@@ -34,8 +34,7 @@ _svn()
return
;;
--encoding)
- COMPREPLY=( $( compgen -W '$( iconv --list | \
- command sed -e "s@//@@;" )' -- "$cur" ) )
+ _xfunc iconv _iconv_charsets
return
;;
--editor-cmd|--diff-cmd|--diff3-cmd)
@@ -196,10 +195,10 @@ _svn()
esac
options+=" --help --config-dir"
- COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
+ COMPREPLY=( $(compgen -W "$options" -- "$cur") )
else
if [[ "$command" == @(help|[h?]) ]]; then
- COMPREPLY=( $( compgen -W "$commands" -- "$cur" ) )
+ COMPREPLY=( $(compgen -W "$commands" -- "$cur") )
else
_filedir
fi