fish-shell/share/completions/iconv.fish
liljencrantz 048f903a9d Create common function for listing available character encodings, make sure it is used in all relevant places.
darcs-hash:20070921211051-75c98-5ff21df5b29e8a66ef0c4488afb96acfdb6f74a2.gz
2007-09-22 07:10:51 +10:00

10 lines
577 B
Fish

complete -c iconv -s f -l from-code --description "Convert from specified encoding" -x -a "(__fish_print_encodings)"
complete -c iconv -s t -l to-code --description "Convert to specified encoding" -x -a "(__fish_print_encodings)"
complete -c iconv -l list --description "List known coded character sets"
complete -c iconv -s o -l output --description "Output file" -r
complete -c iconv -l verbose --description "Print progress information"
complete -c iconv -l help --description "Display version and exit"
complete -c iconv -l version --description "Display help and exit"