cd configs
nodenv install
npm run build
echo 'npm run build' > .git/hooks/post-merge && chmod +x .git/hooks/post-merge
export config_dir=$HOME/Development/configs
source "$config_dir/.zshrc"
[include]
path = /path/to/.gitconfig
[core]
excludesfile = /path/to/.gitignore_global
Hooks are installed per-repo. To install:
- Confirm there are no existing hook files or Husky scripts which would be overwritten
- Copy the files from
git-hooks
to.git/hooks
in the target repo - Rename each moved file to remove
.sh
chmod +x
each of the files
Config files can be linked to their corresponding directory:
ln -si $config_dir/.prettierrc ~/.prettierrc
ln -si $config_dir/vscode/settings.json ~/Library/Application\ Support/Code/User/settings.json
ln -si $config_dir/vscode/keybindings.json ~/Library/Application\ Support/Code/User/keybindings.json
ln -si $config_dir/karabiner ~/.config
mkdir -p ~/Library/KeyBindings
ln -si $config_dir/DefaultKeyBinding.dict ~/Library/KeyBindings/DefaultKeyBinding.dict
Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew tap ouchxp/nodenv
brew install \
autojump \
ripgrep \
fd \
jq \
nodenv \
nodenv-nvmrc \
shellcheck \
fzf
/usr/local/opt/fzf/install --key-bindings --completion --no-update-rc