On 10/15/07, Martin Bähr <[EMAIL PROTECTED]> wrote:
> On Mon, Oct 15, 2007 at 01:12:17PM +0200, Axel Liljencrantz wrote:
> > fish starts up
> > with no keybindings, the bindings are loaded by the init scripts. So
> > in other words, there will be no key bindings until you install fish.
>
> why is that? because fish looks for init scripts only in the install
> places? how about making it possible to specify a different location for
> init scripts on the commandline?
>

Right. On startup, fish loads 3 files:

DATADIR/fish/config.fish
SYSCONFDIR/fish/config.fish
XDG_CONFIG_HOME/fish/config.fish

DATADIR is usually /usr/share and SYSCONFDIR is usually /etc, both are
set up by autoconf. XDG_CONFIG_DIR is by default $HOME/.config, but
can be overridden by the user by setting the XDG_CONFIG_HOME
environment variable. These are meant to contain fish-internal
configuration, configuration by the sysadmin and user configuration,
respectively.

It would be possible to add a switch to read another startup file as
well, but that wouldn't really solve the problem, since one would also
have to update the fish_function_path to make sure fish autoloads the
new functions, update the PATH variable to find all the other commands
included with fish, etc..

Overall, fish consists of many separate modules. This is generally a
very good thing, since it means that each small component has a well
defined role and is by itself much easier to debug than if the whole
system was just a single monolith. But one of the drawbacks of this
design is that the system actually needs to be installed to work
properly, since otherwise fish can't find all the separate components.

Axel

> greetings, martin.
> --
> cooperative communication with sTeam      -     caudium, pike, roxen and unix
> offering: programming, training and administration   -  anywhere in the world
> --
> pike programmer   working in new zealand        open-steam.org|webhaven.co.nz
> unix system-      bahai.or.at                        iaeste.(tuwien.ac|or).at
> administrator     (caudium|gotpike).org                          is.schon.org
> Martin Bähr       http://www.iaeste.or.at/~mbaehr/
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to