cdotfis/dotfiles/.bash_profile

74 lines
2.5 KiB
Bash

#!/bin/sh
export EDITOR=nvim
export TERM=st-256color
export TERMINAL=st
export TERMINAL_PROG=st
export BROWSER=librewolf
export PAGER='nvimpager -p'
export PODMAN_COMPOSE_PROVIDER=podman-compose
export CM_SELECTIONS="clipboard"
export CM_DEBUG=1
export CM_OUTPUT_CLIP=0
export CM_MAX_CLIPS=10000
export CM_IGNORE_WINDOW="Bitwarden|KeePass"
export _JAVA_AWT_WM_NONREPARENTING=1
export QT_QPA_PLATFORMTHEME=gtk2
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
export XDG_CONFIG_HOME="$HOME"/.config
export XDG_CACHE_HOME="$HOME"/.cache
export XDG_DATA_HOME="$HOME"/.local/share
export XDG_STATE_HOME="$HOME"/.local/state
export CM_DIR="$XDG_CACHE_HOME"/clipmenu
export GOPATH="$XDG_CONFIG_HOME"/go
export R_HOME_USER="$XDG_CONFIG_HOME"/R
export R_PROFILE_USER="$XDG_CONFIG_HOME"/R/.Rprofile
export R_LIBS_USER="$XDG_CONFIG_HOME"/R/library
export R_HISTFILE="$XDG_CONFIG_HOME"/R/.Rhistory
export CARGO_HOME="$XDG_DATA_HOME"/cargo
export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv
#export GNUPGHOME="$XDG_DATA_HOME"/gnupg
export GRADLE_USER_HOME="$XDG_DATA_HOME"/gradle
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
export XCURSOR_PATH=/usr/share/icons:"$XDG_DATA_HOME"/icons
export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
export TERMINFO="$XDG_DATA_HOME"/terminfo
export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
export NVM_DIR="$XDG_DATA_HOME"/nvm
export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
export PSQL_HISTORY="$XDG_DATA_HOME"/psql_history
export ZDOTDIR="$XDG_CONFIG_HOME"/zsh
export BUNDLE_USER_CONFIG="$XDG_CONFIG_HOME"/bundle
export BUNDLE_USER_CACHE="$XDG_CACHE_HOME"/bundle
export BUNDLE_USER_PLUGIN="$XDG_DATA_HOME"/bundle
export NUGET_PACKAGES="$XDG_CACHE_HOME"/NuGetPackages
export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker
export MINIKUBE_HOME="$XDG_DATA_HOME"/minikube
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR"/gcr/ssh
export XINITRC="$XDG_CONFIG_HOME"/x11/xinitrc
export ANDROID_USER_HOME="$XDG_DATA_HOME"/android
export W3M_DIR="$XDG_DATA_HOME"/w3m
export PARALLEL_HOME="$XDG_CONFIG_HOME"/parallel
export INPUTRC="$XDG_CONFIG_HOME/shell/inputrc"
export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
export PATH="$HOME/.local/bin:$PATH"
export HISTFILE="$XDG_STATE_HOME"/bash/history
export HISTSIZE=10000000
export HISTFILESIZE=10000000
export HISTCONTROL=erasedups:ignoreboth
export PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
if grep -q "i5" /proc/cpuinfo; then
export LAPTOP=""
fi
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec startx &> /dev/null
fi