Skip to content

Commit b3fda2e

Browse files
committed
FIXED: #163 installation as local IDE
1 parent 8fa095f commit b3fda2e

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

myswish.pl

+17-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/* Part of SWISH
22
33
Author: Jan Wielemaker
4-
5-
WWW: http://www.swi-prolog.org
6-
Copyright (C): 2019, VU University Amsterdam
7-
CWI Amsterdam
4+
5+
WWW: https://www.swi-prolog.org
6+
Copyright (C): 2019-2024, VU University Amsterdam
7+
CWI Amsterdam
8+
SWI-Prolog Solutions b.v.
89
All rights reserved.
910
1011
Redistribution and use in source and binary forms, with or without
@@ -48,11 +49,19 @@
4849
4950
## Installation
5051
51-
mkdir -p ~/lib/prolog
52-
cp myswish.pl ~/lib/prolog
53-
edit ~/lib/prolog/myswish.pl # fix path below
52+
This file must be installed in your personal library. The location can
53+
be found using the command below
54+
55+
?- absolute_file_name(app_config(lib), Dir, [solutions(all)]).
56+
57+
The default on non-Windows systems is ``~/.config/swi-prolog/lib`` and
58+
`myswish.pl` can be installed using these commands:
59+
60+
mkdir -p ~/.config/swi-prolog/lib
61+
cp myswish.pl ~/.config/swi-prolog/lib
62+
edit ~/.config/swi-prolog/lib/myswish.pl # fix path below
5463
swipl
55-
?- make_library_index('~/lib/prolog').
64+
?- make_library_index('~/.config/swi-prolog/lib').
5665
?- halt.
5766
5867
And test the result by starting Prolog in a __writable directory__ and

0 commit comments

Comments
 (0)