add old zshconfig
This commit is contained in:
parent
ffda4c1ff4
commit
1ef3a363de
8 changed files with 267 additions and 0 deletions
23
zsh/checks.zsh
Normal file
23
zsh/checks.zsh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue