{"componentChunkName":"component---src-templates-work-js","path":"/works/setup-a-new-mac","result":{"data":{"datoCmsWork":{"seoMetaTags":{"tags":[{"tagName":"title","content":"Instructions to set up a new mac (M1) - Freddie Lichtenstein"},{"tagName":"meta","attributes":{"property":"og:title","content":"Instructions to set up a new mac (M1)"}},{"tagName":"meta","attributes":{"name":"twitter:title","content":"Instructions to set up a new mac (M1)"}},{"tagName":"meta","attributes":{"name":"description","content":"Pitch founders hackathon business-to-business growth hacking pivot rockstar deployment business model canvas handshake stock business-to-consumer. "}},{"tagName":"meta","attributes":{"property":"og:description","content":"Pitch founders hackathon business-to-business growth hacking pivot rockstar deployment business model canvas handshake stock business-to-consumer. "}},{"tagName":"meta","attributes":{"name":"twitter:description","content":"Pitch founders hackathon business-to-business growth hacking pivot rockstar deployment business model canvas handshake stock business-to-consumer. "}},{"tagName":"meta","attributes":{"name":"twitter:site","content":"@xxx"}},{"tagName":"meta","attributes":{"name":"twitter:card","content":"summary"}},{"tagName":"meta","attributes":{"property":"article:modified_time","content":"2021-12-03T11:19:59Z"}},{"tagName":"meta","attributes":{"property":"article:published_time","content":"2021-11-08T19:51:20Z"}},{"tagName":"meta","attributes":{"property":"article:publisher","content":"https://www.facebook.com/xxx"}},{"tagName":"meta","attributes":{"property":"og:locale","content":"en_EN"}},{"tagName":"meta","attributes":{"property":"og:type","content":"article"}},{"tagName":"meta","attributes":{"property":"og:site_name","content":"Fred Lich"}},{"tagName":"meta","attributes":{"property":"og:image","content":"https://www.datocms-assets.com/28985/1632990875-000025.jpg?w=1000&fit=max&fm=jpg"}},{"tagName":"meta","attributes":{"name":"twitter:image","content":"https://www.datocms-assets.com/28985/1632990875-000025.jpg?w=1000&fit=max&fm=jpg"}}]},"title":"Instructions to set up a new mac (M1)","excerpt":"Instructions for when you need to setup a new mac","gallery":[],"descriptionNode":{"childMarkdownRemark":{"html":"<ol>\n<li>Install Homebrew</li>\n<li>Install Command line tools (Homebrew should do this automatically)</li>\n<li>Install Rectangle (Used to be Spectacle, but Rectangle is compiled for apple silicon so I'll go with that!)\n<code>brew install --cask rectangle</code></li>\n<li>Install iterm <code>brew install --cask iterm2</code></li>\n<li>Install oh my zsh <code>brew install zsh &#x26;&#x26; sh -c \"$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)\"</code></li>\n<li>Install powerlevel10k <code>brew install romkatv/powerlevel10k/powerlevel10k echo \"source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme\" >>~/.zshrc</code></li>\n<li>Add zsh plugins: (zsh-autosuggestions colorize pip python etc.)</li>\n<li>Add zsh-syntax-highlighting</li>\n<li>Disable bell in iterm : Profiles -> Default -> Terminal -> Silence Bell</li>\n<li>Change iterm theme to minimal</li>\n<li>Change iterm background color &#x26; opacity in Window Tab</li>\n<li>Change iterm to unlimited scrollback in Terminal Tab</li>\n<li>Setup word skipping shortcuts in iterm <code>⌘←, ⌘→ and ⌥←, ⌥→</code> in Profiles -> Keys -> Key mappings -> Presets -> Natural Text Editing</li>\n<li>To change next tab. previosu tab shortcuts. <code>Preferences -> Keys -> Key Bindings</code> and change <code>Next Tab</code> and <code>Previous Tab</code></li>\n<li>Tick use previous sessions working dir</li>\n<li>Change key repeat in Mac Systems Prefs</li>\n<li>Install vscode <code>brew install --cask visual-studio-code</code></li>\n<li>Install vscode extensions: prettier, colourful brackets, react, python, semi-standard etc.</li>\n<li>Run <code>git config --global alias.st status</code> to add alias</li>\n<li><code>brew install yarn</code></li>\n</ol>\n<p>Python setup 😦 I use pyenv</p>\n<ol>\n<li><code>brew update</code></li>\n<li><code>brew install pyenv</code></li>\n<li><code>echo 'eval \"$(pyenv init --path)\"' >> ~/.zprofile</code> </li>\n<li><code>echo 'eval \"$(pyenv init -)\"' >> ~/.zshrc</code></li>\n<li><code>brew install openssl readline sqlite3 xz zlib</code></li>\n<li><code>pyenv install 3.10.0</code> (or latest version)</li>\n<li>Restart iterm</li>\n<li>if <code>python -V</code> still shows 2.7 or whatever, edit line in zshrc, see this stack overflow post: <a href=\"https://stackoverflow.com/questions/58679742/set-default-python-with-pyenv\">https://stackoverflow.com/questions/58679742/set-default-python-with-pyenv</a></li>\n<li><code>which python</code> should show <code>/Users/fred/.pyenv/shims/python</code></li>\n<li><code>brew install pyenv-virtualenv</code></li>\n<li>Set python 3.10 as global version: <code>pyenv global 3.10.0</code></li>\n<li>Make virtualenvs for every project (these get saved to sepcific directories)</li>\n<li>Add <code>eval \"$(pyenv virtualenv-init -)\"</code> to zshrc</li>\n<li>If you use jupyter: install pyenv jupyter kernel <a href=\"https://github.com/aiguofer/pyenv-jupyter-kernel\">https://github.com/aiguofer/pyenv-jupyter-kernel</a>. This will create automatic kernels for each pyenv virtualenv.</li>\n</ol>"}},"coverImage":{"url":"https://www.datocms-assets.com/28985/1632990875-000025.jpg","fluid":{"base64":"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QBMRXhpZgAASUkqAAgAAAABAGmHBAABAAAAGgAAAAAAAAADAAGgAwABAAAA//8AAAKgBAABAAAAIwAAAAOgBAABAAAAFwAAAAAAAAD/2wEEEAAJAAsACwANABEADQASABQAFAASABgAGgAYABoAGAAkACEAHgAeACEAJAA2ACcAKQAnACkAJwA2AFEAMwA7ADMAMwA7ADMAUQBHAFYARwBCAEcAVgBHAIAAZQBZAFkAZQCAAJQAfAB2AHwAlACzAKAAoACzAOEA1QDhASUBJQGKEQAJAAsACwANABEADQASABQAFAASABgAGgAYABoAGAAkACEAHgAeACEAJAA2ACcAKQAnACkAJwA2AFEAMwA7ADMAMwA7ADMAUQBHAFYARwBCAEcAVgBHAIAAZQBZAFkAZQCAAJQAfAB2AHwAlACzAKAAoACzAOEA1QDhASUBJQGK/8IAEQgAFwAjAwEiAAIRAQMRAf/EADEAAQACAgMAAAAAAAAAAAAAAAAEBwUGAQIDAQEBAAMAAAAAAAAAAAAAAAACAQADBP/aAAwDAQACEAMQAAAA1CdNyusRbG1GSlYCnTOQlHDPXoZOQh//xAAnEAACAQMDAwQDAQAAAAAAAAABAhEAAwQFEiExQVETcYGRYaHB8f/aAAgBAQABPwDEvwg4np+6OQpyWBvJGw8cyCPj8Vp+p5G9SmXKyOJYifkVZ1O0SWJjml1LFIB9RfusTT1FxZRTtEs3nuPaKs4O1ObjMBPYUltfB+gKQC3bhVlSRI9v9rL003b7utxlDHptP8qyrBCeoNJtRQW7+KDptJAmhdhYkkzXqL4r/8QAHREAAgIBBQAAAAAAAAAAAAAAAAECEQMSISNRUv/aAAgBAgEBPwBzima8drc4/TOxlI//xAAcEQEAAgEFAAAAAAAAAAAAAAABABECEBIhUYH/2gAIAQMBAT8AFohYM3PUDjyZOn//2Q==","aspectRatio":1.5287406757349715,"src":"https://www.datocms-assets.com/28985/1632990875-000025.jpg?auto=compress%2Cformat&fm=jpg","srcSet":"https://www.datocms-assets.com/28985/1632990875-000025.jpg?auto=compress%2Cformat&dpr=0.05&fm=jpg&w=3484 150w,\nhttps://www.datocms-assets.com/28985/1632990875-000025.jpg?auto=compress%2Cformat&dpr=0.09&fm=jpg&w=3484 300w,\nhttps://www.datocms-assets.com/28985/1632990875-000025.jpg?auto=compress%2Cformat&dpr=0.18&fm=jpg&w=3484 600w,\nhttps://www.datocms-assets.com/28985/1632990875-000025.jpg?auto=compress%2Cformat&dpr=0.26&fm=jpg&w=3484 900w,\nhttps://www.datocms-assets.com/28985/1632990875-000025.jpg?auto=compress%2Cformat&dpr=0.35&fm=jpg&w=3484 1200w,\nhttps://www.datocms-assets.com/28985/1632990875-000025.jpg?auto=compress%2Cformat&dpr=0.52&fm=jpg&w=3484 1800w,\nhttps://www.datocms-assets.com/28985/1632990875-000025.jpg?auto=compress%2Cformat&dpr=1&fm=jpg&w=3484 3484w","sizes":"(max-width: 600px) 100vw, 600px"}}}},"pageContext":{"slug":"setup-a-new-mac"}}}