fish-shell/share
Mahmoud Al-Qudsi 6e36b20e42 Optimize __fish_complete_suffix and fix duplicate listings
With a blank $suff (i.e. complete all files), __fish_complete_suffix
returned directories twice, once with the trailing `/` and once without.
This fixes that, and additionally speeds up the code by no longer
shelling out to `sort -u` as we no longer rely on brace expansion to
enumerate directories and files simultaneously.

In general, this behavior would occur when a directory exists that
matches the suffix search pattern (so a dir named 'foo.bar' with a
search pattern '.bar' would return 'foo.bar' twice).

Runtime has dropped from ~22ms to ~8ms on my machine, while also
returning more correct results.
2018-06-18 23:55:18 -05:00
..
completions Add completions for FreeBSD's kldload 2018-06-18 21:01:05 -05:00
functions Optimize __fish_complete_suffix and fix duplicate listings 2018-06-18 23:55:18 -05:00
groff workaround broken groff man page config 2016-10-19 13:43:04 -07:00
tools Remove ^ redirection from sample prompts 2018-04-28 18:16:35 +02:00
__fish_build_paths.fish.in Rename "snippets" to "conf" internally, and document them as snippets 2016-04-06 09:33:09 +08:00
config.fish Read conf.d snippets as last part of share/config.fish 2018-06-14 22:55:52 +02:00
lynx.lss Install custom LSS script to /usr/local/share/fish on make install 2017-09-26 14:31:11 -05:00