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:
1
.config/wget/wgetrc
Normal file
1
.config/wget/wgetrc
Normal file
@@ -0,0 +1 @@
|
||||
hsts-file = /home/user/.local/share/wget/wget-hsts
|
||||
@@ -10,6 +10,8 @@ export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
|
||||
|
||||
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
|
||||
export GOPATH="$XDG_DATA_HOME"/go
|
||||
export MPLAYER_HOME="$XDG_CONFIG_HOME"/mplayer
|
||||
export WGETRC="$XDG_CONFIG_HOME"/wget/wgetrc
|
||||
|
||||
export HISTFILE="$XDG_DATA_HOME"/bash/history
|
||||
export LESSHISTFILE=/dev/null
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user