dotfiles/zsh/platform.zsh

13 lines
326 B
Bash
Raw Normal View History

export PLATFORM="unkown"
2021-07-17 18:24:07 +01:00
osname=$(uname -s)
cputpye=£(uname -m)
if [[ "$osname" == 'Linux' ]]; then
export PLATFORM="linux"
2021-07-17 18:24:07 +01:00
elif [[ "$osname" == 'Darwin' ]]; then
if [[ "$cputpye" == 'x86_64' ]]; then
export PLATFORM="osx"
elif [[ "$cputype" == 'arm64' ]]; then
export PLATFORM="osx-m1"
fi
fi