by stringy · 11y ago · 0 comments
bash$ wc <(grep script /usr/share/dict/linux.words)
fish$ wc (grep script /usr/share/dict/linux.words | psub)
The sugar in the bash form might be nice, but it isn't required. >(wc)
which is obviously only useful with a few things like tee, but still useful.dag from GitHub came up with[0] a quick way of using psub:
bind \es 'commandline -ij "(|psub)"; commandline -f backward-word backward-word'
[0]: https://github.com/fish-shell/fish-shell/issues/719#issuecom...