2023-03-29 22:21:02 -04:00
|
|
|
#
|
2023-04-02 02:36:17 -04:00
|
|
|
# ~/.bash_profile
|
2023-03-29 22:21:02 -04:00
|
|
|
#
|
|
|
|
|
2023-11-26 23:49:32 -05:00
|
|
|
# Default text editors
|
2023-04-02 02:36:17 -04:00
|
|
|
export EDITOR=nvim
|
|
|
|
export VISUAL=emacs
|
|
|
|
|
2023-11-26 23:49:32 -05:00
|
|
|
# Add ~/.local/bin to $PATH
|
|
|
|
export PATH="${HOME}/.local/bin:${PATH}"
|
|
|
|
|
|
|
|
# XDG Base Directories
|
2023-12-11 14:41:38 -05:00
|
|
|
export XDG_CACHE_HOME="${HOME}/.cache"
|
|
|
|
export XDG_CONFIG_HOME="${HOME}/.config"
|
|
|
|
export XDG_DATA_HOME="${HOME}/.local/share"
|
|
|
|
export XDG_STATE_HOME="${HOME}/.local/state"
|
2023-03-28 21:33:57 -04:00
|
|
|
|
2023-11-26 23:49:32 -05:00
|
|
|
# Force Java to behave when not using a DE
|
2022-12-22 04:07:12 -05:00
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
2023-03-28 21:33:57 -04:00
|
|
|
|
2023-11-26 23:49:32 -05:00
|
|
|
# GPG passphrase prompt
|
2024-10-06 00:39:32 -04:00
|
|
|
GPG_TTY=$(tty)
|
|
|
|
export GPG_TTY
|
2023-04-02 02:36:17 -04:00
|
|
|
|
2023-06-15 01:21:31 -04:00
|
|
|
# Mozilla + Wayland
|
2023-06-15 04:08:49 -04:00
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
2023-06-15 01:21:31 -04:00
|
|
|
|
2023-03-29 01:48:32 -04:00
|
|
|
## No littering in $HOME!
|
|
|
|
|
|
|
|
# bash
|
2023-12-11 14:41:38 -05:00
|
|
|
export HISTFILE="${XDG_STATE_HOME}/bash_history"
|
2023-03-29 01:48:32 -04:00
|
|
|
|
|
|
|
# cargo
|
2023-12-11 14:41:38 -05:00
|
|
|
export CARGO_HOME="${XDG_DATA_HOME}/cargo"
|
2023-03-29 01:48:32 -04:00
|
|
|
|
2023-11-26 23:49:32 -05:00
|
|
|
# dotnet
|
|
|
|
export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME}/dotnet_bundle_extract"
|
|
|
|
export DOTNET_CLI_HOME="${XDG_DATA_HOME}/dotnet/cli"
|
|
|
|
export DOTNET_CLI_TELEMETRY_OPTOUT=true
|
|
|
|
export DOTNET_TOOLS_PATH="${XDG_DATA_HOME}/dotnet/tools"
|
|
|
|
export PATH="${DOTNET_TOOLS_PATH}:${PATH}"
|
|
|
|
|
2023-03-29 01:48:32 -04:00
|
|
|
# go
|
2023-12-11 14:41:38 -05:00
|
|
|
export GOPATH="${XDG_DATA_HOME}/go"
|
|
|
|
export GOMODCACHE="${XDG_CACHE_HOME}/go/mod"
|
2023-03-29 01:48:32 -04:00
|
|
|
|
2023-03-29 22:21:02 -04:00
|
|
|
# gpg
|
2023-12-11 14:41:38 -05:00
|
|
|
export GNUPGHOME="${XDG_DATA_HOME}/gnupg"
|
2023-03-29 22:21:02 -04:00
|
|
|
|
|
|
|
# gtk2
|
2023-12-11 14:41:38 -05:00
|
|
|
export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc"
|
2023-03-29 01:48:32 -04:00
|
|
|
|
2023-03-29 22:21:02 -04:00
|
|
|
# node
|
2023-12-11 14:41:38 -05:00
|
|
|
export NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/npmrc"
|
2023-03-29 01:48:32 -04:00
|
|
|
|
2023-03-29 22:21:02 -04:00
|
|
|
# python
|
2023-12-11 14:41:38 -05:00
|
|
|
export PYTHONSTARTUP="${XDG_CONFIG_HOME}/python/pythonrc"
|
|
|
|
export PYTHONPYCACHEPREFIX="${XDG_CACHE_HOME}/python"
|
|
|
|
export PYTHONUSERBASE="${XDG_DATA_HOME}/python"
|
2024-08-20 17:36:59 -04:00
|
|
|
export PYENV_ROOT="${XDG_DATA_HOME}/pyenv"
|
|
|
|
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
|
|
|
eval "$(pyenv init -)"
|
|
|
|
|
|
|
|
# rust
|
|
|
|
export RUSTUP_HOME="${XDG_DATA_HOME}/rustup"
|
2023-03-29 22:21:02 -04:00
|
|
|
|
|
|
|
# wine
|
2023-12-11 14:41:38 -05:00
|
|
|
export WINEPREFIX="${XDG_DATA_HOME}/wine"
|
2023-03-29 22:21:02 -04:00
|
|
|
|
2023-03-29 01:48:32 -04:00
|
|
|
# Xorg
|
2023-12-11 14:41:38 -05:00
|
|
|
export XINITRC="${XDG_CONFIG_HOME}/X11/xinitrc"
|
|
|
|
export XAUTHORITY="${XDG_RUNTIME_DIR}/Xauthority"
|
2023-04-02 02:36:17 -04:00
|
|
|
|
|
|
|
# Source other dotfiles
|
|
|
|
[[ -f ~/.profile ]] && . ~/.profile
|
|
|
|
|
|
|
|
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
|
|
|
|
2023-06-15 01:21:31 -04:00
|
|
|
# start river
|
2024-10-06 00:39:32 -04:00
|
|
|
[[ -z $DISPLAY && $(tty) = "/dev/tty1" ]] && exec dbus-run-session river 2> "${XDG_STATE_HOME}"/river.log >/dev/null
|