fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
410 B9 linesraw
1# localization: skip(private)
2function __fish_print_encodings -d "Complete using available character encodings"
3    if iconv --usage &>/dev/null # only GNU has this flag
4        # Note: GNU iconv changes its output to contain the forward slashes below when stdout is not a tty.
5        iconv --list | string replace -ra // ''
6    else # non-GNU
7        iconv --list | string replace -ra '\s+' '\n'
8    end
9end