summaryrefslogtreecommitdiff
path: root/.config/login.sh
blob: 949929913287f463855ce93b8559cea0082a3653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/hint/sh
# ~/.profile: Sourced by the command interpreter for login shells
#
# Other ~/.*profile scripts may take precedence, or be used instead
# (for example: ~/.bash_{profile,login} takes precidence, and
# ~/.xprofile is used for graphical logins).  I dislike duplication,
# so I have them all configured to source this.

if [ -z "$HOME" ]; then
	eval 'HOME=~'
	export HOME
fi
for file in "${XDG_CONFIG_HOME:-$HOME/.config}/login.d/"*.sh; do
	. "$file"
done
unset file