2019-01-09 23:06:06 +01:00
|
|
|
#
|
2025-12-05 04:11:13 +01:00
|
|
|
# ~/.profile -- Included by .bash_profile, i.e. sourced in login shells.
|
|
|
|
|
# Includes ~/.config/profile.d/*
|
2019-01-09 23:06:06 +01:00
|
|
|
#
|
|
|
|
|
|
2018-11-01 01:04:07 +01:00
|
|
|
# GPG key stuff
|
|
|
|
|
export GPG_TTY=$(tty)
|
|
|
|
|
|
2025-12-05 04:11:13 +01:00
|
|
|
# Set terminal type to support colors
|
2021-05-28 19:31:58 +02:00
|
|
|
export TERM=xterm-color
|
2025-12-05 04:11:13 +01:00
|
|
|
|
|
|
|
|
# Preferred editor
|
2018-11-01 01:04:07 +01:00
|
|
|
export EDITOR=vim
|
|
|
|
|
|
2025-12-05 04:11:13 +01:00
|
|
|
# Set PATH
|
2023-04-05 15:35:42 +02:00
|
|
|
[[ -d "$HOME/.local/bin" ]] && export PATH="$HOME/.local/bin:$PATH"
|
2019-01-11 02:15:40 +01:00
|
|
|
[[ -d "$HOME/bin" ]] && export PATH="$HOME/bin:$PATH"
|
2018-11-01 01:04:07 +01:00
|
|
|
|
2025-12-05 04:11:13 +01:00
|
|
|
# Settings for bc
|
|
|
|
|
export BC_ENV_ARGS="-lq"
|
|
|
|
|
[[ -f "$HOME/.bcrc" ]] && export BC_ENV_ARGS="$BC_ENV_ARGS $HOME/.bcrc"
|
2018-11-01 01:04:07 +01:00
|
|
|
|
2025-12-05 04:11:13 +01:00
|
|
|
# Include drop-in files
|
|
|
|
|
if [[ -d ~/.config/profile.d ]]; then
|
|
|
|
|
for f in ~/.config/profile.d/*; do
|
|
|
|
|
[[ -f $f ]] && source "$f"
|
|
|
|
|
done
|
|
|
|
|
fi
|
2022-08-22 22:51:41 +02:00
|
|
|
|
2025-12-05 04:11:13 +01:00
|
|
|
# Deprecation warning for .profile.local
|
|
|
|
|
if [[ -e ~/.profile.local ]]; then
|
|
|
|
|
echo "WARNING: ~/.profile.local is ignored, please use ~/.config/profile.d/ instead."
|
|
|
|
|
fi
|