This repository contains personal dotfiles and scripts for setting up a new Mac, inspired by Nina Zakharenko. Aliases and macOS configuration heavily inspired by Mathias's dotfiles. This repo was originally forked from Sean Meling Murray's mac setup.
- How to Set Up Your MacBook for Web Development in 2020
- Boost Your Command-Line Productivity With Fuzzy Finder
- Homebrew
- Madam, I'm yadm
- Making the M1 Leap
- Setting Up A New Macbook Pro
- mac-dev-setup (github.com/michaelschwobe)
Note that Homebrew requires XCode. Depending on your operating system, you may or may not have XCode installed.
To download the CLT tools for XCode, run the following command:
xcode-select --install
To setup your new Mac, run the following command:
sh -c "`curl -L https://git.io/JU06o`"
The following steps are performed manually:
-
Activate Powerpack.
-
Install workflows:
-
Enable Google Suggest (Examples > Google Suggest).
-
Add iTerm2 integration.
Install Chrome extension.
- iTerm2 → Profiles → General
- Other Actions → Import JSON profiles
- Change bright black to lighter colour for visibility when using
zsh-autosuggestions
. - Optional: iTerm2 → Preferences → General
- Load preferences from custom folder (initialise empty folder)
- Save changes to folder when iTerm2 quits
- Save current settings
- Powerlevel10K should automatically prompt you to download the Meslo Nerd font. If it doesn't, download them and install manually. After installation, set your font to MesloLGS NF in iTerm.
- Uncomment
battery
intypeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS
, move to appropriate place.
- System Preferences → Keyboard
- Adjust Key Repeat and Delay Until Repeat to desired sensitivity.
- Press Fn key to: Show Control Strips
- Remap ⌘ + Space to Alfred, change Spotlight to ⌥ + Space.
- System Preferences → Keyboard → Customise Control Strip
- Remove Siri from Touch Bar
- System Preferences → Trackpad
- Secondary click
- Tap to click
- Change where screenshots are saved: Screenshot → Options → Save to.
- Open Code → Preferences → Settings:
terminal.integrated.fontFamily
, set the value toMesloLGS NF
-
files.trimTrailingWhitespace
-
editor.formatOnSave
- Shell command: Install 'code' command in PATH
- Install the following extensions:
- Dracula Official
- ESLint
- GitLens
- Prettier
- Python
- Python Docstring Generator
- Rainbow Brackets
- Svelte 3 Snippets
- Svelte for VS Code
- Svelte Intellisense
- Todo Tree
- vscode-icons
plugins=(git alias-finder jsontools)
- If you notice your shell is slow when pasting text into it, you might want to uncomment this line in your
.zshrc
:# DISABLE_MAGIC_FUNCTIONS=true
.
- Key bindings:
# Add to .zshrc
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
-
See Boost Your Command-Line Productivity With Fuzzy Finder for an excellent guide to
fzf
. -
Fix problem with Alt + C by adding
bindkey "ç" fzf-cd-widget
to.zshrc
. -
fzf
binds**
to fuzzy autocompletion, which conflicts with globbing. To change this, setexport FZF_COMPLETION_TRIGGER='**'
in.zshrc
and change**
to whatever you like. -
Optional: Options can be added to
$FZF_DEFAULT_OPTS
so that they are always applied, not only tofzf
but also when using key bindings and fuzzy completion.
# Add to .zshrc
export FZF_DEFAULT_OPTS="
--layout=reverse
--info=inline
--height=80%
--multi
--preview-window=:hidden
--preview '([[ -f {} ]] && (bat --style=numbers --color=always {} || cat {})) || ([[ -d {} ]] && (tree -C {} | less)) || echo {} 2> /dev/null | head -200'
--color='hl:148,hl+:154,pointer:032,marker:010,bg+:237,gutter:008'
--prompt='∼ ' --pointer='▶' --marker='✓'
--bind '?:toggle-preview'
--bind 'ctrl-a:select-all'
--bind 'ctrl-y:execute-silent(echo {+} | pbcopy)'
--bind 'ctrl-v:execute(code {+})'
"
- Note that the options above require
bat
, which can be install viabrew install bat
. WARNING:bat
installation takes a long time on older versions of macOS.
- TinkerTool - https://www.bresink.com/osx/TinkerTool.html
- CheatSheet - https://www.mediaatelier.com/CheatSheet/
- ImgOptim - https://imageoptim.com/mac
- Dropzone - https://aptonic.com
- IINA - https://iina.io
- Overcast - https://overcast.fm
- Alfred - https://alfredapp.com
- Mathpix Snip - https://mathpix.com
- Mockuuups Studio - https://mockuuups.studio
- Front and Center - https://hypercritical.co/front-and-ce...
- TextSniper - https://textsniper.app
- Magnet - https://magnet.crowdcafe.com
- PDF Squeezer - https://www.witt-software.com/pdfsque...
- HomeControl - https://apps.apple.com/us/app/homecon...
- Reeder - https://reederapp.com
- Bartender - https://www.macbartender.com
- 1Password - https://1password.com
- Fantastical - https://flexibits.com/fantastical
- Craft - https://www.craft.do