aboutsummaryrefslogblamecommitdiffstats
path: root/base/profile
blob: 4410d8eba30aefac034abb5a0d8a3ee0e0fdf4a3 (plain) (tree)










































                                                   
# -*- shell-script -*-

export LOCALE="en_GB.UTF-8"
export LC_ALL="en_GB.UTF-8"
export LANG="en_GB.UTF-8"

export MAIN_ALSA_CARD=0
export MAIN_ALSA_MIXER=PCM

if test -z "${XDG_RUNTIME_DIR}"; then
	export XDG_RUNTIME_DIR='/tmp/.~'"$(whoami)"
fi
mkdir -p -- "${XDG_RUNTIME_DIR}"

if test -x ~/.local/bin/e; then
	export EDITOR=~/.local/bin/e
elif test -x /usr/bin/emacs; then
	export EDITOR="emacs -nw"
elif test -x /usr/bin/vis; then
	export EDITOR="vis"
elif test -x /usr/bin/nano; then
	export EDITOR="nano"
elif test -x /usr/bin/vim; then
	export EDITOR="vim"
elif test -x /usr/bin/vi; then
	export EDITOR="vi"
fi
export VISUAL="${EDITOR}"

for __script in ~/.config/profile.d/*; do
	if test -r "${__script}"; then
		. "${__script}"
	fi
done
unset __script

if test -r ~/.config/"profile-$(hostname)"; then
	. ~/.config/"profile-$(hostname)"
fi

if test -r ~/work/.config/profile; then
	. ~/work/.config/profile
fi