summaryrefslogtreecommitdiff
path: root/etc/osdetect
blob: 91a7c8ad8cb1740b0f527f94abada824627bf25d (plain)
1
2
3
4
5
6
7
8
9
10
11
## vim:ft=zsh
# for system-specific setup
system=${$(uname):l}
alias 'linux:'='[[ $system == linux ]] &&'
alias 'openbsd:'='[[ $system == openbsd ]] &&'
if [[ $system == linux ]] {
	[[ -f /etc/debian_version ]] && distro=debian
	[[ -f /etc/gentoo-release ]] && distro=gentoo
	[[ -f /etc/arch-release   ]] && distro=arch
	[[ -f /etc/redhat-release ]] && distro=redhat
}