zsh:profile: More XDG Base Dir env-vars + wgetrc

Use an environment variable and a wgetrc instead of an alias for wget to
enforce the XDG Base Directory Specification so that script calls
respect it too.
This commit is contained in:
2020-11-05 12:37:19 +01:00
parent 7753a1f7bf
commit 1491c998a3
3 changed files with 3 additions and 4 deletions

View File

@@ -12,10 +12,6 @@
alias feh='feh -.'
# XDG Base Directory Specification
alias wget='
wget --config="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc" \
--hsts-file="${XDG_DATA_HOME:-$HOME/.local/share}/wget/wget-hsts"
'
alias tmux='tmux -f "${XDG_CONFIG_HOME:-$HOME/.config}/tmux/tmux.conf"'
alias tmsu='tmsu -D "${XDG_DATA_HOME:-$HOME/.local/share}/tmsu/db"'
alias yarn='yarn --use-yarnrc "${XDG_CONFIG_HOME:-$HOME/.config}"/yarn/config'