Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ricsam/macos-setup
https://github.com/ricsam/macos-setup
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ricsam/macos-setup
- Owner: ricsam
- Created: 2024-03-21T10:56:56.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-06-22T10:59:15.000Z (5 months ago)
- Last Synced: 2024-06-22T19:56:26.531Z (5 months ago)
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# macos-setup
Install Xcode Command Line Tools
```bash
xcode-select --install
```## Settings
* Keyboard - key repeat + delay until repeat -> fast / short
* Keyboard - key repeats: `defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false`
* Trackpad - stracking speed -> fast
* Trackpad - Tap to click -> Yes
* Trackpad - secondary click -> click with two fingers
* Trackpad - more gestures -> swipe between pages -> swipe with three fingers
* Input sources, remove extra input source, us only keyboard## Programs
* iterm
* arc
* [brew](https://brew.sh/)
* install watchman (on intel) `brew install watchman`
* install watch `brew install watch`
* install [mkcert](https://github.com/FiloSottile/mkcert?tab=readme-ov-file#macos)## Shell
Install oh-my-zsh. Taken from [ohmyz.sh](https://ohmyz.sh/#install)
```bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
```Install zsh-autosuggestions. Takend from [github.com/zsh-users/zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md#oh-my-zsh)
```bash
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
```
add `zsh-autosuggestions` to the plugins in `vim ~/.zshrc` like
```bash
plugins=(
git
zsh-autosuggestions
)
```Add time to the prompt. Add the following to the end of the `~/.zshrc` file:
```bash
reset-prompt-and-accept-line() {
zle reset-prompt
zle accept-line
}zle -N reset-prompt-and-accept-line
bindkey '^m' reset-prompt-and-accept-line
PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%}%D{%H:%M:%S} % %{$reset_color%}'
```## Vscode
1. Install vscode
2. Login to setup settings sync
3. Install code to path
4. Select default terminal profile - zsh## Install font
[https://github.com/tonsky/FiraCode/wiki](https://github.com/tonsky/FiraCode/wiki)*Note:* Enable ligatures in vscode
## Git
```bash
git config --global user.email '[email protected]'
git config --global user.name 'Richie'
```## Docker
Docker engine settings
```json
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"dns": [
"8.8.8.8"
],
"experimental": false
}
```## Github
```bash
ssh-keygen -t rsa -b 4096 -f ~/.ssh/github
cat ~/.ssh/github.pub | pbcopy
````vim ~/.ssh/config` and add
```
Host github.com
AddKeysToAgent yes
UseKeychain yes
User git
IdentityFile ~/.ssh/github
HostName github.com
Port 22
```Verify with `ssh -T github.com`
## node
* Install [nvm](https://github.com/nvm-sh/nvm)
* `nvm install v18 && nvm use v18`
* Install bun
* Install [pnpm](https://pnpm.io/installation)