summaryrefslogtreecommitdiff
path: root/etc/profile
blob: 5461ebc0581355f0d2ab2bd704bd2121eb61ebf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
## vim:ft=zsh
setopt extended_glob
source $ZDIR/colors

function pr_info {
	print -P "${info}>>${reset} $*"
}

echo
pr_info "This is ${info}$(uname -srm)${reset} on ${info}%y${reset}"
[[ -r /etc/gentoo-release ]] && pr_info "Running ${info}Gentoo${reset} ${$(cat /etc/gentoo-release)#(#i)gentoo }"
[[ -r /etc/debian_version ]] && pr_info "Running ${info}Debian${reset} $(cat /etc/debian_version)"
[[ -r /etc/arch-release   ]] && pr_info "Running ${info}Arch${reset}"
[[ -r /etc/redhat-release ]] && pr_info "Running ${info}Redhat${reset}"
echo

[[ -n $(echo Maildir/new/*(N)) ]] && pr_info "You have mail!"
[[ -r $ZDIR/local-profile ]] && source $ZDIR/local-profile

unfunction pr_info