On Jan 10, 2008 5:24 PM, Steven Knight <[EMAIL PROTECTED]> wrote:
>
>
> On Tue, 2008-01-08 at 16:02 +0100, Axel Liljencrantz wrote:
> > On Jan 8, 2008 3:25 PM, Giorgio Lando <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > Initially I liked the contents of the fish_greeting variables, but
> > after
> > > > a while I wanted it to clear ( empty ).
> > > >
> > > > So I added
> > > > set -e fish_greeting
> > > > to $HOME/.config/fish/config.fish
> > >
> > > I think that you are never supposed to configure that file. Fish
> > manages
> > > variables through an always running daemon and remember you choices.
> >
> > Actually, config.fish is ok to touch, that is where you'd put any
> > startup commands you like, though you very rarely have to. The file
> > that you should not touch is the fishd file.
> >
> > >
> > > Moreover, I do not think that you can remove the variable, you need
> > to
> > > blank it.
> > >
> > > Just type in a fish interactive shell:
> > > set fish_greeting ""
> > >
> > > and the greeting will be blank forever. Do it for each user of the
> > > system.
> >
> > Yes, that works. What is happening is this:
> >
> > On startup, if fish notices that you don't have a greeting, it assigns
> > you the default one. As you said, to skip the greeting, define the
> > greeting variable to be empty instead of removing it.
> >
> > This is a pretty stupid behavior from fish. The correct way to do it
> > would be to only assign the default value to the greeting _once_, on
> > the first startup of fish. I'll update this.
>
>
> Hi,
>
> Thanks for the update.
>
> However I'm still encountering this problem.
>
> Upon starting fish, I get this error message:
>
> switch: Expected exactly one argument, got 0
> /net/home/rcc/skk/local/stow/fish/share/fish/functions/__fish_config_interactive.fish
>  (line 149):       switch $fish_greeting
>
> ^
> in function "__fish_config_interactive",
>         called on line 104 of file
> "/net/home/rcc/skk/local/stow/fish/share/fish/config.fish",
>
> in function "__fish_on_interactive",
>         called on standard input,
>
>
> At present, my $HOME/.config/fish/fishrc file contains no references to
> fish_greeting nor does the output of "set -n".
>

Oh, right. I hadn't though about that. The fish init scripts still
assume that fish_greeting is set. I have added a check for this.
Fixed.

Thanks for the report.

> Am I doing something wrong?
>

Nope. I am. :-)

Axel

> For now, I'm commenting out the switch block in
> __fish_config_interactive.fish.  Of course, this isn't the best solution
> to my problem.
>
> Thanks,
>
>
> >
> --
> ===================================================
> | Steven Knight                   [EMAIL PROTECTED]  |
> | UNH Research Computing Center   603-862-3042    |
> ===================================================
>
>
>
> -------------------------------------------------------------------------
>
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to