Skip to content

Commit b4d9c20

Browse files
committed
Move ~/.wget-hsts into cache and add wgetrc to manage it
1 parent dcb4213 commit b4d9c20

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

install.conf.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
# indent needed
1313
# XDG Paths
1414
- ${XDG_CONFIG_HOME}
15+
- ${XDG_CONFIG_HOME}/wget
1516
- ${XDG_CACHE_HOME}
17+
- ${XDG_CACHE_HOME}/wget
1618
- ${XDG_DATA_HOME}
1719
- ${XDG_DATA_HOME}/zsh
1820
- ${XDG_DATA_HOME}/vim
@@ -59,3 +61,5 @@
5961
${XDG_CONFIG_HOME}/ruby/pryrc: ruby/pryrc
6062
# npm
6163
${XDG_CONFIG_HOME}/npm/config: npm/config
64+
# wget
65+
${XDG_CONFIG_HOME}/wget/wgetrc: wget/wgetrc

wget/wgetrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# wget configuration
2+
# Move HSTS database to XDG cache directory
3+
hsts-file = ~/.local/cache/wget/wget-hsts
4+
5+
# Default download settings
6+
timeout = 60
7+
tries = 3
8+
9+
# Progress bar
10+
progress = bar

zsh/zshrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export IRBRC="$XDG_CONFIG_HOME/ruby/irbrc"
2222
export BUNDLE_USER_CONFIG="$XDG_CONFIG_HOME"/bundle
2323
export BUNDLE_USER_CACHE="$XDG_CACHE_HOME"/bundle
2424
export BUNDLE_USER_PLUGIN="$XDG_DATA_HOME"/bundle
25+
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
2526

2627
# autocompletion info:
2728
# https://github.com/dbrgn/tealdeer/blob/main/docs/src/installing.md#autocompletion

0 commit comments

Comments
 (0)