mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
make w3m and wget more XDG base dir spec compliant
This commit is contained in:
parent
170f24a116
commit
675dc0dbb1
6 changed files with 18 additions and 2 deletions
3
.cache/wget/wget-hsts
Normal file
3
.cache/wget/wget-hsts
Normal 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>
|
|
@ -43,6 +43,9 @@ alias sixel='img2sixel'
|
||||||
# quick to do
|
# quick to do
|
||||||
alias todo="$EDITOR ~/todo.md"
|
alias todo="$EDITOR ~/todo.md"
|
||||||
|
|
||||||
|
# this is so that w3m uses the correct XDG config location
|
||||||
|
alias w3m="w3m -config ~/.config/w3m/config"
|
||||||
|
|
||||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ls ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ls ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
|
||||||
# lsd instead of ls for colors/icons
|
# lsd instead of ls for colors/icons
|
||||||
alias ls='lsd -a'
|
alias ls='lsd -a'
|
||||||
|
@ -74,7 +77,10 @@ alias gd='git diff'
|
||||||
alias ga='git add .'
|
alias ga='git add .'
|
||||||
alias gph='git push && git push --tags'
|
alias gph='git push && git push --tags'
|
||||||
alias gpl='git pull'
|
alias gpl='git pull'
|
||||||
# can't spell git
|
|
||||||
|
# typos
|
||||||
|
alias gitcommit='git commit'
|
||||||
|
alias gitadd='git add'
|
||||||
alias gti='git'
|
alias gti='git'
|
||||||
alias gtt='git'
|
alias gtt='git'
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@ if [[ $(uname) == *"Linux"* ]]; then
|
||||||
pip_packages="/home/linuxbrew/.linuxbrew/lib/python$PYTHON_VERSION/site-packages"
|
pip_packages="/home/linuxbrew/.linuxbrew/lib/python$PYTHON_VERSION/site-packages"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Python ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
# python default install location when you do: pip$PYTHON_VERSION install --user package
|
# python default install location when you do: pip$PYTHON_VERSION install --user package
|
||||||
export PATH=$PATH:$HOME/.local/bin:/usr/local/bin
|
export PATH=$PATH:$HOME/.local/bin:/usr/local/bin
|
||||||
|
|
||||||
|
@ -45,5 +46,10 @@ export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
|
||||||
GOROOT=$HOME
|
GOROOT=$HOME
|
||||||
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
|
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
|
||||||
|
|
||||||
|
|
||||||
|
# ~~~~~~~~~~~~~~~~~~~~~~~~ other ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
# Make grade use XDG
|
# Make grade use XDG
|
||||||
export GRADLE_USER_HOME=$XDG_DATA_HOME/gradle
|
export GRADLE_USER_HOME=$XDG_DATA_HOME/gradle
|
||||||
|
|
||||||
|
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
|
||||||
|
|
1
.config/wget/wgetrc
Normal file
1
.config/wget/wgetrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
hsts-file = ~/.cache/wget/wget-hsts
|
|
@ -32,7 +32,7 @@ async def main(connection):
|
||||||
|
|
||||||
# send the command to the newly created split
|
# send the command to the newly created split
|
||||||
w3m = ("w3m -sixel -o auto_image=TRUE -o display_image=1 -T text/html"
|
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)
|
await right_pane.async_send_text(w3m)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue