aspell
creates following files in my home:
.aspell.en.prepl
.aspell.en.pws
How can I change the location globally, i.e. to $HOME/.cache/aspell
?
I need to reference the $HOME
environment variables in /etc/aspell.conf
. I tried the following, but it does not seem to work:
home-dir $HOME/.cache/
How can I set home-dir
globally, to be each users ~/.cache
directory ?
CLARIFICATION
I don't run aspell
manually. Applications such as Thunderbird run it themselves. Therefore, using a shell alias is not really a solution.
/home/user/.cache
works. What you can do instead is to create a wrapper that would replace$(command -v aspell)
and would look something like that:HOME=~/.cache aspell "@$"
aspell
directly you can still follow my advice and replace aspell with a wrapper.aspell
with a working directory that is anything other than your home directory?