make w3m and wget more XDG base dir spec compliant

This commit is contained in:
JesseBot 2022-12-20 13:40:11 +01:00
parent 170f24a116
commit 675dc0dbb1
No known key found for this signature in database
GPG key ID: C01D207CE04D55D9
6 changed files with 18 additions and 2 deletions

3
.cache/wget/wget-hsts Normal file
View file

@ -0,0 +1,3 @@
# HSTS 1.0 Known Hosts database for GNU Wget.
# Edit at your own risk.
# <hostname> <port> <incl. subdomains> <created> <max-age>

View file

@ -43,6 +43,9 @@ alias sixel='img2sixel'
# quick to do
alias todo="$EDITOR ~/todo.md"
# this is so that w3m uses the correct XDG config location
alias w3m="w3m -config ~/.config/w3m/config"
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ls ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
# lsd instead of ls for colors/icons
alias ls='lsd -a'
@ -74,7 +77,10 @@ alias gd='git diff'
alias ga='git add .'
alias gph='git push && git push --tags'
alias gpl='git pull'
# can't spell git
# typos
alias gitcommit='git commit'
alias gitadd='git add'
alias gti='git'
alias gtt='git'

View file

@ -28,6 +28,7 @@ if [[ $(uname) == *"Linux"* ]]; then
pip_packages="/home/linuxbrew/.linuxbrew/lib/python$PYTHON_VERSION/site-packages"
fi
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Python ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# python default install location when you do: pip$PYTHON_VERSION install --user package
export PATH=$PATH:$HOME/.local/bin:/usr/local/bin
@ -45,5 +46,10 @@ export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
GOROOT=$HOME
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
# ~~~~~~~~~~~~~~~~~~~~~~~~ other ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Make grade use XDG
export GRADLE_USER_HOME=$XDG_DATA_HOME/gradle
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"

1
.config/wget/wgetrc Normal file
View file

@ -0,0 +1 @@
hsts-file = ~/.cache/wget/wget-hsts

View file

@ -32,7 +32,7 @@ async def main(connection):
# send the command to the newly created split
w3m = ("w3m -sixel -o auto_image=TRUE -o display_image=1 -T text/html"
f" -F {args.html_file} && exit \n")
f" -o confirm_qq=false -F {args.html_file} && exit \n")
await right_pane.async_send_text(w3m)