diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-12 20:48:08 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-12 20:48:25 +1200 |
commit | 2ef3471fdd9b8b2bbdb99c679d68d59b986108e6 (patch) | |
tree | 3d9074622b1597d8edeb760a70d8db022ccf7b64 | |
parent | Try a compatibility switch on vi/vim (diff) | |
download | dotfiles-2ef3471fdd9b8b2bbdb99c679d68d59b986108e6.tar.gz dotfiles-2ef3471fdd9b8b2bbdb99c679d68d59b986108e6.zip |
Use XDG for HTML tidy
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | tidy/profile.d/tidy.sh | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -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 |