Watch
1
0
Fork
You've already forked dotfiles
0
dotfiles/.config/shell/env
Alexander Hess c43c79000e
Add base configuration
- Follow XDG standard: ~/.config and ~/.local folders
- Set environment variables and define aliases within ~/.config/shell
- Add installation script for easy setup
- Add README.md with info on the installation and general notes
2026-06-11 18:28:00 +02:00

41 lines
1.3 KiB
Shell

#!/bin/sh
# Environment variables for all kinds of shells
# Standard XDG base directories
# See: https://wiki.archlinux.org/title/XDG_Base_Directory
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share" # also set in ~/.local/bin/install-dotfiles
export XDG_STATE_HOME="$HOME/.local/state"
# Make up a XDG directory for binaries (that does not exist in the standard)
export XDG_BIN_HOME="$HOME/.local/bin"
# Convenient names for various places in the system
export DOTFILES_DIR="$XDG_DATA_HOME/dotfiles" # also set in ~/.local/bin/install-dotfiles
# Generic shell configs
export GPG_TTY=$(tty)
export PAGER="less --chop-long-lines --ignore-case --LONG-PROMPT --no-init --status-column --quit-if-one-screen"
export TZ="Europe/Berlin"
export LANG=en_US.UTF-8
export LC_TIME=en_DK.UTF-8 # ISO dates, 24h clock, Monday first
export LC_PAPER=de_DE.UTF-8 # A4
export LC_MEASUREMENT=de_DE.UTF-8 # metric
export LC_MONETARY=de_DE.UTF-8 # Euro
export LC_NUMERIC=en_US.UTF-8 # 1,234.56 rather than 1.234,56
export LC_ADDRESS=de_DE.UTF-8
export LC_TELEPHONE=de_DE.UTF-8
# Move common tools' config and cache files into XDG directories
export LESSHISTFILE="$XDG_STATE_HOME/less/history"