2021-10-21 17:44:21 -04:00
|
|
|
#!/bin/sh
|
2021-04-13 22:07:45 -04:00
|
|
|
|
2021-10-02 11:21:15 -04:00
|
|
|
# Set XDG directories
|
2021-04-13 22:07:45 -04:00
|
|
|
export XDG_CONFIG_HOME="$HOME"/.config
|
|
|
|
export XDG_CACHE_HOME="$HOME"/.cache
|
|
|
|
export XDG_DATA_HOME="$HOME"/.local/share
|
2022-10-07 19:42:19 -04:00
|
|
|
export XDG_DOWNLOAD_DIR="$HOME"/quar/
|
2021-04-13 22:07:45 -04:00
|
|
|
|
2021-10-02 11:21:15 -04:00
|
|
|
# Clean up home directory dotfiles
|
|
|
|
|
2023-06-13 13:21:57 -04:00
|
|
|
# xinit
|
|
|
|
export XINITRC="$XDG_CONFIG_HOME"/xinitrc
|
2021-10-02 11:21:15 -04:00
|
|
|
# XAuthority
|
2021-04-13 22:07:45 -04:00
|
|
|
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
|
2021-10-02 11:21:15 -04:00
|
|
|
# GTK2
|
2021-04-13 22:07:45 -04:00
|
|
|
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
|
2021-10-02 11:21:15 -04:00
|
|
|
# zsh
|
2021-04-13 22:07:45 -04:00
|
|
|
export ZDOTDIR="$HOME"/.config/zsh
|
|
|
|
export HISTFILE="$XDG_DATA_HOME"/zsh/history
|
2021-10-02 11:21:15 -04:00
|
|
|
# less
|
2021-04-13 22:07:45 -04:00
|
|
|
export LESSHISTFILE=-
|
2021-10-02 11:21:15 -04:00
|
|
|
# gpg
|
2021-04-13 22:07:45 -04:00
|
|
|
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
|
2021-10-02 11:21:15 -04:00
|
|
|
# pass
|
2021-04-13 22:07:45 -04:00
|
|
|
export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
|
2021-10-02 11:21:15 -04:00
|
|
|
# tuir
|
2023-04-09 12:45:26 -04:00
|
|
|
export MAILCAPS="$XDG_CONFIG_HOME"/mailcap
|
2021-10-02 11:21:15 -04:00
|
|
|
# terminfo
|
|
|
|
export TERMINFO="$XDG_DATA_HOME"/terminfo
|
|
|
|
export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo
|
2022-07-20 19:36:02 -04:00
|
|
|
# go
|
2023-06-13 10:06:25 -04:00
|
|
|
export GOPATH="$XDG_DATA_HOME"/go
|
2023-06-20 12:34:09 -04:00
|
|
|
# cargo
|
2023-07-10 12:14:59 -04:00
|
|
|
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
2023-01-03 13:40:35 -05:00
|
|
|
# npm
|
|
|
|
export npm_config_userconfig=$XDG_CONFIG_HOME/npm/config
|
|
|
|
export npm_config_cache=$XDG_CACHE_HOME/npm
|
|
|
|
export npm_config_prefix=$XDG_DATA_HOME/npm
|
2023-05-03 21:23:19 -04:00
|
|
|
# xpilot
|
|
|
|
export XPILOTRC=$XDG_CONFIG_HOME/xpilotrc
|
2023-04-02 18:40:47 -04:00
|
|
|
|
2023-02-09 18:14:26 -05:00
|
|
|
# minrss scripts
|
|
|
|
export MRSS_DIR="$HOME/dox/rss"
|
2021-10-02 11:21:15 -04:00
|
|
|
|
2023-04-02 18:40:47 -04:00
|
|
|
# reminder script
|
|
|
|
export REM_FILE="$HOME/dox/not/rem"
|
|
|
|
|
2022-05-10 21:40:05 -04:00
|
|
|
# Set default programs
|
2021-10-02 11:21:15 -04:00
|
|
|
export EDITOR="nvim"
|
2022-05-10 21:40:05 -04:00
|
|
|
export BROWSER="qutebrowser"
|
2022-08-01 19:24:50 -04:00
|
|
|
# man pager
|
|
|
|
export MANPAGER='nvim +Man!'
|
2022-11-12 20:26:14 -05:00
|
|
|
export MANWIDTH=165
|
2021-10-02 11:21:15 -04:00
|
|
|
|
2022-10-07 19:42:19 -04:00
|
|
|
# Soundboard
|
|
|
|
export SB_DIR="$HOME"/med/sb
|
2022-10-01 18:58:01 -04:00
|
|
|
export SXHKD_SHELL='/bin/sh'
|
|
|
|
|
2023-03-05 12:49:00 -05:00
|
|
|
export KEEPASSDB="$HOME"/dox/sec/pass.kdbx
|
|
|
|
# Identity (see ~/.local/bin/identity.sh)
|
|
|
|
if [ -r "$XDG_CONFIG_HOME"/identity ]; then
|
2023-04-21 20:37:06 -04:00
|
|
|
. "$XDG_CONFIG_HOME"/identity
|
2023-03-05 12:49:00 -05:00
|
|
|
fi
|
|
|
|
|
2023-04-13 10:17:39 -04:00
|
|
|
# Profile to enable/disable features on certain devices
|
|
|
|
if [ ! -f "$XDG_CONFIG_HOME"/dot_profile ]; then
|
2023-05-14 17:29:34 -04:00
|
|
|
export SYSTEM_PROFILE="SLIM"
|
2023-04-13 10:17:39 -04:00
|
|
|
else
|
2023-04-21 20:37:06 -04:00
|
|
|
. "$XDG_CONFIG_HOME"/dot_profile
|
2023-04-13 10:17:39 -04:00
|
|
|
fi
|
|
|
|
|
2023-07-10 13:05:58 -04:00
|
|
|
# Typst root
|
|
|
|
export TYPST_ROOT="$HOME/nt"
|
|
|
|
|
2023-06-21 12:23:38 -04:00
|
|
|
# Add .local/bin to path
|
|
|
|
export PATH="$PATH":~/.local/bin
|
|
|
|
export PATH="$PATH":~/.local/bin/deskutils
|
|
|
|
export PATH="$PATH":~/.local/bin/deskutils/soundboard
|
2023-07-10 18:13:13 -04:00
|
|
|
export PATH="$PATH":~/.local/bin/pyinstantref
|
2023-06-21 12:23:38 -04:00
|
|
|
|
|
|
|
export PATH="$PATH":"$XDG_DATA_HOME"/npm/bin
|
|
|
|
export PATH="$PATH":"$XDG_DATA_HOME"/go/bin
|
|
|
|
|
|
|
|
# cppman can't set it itself for some reason
|
|
|
|
export MANPATH="$MANPATH":~/.cache/cppman/
|
|
|
|
|
2023-06-22 18:41:00 -04:00
|
|
|
eval $(ssh-agent)
|
|
|
|
|
2023-04-21 20:37:06 -04:00
|
|
|
. .config/bashrc
|