From 5c92109015b30d700873eb05c161fea211d53dc8 Mon Sep 17 00:00:00 2001 From: urosm Date: Wed, 31 Jul 2024 12:57:26 +0200 Subject: [PATCH] .profile: conform aspell to xdg-basedir --- .profile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.profile b/.profile index b8e3f9f..943bf6d 100644 --- a/.profile +++ b/.profile @@ -38,6 +38,13 @@ export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc # .npm/, .npmrc export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc +# .aspell.conf etc. +aspell_data_dir="$XDG_DATA_HOME"/aspell +if [ ! -d "$aspell_data_dir" ]; then + mkdir -p "$aspell_data_dir" +fi +export ASPELL_CONF="per-conf $XDG_CONFIG_HOME/aspell/aspell.conf; personal $aspell_data_dir/sl.pws; repl $aspell_data_dir/sl.prepl" + # editor export EDITOR=vi