mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
65883e0e40
Mostly line breaks, one instance of tabs! For some reason clang-format insists on two spaces before a same-line comment? (I continue to be unimpressed with super-strict line length limits, but I continue to believe in automatic styling, so it is what it is) [ci skip]
9 lines
382 B
Fish
9 lines
382 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
|