Replies: 2 comments 3 replies
-
I do not think this is worth a breaking change or parallel code path |
Beta Was this translation helpful? Give feedback.
-
You should be able to turn the session directory into a symlink so that the actual files are stored elsewhere.
Both of these can be set to a custom path. (
IMO no, since it'd be a breaking change. For reference, this is what I have in my shell profile to take non-config files out of export NNN_TMPFILE="${XDG_CACHE_HOME}/nnn/lastdir" # cd on quit
export NNN_FIFO="${XDG_CACHE_HOME}/nnn/nnn.fifo" # temp file thingy
export NNN_SEL="${XDG_CACHE_HOME}/nnn/selection" # selection file
export NNN_FINDHIST="${XDG_CACHE_HOME}/nnn/find_hist" # for finder plugin The |
Beta Was this translation helpful? Give feedback.
-
The latest version (0.8, 08/05/2021) of the XDG Base Directory specification introduces a new environment variable
$XDG_STATE_HOME
for "state" data that should persist between restarts but isn't necessary to backup or store in other locations such as "config" and "data". I feel like it might be worth making use of this for things like session files,.selection
and$NNN_TMPFILE
instead of the config directory.Beta Was this translation helpful? Give feedback.
All reactions