a POSIX shell compatible gemini client (mirror of
git clone
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 89049491944e5316ed21ba134f68fc7f5ac2f259
parent ad8b540837fd23820d112aecfd9cd8267da221e7
Author: Rafael Escobar <>
Date:   Tue, 17 Aug 2021 21:23:14 -0300

Add support for XDG Base Directory Specification


Mastro | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/astro b/astro @@ -292,13 +292,15 @@ tput smcup trap "tput rmcup && exit" EXIT INT HUP # Configuration -mkdir -p "$HOME/.config/astro" -configfile="$HOME/.config/astro/astro.conf" +confighome=${XDG_CONFIG_HOME:-$HOME/.config} +mkdir -p "$confighome/astro" +configfile="$confighome/astro/astro.conf" -mkdir -p "$HOME/.cache/astro" -cachedir="$HOME/.cache/astro" +cachehome=${XDG_CACHE_HOME:-$HOME/.cache} +mkdir -p "$cachehome/astro" +cachedir="$cachehome/astro" -LESSKEY="$HOME/.config/astro/less.keys" +LESSKEY="$confighome/astro/less.keys" # This is the final binary form, to save space, it corresponds to: # o (49): to to a URL