Re: changing lynx default homepage from the comand line?

Karen Lewellen <[email protected]>
Newsgroups gmane.comp.web.lynx.devel
Message-ID <[email protected]>
because this is not my service I wish to tamper with config files as 
little  as possible.
If there is not a command line only method to accomplish this task, much 
like  the -useragent one, then never mind.
thanks for all the ideas but  again  I am not interested in altering 
lynx.cfg in any fashion.
Karen


On Fri, 15 Nov 2019, Tim Chase wrote:

> Karen,
>
> You can combine Thorsten's advice to use "-cfg=FILENAME" with my
> previous shell-alias suggestion, which is what I've done in the past
> to specify a local config file.  With that in place, you can set your
> default home-page in your local lynx config file (say, ~/.lynx.cfg)
>
>  echo "STARTFILE:https://example.com" >> ~/.lynx.cfg
>
> and then have your function/alias specify the config file:
>
>  lynx() { command lynx -cfg=$HOME/.lynx.cfg "$@" ; }
>
> I happen to like the TEXTFIELDS_NEED_ACTIVATION:TRUE set in my .cfg
> file too, so this is how I get that behavior every time.
>
> -tim
>
>
> On 2019-11-15 22:56, Thorsten Glaser wrote:
>> Karen Lewellen dixit:
>>
>>> I am seeking a command line method  to override the site  listed
>>> as the homepage for lynx regularly,  i. e. the page that appears
>>> if i just entre lynx.
>>
>> Then don’t enter just lynx ;-)
>>
>> Otherwise, you can override the homepage in the lynx.cfg file.
>> Since you’re on a shellserver you cannot do that system-wide,
>> but you can copy the system-wide one into your home directory
>> and use the -cfg=FILENAME option to point to the changed file.
>>
>>> The idea is  to change this  default homepage, not just simply
>>> visit a new site once.
>>
>> But the “homepage” is only shown if you don’t tell it a site
>> to visit when starting.
>>
>> It’s probably easiest to make an alias, something like this:
>>
>> echo "alias 'ly=lynx http://the.new.start.site'" >>~/.bashrc
>>
>> Then typing ly will start lynx with the other start page.
>> Easier than doing the config dance, unless you need that anyway.
>>
>> bye,
>> //mirabilos
>> --
>> FWIW, I'm quite impressed with mksh interactively. I thought it was
>> much *much* more bare bones. But it turns out it beats the living
>> hell out of ksh93 in that respect. I'd even consider it for my
>> daily use if I hadn't wasted half my life on my zsh setup. :-) --
>> Frank Terbeck in #!/bin/mksh
>>
>> _______________________________________________
>> Lynx-dev mailing list
>> [email protected]
>> https://lists.nongnu.org/mailman/listinfo/lynx-dev
>
>
>
_______________________________________________
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.