aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-12 20:48:08 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-12 20:48:25 +1200
commit2ef3471fdd9b8b2bbdb99c679d68d59b986108e6 (patch)
tree3d9074622b1597d8edeb760a70d8db022ccf7b64
parentTry a compatibility switch on vi/vim (diff)
downloaddotfiles-2ef3471fdd9b8b2bbdb99c679d68d59b986108e6.tar.gz
dotfiles-2ef3471fdd9b8b2bbdb99c679d68d59b986108e6.zip
Use XDG for HTML tidy
-rw-r--r--Makefile4
-rw-r--r--tidy/profile.d/tidy.sh2
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bc81edca..c4bd2a33 100644
--- a/Makefile
+++ b/Makefile
@@ -541,8 +541,10 @@ install-terminfo:
-exec tic -- {} \;
install-tidy: install-sh
+ mkdir -p $(HOME)/.profile.d
cp -p -- tidy/profile.d/* $(HOME)/.profile.d
- cp -p -- tidy/tidyrc $(HOME)/.tidyrc
+ mkdir -p $(XDG_CONFIG_HOME)/tidy
+ cp -p -- tidy/tidyrc $(XDG_CONFIG_HOME)/tidy/tidyrc
install-tmux: tmux/tmux.conf install-terminfo
cp -p -- tmux/tmux.conf $(HOME)/.tmux.conf
diff --git a/tidy/profile.d/tidy.sh b/tidy/profile.d/tidy.sh
index 177a8124..664a6536 100644
--- a/tidy/profile.d/tidy.sh
+++ b/tidy/profile.d/tidy.sh
@@ -1,3 +1,3 @@
# Set a configuration file path for tidy(1)
-HTML_TIDY=$HOME/.tidyrc
+HTML_TIDY=${XDG_CONFIG_HOME:-$HOME/.config}/tidy/tidyrc
export HTML_TIDY