{"id":466,"date":"2020-07-02T08:53:36","date_gmt":"2020-07-02T08:53:36","guid":{"rendered":"https:\/\/mklasen.com\/?p=466"},"modified":"2021-03-26T16:15:50","modified_gmt":"2021-03-26T16:15:50","slug":"a-fresh-install-of-a-macbook-pro","status":"publish","type":"post","link":"https:\/\/mklasen.com\/a-fresh-install-of-a-macbook-pro\/","title":{"rendered":"A fresh install of a Macbook Pro"},"content":{"rendered":"\n
What’s the first thing you usually do when you setup a new computer? Yup – Install Chrome. This time I’ve also installed Brave and i’m actually enjoying it.<\/p>\n\n\n\n
After the browser the next best thing is my password manager: 1Password. This gives me access to everything I need. Next up is:<\/p>\n\n\n\n
There’s a couple of extensions I can’t miss for Oh My ZSH:<\/p>\n\n\n\n
The last two plugins need to be installed manually by running:<\/p>\n\n\n\n
git clone https:\/\/github.com\/zsh-users\/zsh-autosuggestions ${ZSH_CUSTOM:-~\/.oh-my-zsh\/custom}\/plugins\/zsh-autosuggestions\ngit clone https:\/\/github.com\/zsh-users\/zsh-syntax-highlighting.git $ZSH_CUSTOM\/plugins\/zsh-syntax-highlighting<\/code><\/pre>\n\n\n\nAfterwards, you can activate the plugins by changing a line in the ~\/.zshrc file, as below:<\/p>\n\n\n\n
Run 'nano ~\/.zshrc'\nAnd change the contents of the plugins line to:\ngit wp-cli gulp docker zsh-autosuggestions zsh-syntax-highlighting<\/code><\/pre>\n\n\n\nOther optimisations<\/strong><\/p>\n\n\n\n- Partition the hard drive (separate Workspace from OS)<\/li>
- Make symlinks from home folder to hard drives<\/li>
- Delete the downloads folder and create a symlink for it to \/Volumes\/Data\/Downloads<\/li>
- Enable tap for the mousepad<\/li>
- Increase backspace speed<\/li>
- Increase arrow speed <\/li>
- iTerm:
- Profiles -> Default -> General -> Reuse previous session’s directory<\/li>
- Profiles -> Default -> Terminal -> Unlimited scrollback<\/li><\/ul><\/li>
- Set Paste and Match Style as default (https:\/\/twitter.com\/marinusklasen\/status\/1259077017632415745<\/a>)<\/li>
- Install mkcert<\/li>
- Install mailhog<\/li><\/ul>\n\n\n\n
MAMP Pro and WP-Cli: Setting the right PHP version for CLI<\/h3>\n\n\n\n
“env: mysql: No such file or directory”<\/em><\/p>\n\n\n\nTo prevent this, and to generally MAMP’s PHP library in the terminal, add the following code to your ~\/.zprofile file. (if it doesn’t exist, create it)<\/p>\n\n\n\n