~strahinja/dotfiles

ref: fce71a48cc9881d4e2748fbbd9fdc57d233085e8 dotfiles/profile.d/rc -rw-r--r-- 431 bytes
fce71a48Страхиња Радић Adjusted for Alpine's busybox's sed a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
profile_d=$HOME/.profile.d

[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"

[ -f $profile_d/env ]		&& source $profile_d/env
[ -f $profile_d/aliases ]	&& source $profile_d/aliases

# Not really bash-specific
[ -f /etc/bash/bashrc.d/66-colors.bashrc ] && \
	source /etc/bash/bashrc.d/66-colors.bashrc

#if echo $0 | sed '/^-/Q1;Q0'; then
if [ -z "$(echo $0 | sed 's/^\(-\?\).*/\1/g')" ]; then
	echo
	fortune
	echo
fi

unset profile_d