add old zshconfig

This commit is contained in:
Thomas Preisner 2016-10-25 18:21:43 +02:00
parent ffda4c1ff4
commit 1ef3a363de
8 changed files with 267 additions and 0 deletions

23
zsh/checks.zsh Normal file
View file

@ -0,0 +1,23 @@
if [[ $(uname) = 'Linux' ]]; then
IS_LINUX=1
fi
if [[ $(uname) = 'Darwin' ]]; then
IS_MAC=1
fi
if [[ -x `which brew` ]]; then
HAS_BREW=1
fi
if [[ -x `which apt-get` ]]; then
HAS_APT=1
fi
if [[ -x `which pmset` ]]; then
HAS_PMSET=1
fi
if [[ -x `which acpi` ]]; then
HAS_ACPI=1
fi