Skip to content

Commit 099a099

Browse files
committed
improvements to the configuring a new mac entry
1 parent f074181 commit 099a099

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

_posts/2023-03-18-configuring-a-new-mac.markdown

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ When setting up a new MacBook, there are a few steps you should take to get it u
1616
- [From the internet](#from-the-internet)
1717
- [Safari](#safari)
1818
- [iTerm2](#iterm2)
19-
- [SSH Keys](#ssh-keys)
20-
- [Personal Access Token](#personal-access-token)
21-
- [Setting Git Config](#setting-git-config)
22-
- [Step 5: Configure Settings](#step-5-configure-settings)
19+
- [Step 5: Git Configuration](#step-5-git-configuration)
20+
- [SSH Keys](#ssh-keys)
21+
- [Personal Access Token](#personal-access-token)
22+
- [Git Config](#git-config)
23+
- [Step 6: Configure Settings](#step-6-configure-settings)
2324
- [System Settings](#system-settings)
2425
- [Notifications](#notifications)
2526
- [Appearance](#appearance)
@@ -33,6 +34,7 @@ When setting up a new MacBook, there are a few steps you should take to get it u
3334
- [In your User folder:](#in-your-user-folder)
3435
- [Additional Tips](#additional-tips)
3536
- [Conclusion](#conclusion)
37+
- [Related Articles](#related-articles)
3638

3739
# Step 1: Update OS
3840
Before you start using your new MacBook, make sure to update the operating system to the latest version. This will ensure that your MacBook has the latest security updates and performance improvements.
@@ -58,13 +60,12 @@ Here's a list of recommended Mac apps to download:
5860
* Notion
5961
* iTerm2
6062
* SourceTree
61-
* Visual Studio Code
63+
* [Windsurf](https://codeium.com/windsurf)
6264
* [Insomnia](https://insomnia.rest/)
6365
* [Proxyman](https://proxyman.io/)
6466
* [ChatGPT](https://openai.com/chatgpt/download/)
6567

6668
### Safari
67-
- Make default browser
6869
- Log in to profiles (personal/work)
6970
- Go to Settings/Websites:
7071
- Location: When visiting other websites: `Deny`
@@ -76,7 +77,9 @@ Here's a list of recommended Mac apps to download:
7677
- Download Homebrew
7778
- Copy your `~/.zshrc` from a previous MacBook (aliases/configs/etc)
7879

79-
### SSH Keys
80+
# Step 5: Git Configuration
81+
82+
## SSH Keys
8083
If you are using SSH keys for your personal/work repositories:
8184
1. Create a new SSH key: `ssh-keygen -t ed25519 -C “your_mail”`
8285
- Use a password to encrypt it.
@@ -92,24 +95,30 @@ If you are using SSH keys for your personal/work repositories:
9295
HostName github.com
9396
User git
9497
IdentityFile /Users/manu/.ssh/personal
98+
99+
# Here you can add a separate host for work
95100
```
96101
4. Add the key to your keychain: `ssh-add --apple-use-keychain ~/.ssh/personal`
97102
- Enter the encryption password.
98103
5. Now you can use `git clone git@personal:organization/repo.git` to clone private repositories.
99104

100105
Note: If you are using SourceTree, be careful with the auto-generated keys, they will probably not work. If you keep getting Access Denied with those keys, try following the steps described above instead.
101106

102-
### Personal Access Token
107+
## Personal Access Token
103108

104109
If, for some reason, the SSH keys do not work, and, you are in a hurry, there is a quick way to clone private repositories using Personal Access Tokens:
105110

111+
_The PAT is created on Github._
112+
106113
`git clone https://$YOUR_PAT@github.com/organization/repo.git`
107114

108115
This line could also be useful for CI systems:
109116

110117
`git config --global url."https://$GIT_PAT@github.com/".insteadOf [email protected]:`
111118

112-
### Setting Git Config
119+
_$GIT_PAT should be a Secret stored in CI._
120+
121+
## Git Config
113122

114123
These lines are useful to set your git email/name:
115124

@@ -129,7 +138,7 @@ Run in the root of the repo:
129138
- `git config user.email`
130139
- `git config user.name`
131140

132-
# Step 5: Configure Settings
141+
# Step 6: Configure Settings
133142
Here's a list of recommended settings to customize:
134143
135144
## System Settings
@@ -203,7 +212,15 @@ osascript -e 'tell application "Dock" to quit'
203212
```
204213

205214
# Conclusion
206-
In conclusion, setting up a new MacBook can be an exciting but daunting experience, especially for those who are new to the Mac ecosystem. However, by following the five steps outlined in this article, you can ensure that your MacBook is up-to-date, decluttered, and customized to your needs. Updating the operating system, customizing the dock, logging in to your Apple ID account, downloading essential apps, and configuring settings will optimize your MacBook experience and make it more enjoyable to use.
215+
By following these steps, you can ensure that your MacBook is up-to-date, decluttered, and customized to your needs.
216+
217+
**What am I missing?**
218+
219+
---
220+
221+
## Related Articles
222+
223+
- [My Xcode Setup and Shortcuts](/2023-03-14-my-xcode-setup-and-shortcuts/)
207224

208225
<!-- Do not remove - SEO meta tags -->
209226
{% seo %}

0 commit comments

Comments
 (0)