# /etc/profile

# Set our umask
umask 022

export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin

# Load profiles from /etc/profile.d
if test -d /etc/profile.d/; then
	for profile in /etc/profile.d/*.sh; do
		test -r "$profile" && . "$profile"
	done
	unset profile
fi

# Source global bash config
if test "$PS1" && test "$BASH" && test -z ${POSIXLY_CORRECT+x} && test -r /etc/bash.bashrc; then
	. /etc/bash.bashrc
fi

# Termcap is outdated, old, and crusty, kill it.
unset TERMCAP

# Make Podman use global config in
export XDG_CONFIG_HOME=~/.config

# Set Docker Host to user socket
if [ "$UID" -ne "0" ]; then
	systemctl --user enable --now podman.socket > /dev/null 2>&1
	export DOCKER_HOST=unix://${XDG_RUNTIME_DIR}/podman/podman.sock
fi
