startup: look for nanorc and history files also in the XDG directories
Simon Ochsenreither authored
When not finding a .nanorc file in the user's home directory, nano will
look for a nanorc file in $XDG_CONFIG_HOME and in the ~/.config/nano/
fallback directory.  And when not finding a .nano/ subdir in the user's
home directory, nano will look for (or create) the history files in
$XDG_DATA_HOME or in the ~/.local/share/nano/ fallback directory.

This is a partial implementation of the XDG Base Directory Specification:
https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

,
for the purpose of reducing the clutter in a user's home directory, and
to make it easier to back up just the configuration files.
Signed-off-by: default avatarSimon Ochsenreither <simon@ochsenreither.de>
Signed-off-by: default avatarBenno Schulenberg <bensberg@telfort.nl>
c16e79b6
Name Last commit Last update
..
Makefile.am organization: move all history-related stuff to its own file
browser.c tweaks: transform the token DISABLE_OPERATINGDIR to ENABLE_OPERATINGDIR
chars.c tweaks: transform the token DISABLE_JUSTIFY to ENABLE_JUSTIFY
color.c tweaks: transform the token DISABLE_COLOR to ENABLE_COLOR
cut.c tweaks: transform the token DISABLE_COLOR to ENABLE_COLOR
files.c tweaks: transform the token DISABLE_EXTRA to ENABLE_EXTRA
global.c startup: look for nanorc and history files also in the XDG directories
help.c tweaks: transform the token DISABLE_COLOR to ENABLE_COLOR
history.c startup: look for nanorc and history files also in the XDG directories
move.c tweaks: transform the token DISABLE_JUSTIFY to ENABLE_JUSTIFY
nano.c startup: look for nanorc and history files also in the XDG directories
nano.h tweaks: transform the token DISABLE_COLOR to ENABLE_COLOR
prompt.c tweaks: remove another bit of conditional compilation
proto.h startup: look for nanorc and history files also in the XDG directories
rcfile.c startup: look for nanorc and history files also in the XDG directories
search.c tweaks: transform the token DISABLE_COLOR to ENABLE_COLOR
text.c tweaks: transform the token DISABLE_COLOR to ENABLE_COLOR
utils.c startup: look for nanorc and history files also in the XDG directories
winio.c tweaks: transform the token DISABLE_EXTRA to ENABLE_EXTRA