Skip to content

Commit

Permalink
svn, svk, wget: use _iconv_charsets
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Apr 14, 2019
1 parent 2a93236 commit 63257ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions completions/_svn
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions completions/svk
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ _svk()
return
;;
--encoding)
COMPREPLY=( $(compgen -W \
'$(iconv --list | command sed -e "s@//@@;")' -- "$cur") )
_xfunc iconv _iconv_charsets
return
;;
esac
Expand Down
5 changes: 1 addition & 4 deletions completions/wget
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,7 @@ _wget()
return
;;
--local-encoding|--remote-encoding)
type -P xauth &>/dev/null && \
COMPREPLY=( $(compgen -W '$(iconv -l 2>/dev/null | \
command sed -e "s@/*\$@@" -e "s/[,()]//g" 2>/dev/null)' \
-- "$cur" ) )
type -P xauth &>/dev/null && _xfunc iconv _iconv_charsets
return
;;
--execute|-!(-*)e)
Expand Down

0 comments on commit 63257ba

Please sign in to comment.