commit 272217316cd3bd1898a1f25cf8db598d52f28f97
parent a393d2b9cd984ae048c8b7eb5a1f5fca517fa4e8
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Sun, 28 Mar 2021 20:45:14 -0700
Use XDG_DATA_HOME for RSS/atom feed setup
- Fix the use of XDG_DATA_DIR in upfeed
- Use XDG_DATA_HOME instead of dalias in the fed shell function
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/local/bin/.local/bin/upfeed b/local/bin/.local/bin/upfeed
@@ -10,7 +10,7 @@
# `$XDG_CONFIG_HOME/upfeedrc'. Configuration files may contain blank
# lines or comments (`#') and are of the format `<name>[ \t]+<url>'.
-prefix="${XDG_DATA_DIR:-$HOME/.local/share}/feed"
+prefix="${XDG_DATA_HOME:-$HOME/.local/share}/feed"
rc="${XDG_CONFIG_HOME:-$HOME/.config}/upfeedrc"
update() {
diff --git a/local/shell/.local/share/shell/etc b/local/shell/.local/share/shell/etc
@@ -1,6 +1,6 @@
# shell functions
-fed() (cd "$(dalias feed)" && feed "$@")
+fed() (cd "${XDG_DATA_HOME:-$HOME/.local/share}/feed" && feed "$@")
hfmt() lynx -dump "${@:--stdin}"
loop() while eval "$@"; do done
wloop() while { read && eval "$@" ;}; do done