summaryrefslogtreecommitdiffstats
path: root/.local/bin/rssadd
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-04-08 17:22:15 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-04-08 17:22:15 -0400
commit0948cd95f3dec7694186fb4fbe31a3c46289f7a0 (patch)
treef6a04c7eabbad04e7c11b3da8e683e69b9df5da2 /.local/bin/rssadd
parentf68f3119c1da3c6229c0c26e41b60f20ce7bc84a (diff)
parent422d106fbab5505f3810fa845f4f71547c7a4332 (diff)
downloadeibhear-0948cd95f3dec7694186fb4fbe31a3c46289f7a0.tar.gz
eibhear-0948cd95f3dec7694186fb4fbe31a3c46289f7a0.tar.zst
eibhear-0948cd95f3dec7694186fb4fbe31a3c46289f7a0.zip
Merge branch 'dennisleexyz-xdgify'
Diffstat (limited to '.local/bin/rssadd')
-rwxr-xr-x.local/bin/rssadd2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/rssadd b/.local/bin/rssadd
index 4ef31a4..924ee52 100755
--- a/.local/bin/rssadd
+++ b/.local/bin/rssadd
@@ -2,7 +2,7 @@
! echo "$1" | grep "https*://\S\+\.[A-Za-z]\+\S*" >/dev/null &&
notify-send "That doesn't look like a full URL." && exit
-RSSFILE="$HOME/.config/newsboat/urls"
+RSSFILE="${XDG_CONFIG_HOME:$HOME/.config}/newsboat/urls"
if awk '{print $1}' "$RSSFILE" | grep "^$1$" >/dev/null; then
notify-send "You already have this RSS feed."
else