devconf/.zprofile
2021-09-07 13:17:16 +02:00

40 lines
1.1 KiB
Bash

export UID=$(id -u)
export GID=$(id -g)
export MAKEOPTS="-j$(cat /proc/cpuinfo | awk -F: '$1 ~ /cpu cores/ { print $2 }' | head -n 1 | tr -d ' ')"
export PATH="/usr/local/bin:$HOME/.local/bin:$PATH"
if [ -n "$(command -v composer)" ]; then
export PATH=$PATH:$(composer global config bin-dir --absolute -q)
fi
if [ -n "$(command -v rustc)" ]; then
export PATH="$HOME/.cargo/bin:$PATH"
export RUST_SRC_PATH=$(rustc --print sysroot)/lib/rustlib/src/rust/library
fi
export LANG="en_US.UTF-8"
export LANGUAGE="en_US"
export LC_CTYPE="de_DE.UTF-8"
export LC_NUMERIC="de_DE.UTF-8"
export LC_TIME="de_DE.UTF-8"
export LC_COLLATE="de_DE.UTF-8"
export LC_MONETARY="de_DE.UTF-8"
export LC_MESSAGES="de_DE.UTF-8"
export LC_PAPER="de_DE.UTF-8"
export LC_NAME="de_DE.UTF-8"
export LC_ADDRESS="de_DE.UTF-8"
export LC_TELEPHONE="de_DE.UTF-8"
export LC_MEASUREMENT="de_DE.UTF-8"
export LC_IDENTIFICATION="de_DE.UTF-8"
export LC_ALL="de_DE.UTF-8"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
# Don't check for new mail
export MAILCHECK=1
export GOPATH=$HOME/.golang
export FONTCONFIG_PATH=/etc/fonts