Liking cljdoc? Tell your friends :D

xdg-rc.core


change-directoryclj

(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.
sourceraw docstring

get-classic-rc-fileclj

(get-classic-rc-file system)
source

get-homeclj

(get-home)
source

get-rc-fileclj

(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.
sourceraw docstring

get-xdg-bin-dirclj

(get-xdg-bin-dir)
source

get-xdg-cache-dirclj

(get-xdg-cache-dir)
source

get-xdg-config-dirclj

(get-xdg-config-dir)
source

get-xdg-config-homeclj

(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.
sourceraw docstring

get-xdg-data-dirclj

(get-xdg-data-dir)
source

get-xdg-dirclj

(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.
sourceraw docstring

get-xdg-rc-fileclj

(get-xdg-rc-file system)
source

lsclj

(ls dir)

List the files for the DIR that exist.

List the files for the DIR that exist.
sourceraw docstring

make-classic-rc-file!clj

(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.
sourceraw docstring

make-classic-rc-filenameclj

(make-classic-rc-filename system)
source

make-config!clj

(make-config! system {:keys [filename content]})
source

make-configs!clj

(make-configs! system ms)

Given a SYSTEM name, will ensure the directories/files exist.

Given a SYSTEM name, will ensure the directories/files exist.
sourceraw docstring

make-xdg-rc-file!clj

(make-xdg-rc-file! system content)

Just use a single config (runcom) type file.

Just use a single config (runcom) type file.
sourceraw docstring

make-xdg-rc-filenameclj

(make-xdg-rc-filename system)
source

make-xdg-rc-filename-pathclj

(make-xdg-rc-filename-path system)
source

original-user-dirclj

source

restore-directoryclj

(restore-directory)

To be used after `change-directory' to restore the last directory.

To be used after `change-directory' to restore the last directory.
sourceraw docstring

with-dirclj

(with-dir f)
source

with-directorycljmacro

(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`.
sourceraw docstring

with-homeclj

(with-home s)
(with-home s s2)

Will prefix with the home.

Will prefix with the home.
sourceraw docstring

with-xdgclj

(with-xdg s)
(with-xdg s s2)

Will prefix with the XDG home.

Will prefix with the XDG home.
sourceraw docstring

xdg-bin-dirclj

(xdg-bin-dir system)

Returns the proper XDG_BIN_HOME for SYSTEM.

Returns the proper XDG_BIN_HOME for SYSTEM.
sourceraw docstring

xdg-cache-dirclj

(xdg-cache-dir system)

Returns the proper XDG_CACHE_HOME for SYSTEM.

Returns the proper XDG_CACHE_HOME for SYSTEM.
sourceraw docstring

xdg-config-dirclj

(xdg-config-dir system)

Returns the proper XDG_CONFIG_HOME for SYSTEM.

Returns the proper XDG_CONFIG_HOME for SYSTEM.
sourceraw docstring

xdg-data-dirclj

(xdg-data-dir system)

Returns the proper XDG_DATA_HOME for SYSTEM.

Returns the proper XDG_DATA_HOME for SYSTEM.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close