This repository contains config files to set up my systems and keep them in sync.
-
Install homebrew
-
brew install rcm topgrade
-
git clone [email protected]:gildesmarais/dotfiles.git ~/.dotfiles && cd ~/.dotfiles && rcup -v
-
topgrade
-
cd ~/.dotfiles && brew bundle
-
Setup vim:
mkdir -p ~/.vim/backups mkdir -p ~/.vim/swaps mkdir -p ~/.vim/undo
After symlinking the Brewfile, install the specified applications with:
brew bundle install --global
- Open Screenshot App, Options, Location -> Other Location
defaults write com.apple.screencapture disable-shadow -bool true
- Drag "Location" to Dock, open as Fan
sudo vim /etc/pam.d/sudo
Add as first line:
auth sufficient pam_tid.so
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
mkdir -p ~/.zprezto-contrib
- open a fresh
zsh
shell
- Enable key repeat on hold:
defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
brew install duti python-yq
curl "https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml" \
| yq -r "to_entries | (map(.value.extensions) | flatten) - [null] | unique | .[]" \
| xargs -L 1 -I "{}" duti -s com.microsoft.VSCode {} all
Find other editors by lsappinfo | grep 'bundleID="' | cut -d'"' -f2 | sort
.
Source: https://alexpeattie.com/blog/associate-source-code-files-with-editor-in-macos-using-duti/