>
> On my computer fish_config doesn’t seem to work. First of all the
> “current” theme that the web page show does not look like it looks in
> iTerm2. And if I pick a different theme, , and set it, and then press
> <enter> in the shell, no change.


How does it look different? Is the background color different? If so that's
to be expected. Fish as no way of determining (at least in a portable
fashion) what the background color your shell is using. That's why in the
upper right corner is a small palette of colors you can chose to see how
the theme looks with different background colors.

As for it not changing the theme in your shell that suggests you may be
using a plugin manager or have otherwise set your theme in a manner
incompatible with the fish web UI.

Regarding the fish_prompt.fish, you are simply overriding the one that is
> found in share/functions. Is there a way to call the “original” one in that
> scenario?


Yes, I'm simply overriding the default. You can't call the original (i.e.,
default) function because it has the same name and fish, like every other
shell, has no concept of namespaces. If you look at the default
fish_prompt.fish script you'll see that it constructs the prompt by calling
other functions. You may find that simply overriding one or more of those
functions is preferable to reimplementing the fish_prompt function. That
has the advantage that your changes are more likely to be used by prompts
from other themes since they all tend to call those functions.

In a related question, if I make a function called e.g. “cd” how do I call
> the actual underlying cd command?


By prefacing it with "builtin". Similarly, if you define a function with
the same name as an external command you want to run you preface that with
"command". Also, as of the 2.3.0 release you need to use the
"--shadow-builtin" flag to indicate you know that you're overriding a
builtin command.

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to