The maximum version of Mac OS X, OS X, or macOS supported by each G3 and later Mac follows. For complete specs on a particular system, click the name of the Mac. For all Macs that are compatible with a specifc maximum supported version of Mac OS X - courtesy of EveryMac.com's Ultimate Mac Sort - click the OS of interest. When Apple dropped support for Atom processors in OS X 10.6.2, effectively killing Hackintosh netbooks, we knew that somebody would fix things. We didn’t know that it would happen so fast.
#!/bin/bash |
# use argument 1 as the version or get it from sw_vers |
os_ver=${1-:$(sw_vers -productVersion)} |
# string comparison |
if [[ '$os_ver' 10.13.* ]];then |
echo'macOS High Sierra' |
elif [[ '$os_ver' 10.12.* ]];then |
echo'macOS Sierra' |
else |
echo'(Mac) OS X something' |
fi |
# regular expression |
if [[ '$os_ver'=~ 10.1[23].* ]];then |
echo'It's one of the Sierras' |
fi |
# awk |
echo'minor version with awk: '$(echo '$os_ver' awk -F. '{ print $2; }') |
echo'patch version with awk: '$(echo '$os_ver' awk -F. '{ print $3; }') |
# array |
IFS='.'read -r -a ver <<<'$os_ver' |
echo'minor version with array: ${ver[1]}' |
echo'patch version with array: ${ver[2]}' |
# numerical comparison |
if [[ '${ver[1]}'-ge 9 ]];then |
echo'somewhere in California' |
elif [[ '${ver[1]}'-ge 2 ]];then |
echo'officially a feline' |
else |
echo'secretly a feline' |
fi |
# get the build number: |
build_ver=${2-:$(sw_vers -buildVersion)} |
if [[ '${ver[1]}'-le 5 ]];then |
build_number='${build_ver:3}' |
else |
build_number='${build_ver:4}' |
fi |
if [[ ${build_number: -1}'a' ]];then |
build_number='${build_number:0:$((${#build_number}-1))}' |
fi |
echo'build number: $build_number' |
commented Mar 5, 2018
Looking at this piece: I needed to take into account the leading colon in os_ver. To do that I modified my if statement to this |
commented Nov 6, 2019
I think it should have been: (swap |
Inspired by a Gist from kevinelliott - thanks!
Install from App Store
- Xcode - for command line tools required by Homebrew
Install from Third-Party Websites
Xcode Command Line Tools
Need to be installed for all the fne stuff in the latest section
Xcode > Preferences > Downloads > Command Line Tools
or
Run Xcode and accept the license! Homebrew can not install properly until this occurs.
Install Homebrew
If this is not a fresh install of Homebrew, go ahead and purge the complete installation first:
Now install Homebrew
Atom's Echo Mac Os Pro
Install common libraries via Homebrew
Atom's Echo Mac Os Catalina
Install Cask application manager
Install applications via Homebrew Cask
The following software is still in testing and not part of my default setup:
Install Chrome extensions
Some extensions are not pulled from your Google account, so re-install theam manully now:
Firefox profiles
TODO make sure the profiles are registered
After setting all the preferences, you need to reboot or at least restart Finder:
If you are curious, check this file for more possible settings.
Setup Github
Docker
Atom's Echo Mac Os X
Database
Ruby & Gems
Prepare a sandboxed ruby environment
within we install some gems
Atom's Echo Mac Os Download
Vagrant and plugins
Install custom .dotfiles at the end, cause we utilize some of the previously installed packages