Files
fish-shell/share/functions/__fish_print_encodings.fish
Johannes Altmanninger a53db72564 Mark private functions that don't need localization
See the next commit.

Part of #11833
2025-09-30 11:47:26 +02:00

10 lines
410 B
Fish

# localization: skip(private)
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