2023-06-25 11:21:14 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
# shellcheck disable=2155
|
2020-07-15 13:50:56 +00:00
|
|
|
|
2022-03-21 21:20:12 +00:00
|
|
|
set -a
|
2023-01-02 20:08:50 +00:00
|
|
|
#. "/etc/profile"
|
2021-04-01 17:00:33 +00:00
|
|
|
. "$HOME/.config/user-dirs.dirs"
|
2024-04-30 20:57:39 +00:00
|
|
|
|
|
|
|
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
|
|
|
export XDG_CACHE_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
2024-08-10 14:04:30 +00:00
|
|
|
export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
|
2024-04-30 20:57:39 +00:00
|
|
|
|
2021-04-01 17:00:33 +00:00
|
|
|
. "$XDG_CONFIG_HOME/locale.conf"
|
2022-03-21 21:20:12 +00:00
|
|
|
set +a
|
2021-02-18 11:00:51 +00:00
|
|
|
|
2023-06-03 00:27:30 +00:00
|
|
|
export AUTOSTART_DISPLAY=''
|
2024-08-10 14:04:30 +00:00
|
|
|
export ANSIBLE_HOME="$XDG_DATA_HOME/ansible"
|
2022-03-21 21:20:12 +00:00
|
|
|
|
2024-01-27 19:44:38 +00:00
|
|
|
export BASH_COMPLETION_USER_DIR="$XDG_DATA_HOME/bash-completion"
|
2022-03-21 21:20:12 +00:00
|
|
|
export BEMENU_OPTS="--tb '#6272a4'\
|
|
|
|
--tf '#f8f8f2'\
|
|
|
|
--fb '#282a36'\
|
|
|
|
--ff '#f8f8f2'\
|
|
|
|
--nb '#282a36'\
|
|
|
|
--nf '#6272a4'\
|
|
|
|
--hb '#44475a'\
|
|
|
|
--hf '#50fa7b'\
|
|
|
|
--sb '#44475a'\
|
|
|
|
--sf '#50fa7b'\
|
|
|
|
--scb '#282a36'\
|
|
|
|
--scf '#ff79c6'\
|
2024-01-25 14:23:05 +00:00
|
|
|
--list 25\
|
|
|
|
--ignorecase\
|
|
|
|
--no-overlap\
|
|
|
|
-P '>' -p ''"
|
2021-05-24 21:15:38 +00:00
|
|
|
|
2024-08-10 14:04:30 +00:00
|
|
|
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
|
|
|
|
2024-02-20 02:56:06 +00:00
|
|
|
export DFT_DISPLAY="side-by-side-show-both"
|
2023-02-02 22:26:51 +00:00
|
|
|
export DMENU="bemenu"
|
2021-10-13 21:27:31 +00:00
|
|
|
export DOCKER_BUILDKIT=1
|
2024-08-10 14:04:30 +00:00
|
|
|
export DOCKER_CONFIG="$XDG_CONFIG_HOME/docker"
|
2021-03-19 10:56:50 +00:00
|
|
|
|
2023-06-25 11:21:14 +00:00
|
|
|
export EDITOR="$(which vim)"
|
2020-12-23 15:39:36 +00:00
|
|
|
|
2023-06-25 11:21:14 +00:00
|
|
|
export HOSTNAME="$(cat /proc/sys/kernel/hostname)"
|
2020-12-23 15:39:36 +00:00
|
|
|
|
2023-06-25 11:21:14 +00:00
|
|
|
export MAKEFLAGS="-j$(grep -c ^processor /proc/cpuinfo)"
|
2023-03-20 11:32:57 +00:00
|
|
|
export MOAR="--style=dracula"
|
2023-07-06 22:40:25 +00:00
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
2020-12-23 15:39:36 +00:00
|
|
|
|
2023-11-09 01:42:38 +00:00
|
|
|
export NIXPKGS_ALLOW_UNFREE=1
|
2023-11-09 01:57:25 +00:00
|
|
|
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npmrc"
|
2023-11-09 01:42:38 +00:00
|
|
|
|
2021-04-09 17:15:28 +00:00
|
|
|
export QT_QPA_PLATFORMTHEME="qt5ct"
|
|
|
|
|
2024-02-15 18:27:18 +00:00
|
|
|
export PASSWORD_STORE_ENABLE_EXTENSIONS=true
|
2024-08-24 11:39:59 +00:00
|
|
|
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
|
2024-08-10 14:04:30 +00:00
|
|
|
export PSQL_HISTORY="$XDG_STATE_HOME/psql_history"
|
|
|
|
export PYTHON_HISTORY="$XDG_STATE_HOME/python_history"
|
|
|
|
|
|
|
|
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
|
2024-02-15 18:27:18 +00:00
|
|
|
|
2024-03-08 20:33:36 +00:00
|
|
|
export STCONFDIR="$XDG_CONFIG_HOME/syncthing"
|
|
|
|
export STDATADIR="$XDG_DATA_HOME/syncthing"
|
|
|
|
export STNODEFAULTFOLDER="true"
|
|
|
|
|
2021-04-30 14:31:30 +00:00
|
|
|
export TERMINAL="alacritty"
|
2023-03-09 11:57:37 +00:00
|
|
|
export TIME_STYLE="long-iso"
|
2021-04-16 10:07:15 +00:00
|
|
|
|
2022-07-29 17:22:47 +00:00
|
|
|
export VIMINIT="if has('nvim') | source $XDG_CONFIG_HOME/nvim/init.lua | else | source $XDG_CONFIG_HOME/vim/vimrc | endif"
|
2020-12-23 15:39:36 +00:00
|
|
|
|
2024-01-28 20:38:16 +00:00
|
|
|
export XDG_DATA_DIRS="$XDG_CONFIG_HOME/xdg-data:$XDG_DATA_DIRS"
|
|
|
|
|
2024-01-28 00:51:19 +00:00
|
|
|
export YADM_OVERRIDE_ARCHIVE="$HOME/.password-store/yadm.gpg"
|
|
|
|
|
2022-12-20 00:13:59 +00:00
|
|
|
|
2023-10-18 23:12:01 +00:00
|
|
|
for additional_env in "$XDG_CONFIG_HOME/env.d/"*; do
|
|
|
|
# check for ## in name to ignore yadm files
|
|
|
|
case "$additional_env" in
|
|
|
|
*##*) continue ;;
|
|
|
|
esac
|
|
|
|
|
2023-06-25 11:21:14 +00:00
|
|
|
# shellcheck disable=1090
|
2023-10-20 12:57:50 +00:00
|
|
|
test -x "$additional_env" && . "$additional_env"
|
2023-06-25 11:21:14 +00:00
|
|
|
done
|
2023-10-18 23:12:01 +00:00
|
|
|
unset additional_env
|