(change-directory dir)
Change the active directory. Use `restore-directory' to go back to the prior defaults.
Change the active directory. Use `restore-directory' to go back to the prior defaults.
(get-rc-file system)
(get-rc-file system preference)
Load the user RC file for SYSTEM, with preference to XDG by default. Pass in the optional second argument :classic to flip priority.
Load the user RC file for SYSTEM, with preference to XDG by default. Pass in the optional second argument :classic to flip priority.
(get-xdg-config-home)
Get the XDG_CONFIG_HOME or HOME/.config if its not defined.
Get the XDG_CONFIG_HOME or HOME/.config if its not defined.
(get-xdg-dir env alt)
Get the XDG_CONFIG_HOME or HOME/.config if its not defined.
Get the XDG_CONFIG_HOME or HOME/.config if its not defined.
(ls dir)
List the files for the DIR that exist.
List the files for the DIR that exist.
(make-classic-rc-file! system content)
Use the old style home directory location for RC file.
Use the old style home directory location for RC file.
(make-configs! system ms)
Given a SYSTEM name, will ensure the directories/files exist.
Given a SYSTEM name, will ensure the directories/files exist.
(make-xdg-rc-file! system content)
Just use a single config (runcom) type file.
Just use a single config (runcom) type file.
(restore-directory)
To be used after `change-directory' to restore the last directory.
To be used after `change-directory' to restore the last directory.
(with-directory dir & r)
Run a command with directory DIR changed during form evaluation. While some calls in Clojure/Java work off of the `user.dir' property, others require changing the active directory with the POSIX interface chdir.
POTENTIAL UNSAFE TIMING ISSUE: Evaluation of a form that relies on chdir will not work properly if the chdir of POSIX is reset too quickly. Therefore this thread will only reset the original chdir POSIX call 1 second after evaluation of the form.
For a more granular control, use the explicit function based variant change-directory
and restore-directory
.
Run a command with directory DIR changed during form evaluation. While some calls in Clojure/Java work off of the `user.dir' property, others require changing the active directory with the POSIX interface chdir. POTENTIAL UNSAFE TIMING ISSUE: Evaluation of a form that relies on chdir will not work properly if the chdir of POSIX is reset too quickly. Therefore this thread will only reset the original chdir POSIX call 1 second after evaluation of the form. For a more granular control, use the explicit function based variant `change-directory` and `restore-directory`.
(with-home s)
(with-home s s2)
Will prefix with the home.
Will prefix with the home.
(with-xdg s)
(with-xdg s s2)
Will prefix with the XDG home.
Will prefix with the XDG home.
(xdg-bin-dir system)
Returns the proper XDG_BIN_HOME for SYSTEM.
Returns the proper XDG_BIN_HOME for SYSTEM.
(xdg-cache-dir system)
Returns the proper XDG_CACHE_HOME for SYSTEM.
Returns the proper XDG_CACHE_HOME for SYSTEM.
(xdg-config-dir system)
Returns the proper XDG_CONFIG_HOME for SYSTEM.
Returns the proper XDG_CONFIG_HOME for SYSTEM.
(xdg-data-dir system)
Returns the proper XDG_DATA_HOME for SYSTEM.
Returns the proper XDG_DATA_HOME for SYSTEM.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close