update separate env vars form bash and add to fish; add gl command; update known_hosts

This commit is contained in:
2025-08-22 21:51:04 +02:00
parent 81bb6ab468
commit 0e36a3a145
5 changed files with 61 additions and 53 deletions

View File

@@ -2,55 +2,7 @@
# ~/.bashrc
#
export PATH="$PATH:$HOME/.local/bin"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_BIN_HOME="$HOME/.local/bin"
export XDG_MUSIC_DIR="$HOME/Music"
export XDG_DOCUMENTS_DIR="$HOME/Documents"
# export XDG_PICTURES_DIR="$HOME/Media/images"
# export XDG_VIDEOS_DIR="$HOME/Media/videos"
# fix ansible dirs
export ANSIBLE_HOME="${XDG_CONFIG_HOME}/ansible/home"
export ANSIBLE_CONFIG="${XDG_CONFIG_HOME}/ansible/ansible.cfg"
export ANSIBLE_GALAXY_CACHE_DIR="${XDG_CACHE_HOME}/ansible/galaxy_cache"
#NOTE: for the tmp dir on remotes sould be configuard in ansible.cfg
# fix rust dirs
export RUSTUP_HOME="$HOME/.local/rust/rustup"
export CARGO_HOME="$HOME/.local/rust/cargo"
# fix discord dirs
# export DISCORD_USER_DATA_DIR="${XDG_DATA_HOME}"
# fix docker dirs
export DOCKER_CONFIG="${XDG_CONFIG_HOME}/docker"
# fix screen dirs
export SCREENRC="${XDG_CONFIG_HOME}/screen/screenrc"
export SCREENDIR="${XDG_RUNTIME_DIR}/screen"
# fix texlive dirs
export TEXMFHOME="${XDG_DATA_HOME}/texmf"
export TEXMFVAR="${XDG_CACHE_HOME}/texlive/texmf-var"
export TEXMFCONFIG="${XDG_CONFIG_HOME}/texlive/texmf-config"
# fix wget dirs
export WGETRC="${XDG_CONFIG_HOME}/wgetrc"
alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
# fix npm dirs
export NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/npmrc"
# fix gnupg dirs
#TODO: test this
# export GNUPGHOME="${XDG_DATA_HOME}/gnupg"
# fix java dirs
export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=${XDG_CONFIG_HOME}/java"
. "$HOME/.config/env"
# If not running interactively, don't do anything
[[ $- != *i* ]] && return