Re: changing lynx default homepage from the comand line?

Bela Lubkin <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
Karen Lewellen wrote:

> since this is not my system, 
> I have no idea where the lynx.cfg file is.

While in Lynx, hit 'o' for options.  Near the very bottom is a line,

    View the file lynx.cfg.

Following the 'lynx.cfg' link, you see a rendition of the active
portions of your lynx.cfg.  Near the top of that is a comment:

    #Your primary configuration /path/to/system/lynx.cfg

====

We can reduce that somewhat.  'LYNXCFG:/' is the URL used in that
'lynx.cfg' link; we can dump that from the shell:

    $ lynx -dump LYNXCFG:/ | grep primary.config
    #Your primary configuration [4]/path/to/system/lynx.cfg

One way to make use of this:

    $ cd $HOME
    $ echo 'INCLUDE:/path/to/system/lynx.cfg' > .lynx_cfg
    $ echo 'STARTFILE:https://www.xyz.abc' >> .lynx_cfg
    $ lynx -cfg $HOME/.lynx_cfg   ### opens www.xyz.abc

This uses lynx.cfg's INCLUDE command to include the system lynx.cfg by
reference.  That way it will keep up with any changes the system
administrator might make (as long as they don't replace the lynx binary
with one compiled to look in a different location).  Setting STARTFILE
*after* the INCLUDE ensures that your setting overrides the system's.

Now all you need is one of the various alias techniques mentioned by
others...

>Bela<

_______________________________________________
Lynx-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lynx-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.