mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 08:41:13 +08:00
9367d4ff71
This does not include checks/function.fish because that currently includes a "; end" in a message that indent would remove, breaking the test.
9 lines
380 B
Fish
9 lines
380 B
Fish
function __fish_print_encodings -d "Complete using available character encodings"
|
|
if iconv --usage &>/dev/null # only GNU has this flag
|
|
# Note: GNU iconv changes its output to contain the forward slashes below when stdout is not a tty.
|
|
iconv --list | string replace -ra // ''
|
|
else # non-GNU
|
|
iconv --list | string replace -ra '\s+' '\n'
|
|
end
|
|
end
|