Hi! At Sun, 27 Nov 2005 09:28:53 -0800, Kenji Miyamoto wrote: > > Is there a way to change the default home directory of Links2?
I am a bit unsure what "default home directory" means in this case. I use the following shell function to change the default start page of links (and of no other browser) to $HOME/www/index.html links() { if [ $# -eq 0 ]; then /usr/bin/env links $HOME/www/index.html else /usr/bin/env links "$@" fi } The modification for some other default start page - which can as well be a directory as of a file - is obvious. That much on a modified start page. Now on a modified directory links is started in. For this replace both /usr/bin/env calls by (cd $DirectoryInQuestion; /usr/bin/env ...) where $DirectoryInQuestion is the default home. This changes to the given directory, starts links and after termination of links automagically changes back to the initial directory (the magic is done by the parentheses that start both commands in a child shell that is terminated immediately after termination of links). HTH, Josef 'Jupp' Schugt _______________________________________________ links-list mailing list links-list@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/links-list