2015-05-07 19:28 GMT+02:00 Robert Carpenter <rob...@robacarp.com>:
> `env NAME=value command` is a perfectly acceptable system. It is
> *different*. But it is different for good reasons. ...
Generally yes, but in this case it surfaced a nasty problem: `man` knows
about fish commands because it's a function (`type man`);
when you prepend it with /usr/bin/env, it executes /usr/bin/man which fails
with the cryptic `No manual entry for for` :-(
This is a serious orthogonality fail. Similar things happen whenever
functions are used.
A lot of things fish uses functions for could better be written as scripts.
(would require fish to prepend a dir with its scripts to PATH).
Why don't we do it? Is it just an optimization?
In the particular case of `man`, I'm not sure why we need a wrapper to
temporarily set MANPATH — why not simply set MANPATH when fish launches?
----
Going back to the task of inhibiting man's pager, the simplest solution is:
man for | cat
or:
man -Pcat for
Keeping the highlighting of sections is tricky; the best approximation I
found is:
set -Ux MAN_KEEP_FORMATTING 1
set -Ux MANPAGER 'less --quit-if-one-screen --no-init'
(the `--no-init` makes the text stay on stdout after less is finished. I'm
not sure it's always a win but I'm going to try it.)
I'll admit, when I first started using fish-shell, I was frustrated by the
> fact that help opened the browser by default. But my workflow is frequently
> switching back and forth between the shell and chrome (read:
> stackoverflow). ...
I've occasionally found myself irritated enough to set -x BROWSER w3m,
though that's hardly a great experience.
Also, there is https://github.com/fish-shell/fish-shell/issues/342 which
breaks `help BUILTIN` for some users (me).
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users