These patches modify J’s default configuration to match my personal preferences. They are not required for J to function and may not be suitable for all users.
Patch: hidden-user-directory.patch
Changes the J user directory from ~/j9.7-user to
~/.j9.7-user (note the leading dot), making it a hidden
directory on Unix systems.
On Unix-like systems, directories beginning with a . are
hidden from normal directory listings. This keeps the home directory
cleaner by hiding J’s configuration and user files alongside other
dotfiles like .config, .local, etc.
The change is a single-line modification to
jlibrary/bin/profile.ijs:
NB. Before:
userx=. omitversion{::'/j9.7-user';'/j-user'
NB. After:
userx=. omitversion{::'/.j9.7-user';'/j-user'The omitversion variable controls whether the version
number is included in the path. With omitversion=0
(default), the path becomes ~/.j9.7-user. With
omitversion=1, it would be ~/j-user
(unchanged).
cd /path/to/jsource
git apply hidden-user-directory.patch.j9.7-user~/j9.7-user
directories are not automatically renamed; you may need to move your
existing user directory manually