/configs

Various configuration files

Primary LanguageJavaScript

Shell

Setup

cd configs
nodenv install
npm run build
echo 'npm run build' > .git/hooks/post-merge && chmod +x .git/hooks/post-merge

.zshenv

export config_dir=$HOME/Development/configs

.zshrc

source "$config_dir/.zshrc"

Git

.gitconfig

[include]
    path = /path/to/.gitconfig
[core]
    excludesfile = /path/to/.gitignore_global

Hooks

Hooks are installed per-repo. To install:

  1. Confirm there are no existing hook files or Husky scripts which would be overwritten
  2. Copy the files from git-hooks to .git/hooks in the target repo
  3. Rename each moved file to remove .sh
  4. chmod +x each of the files

Configs

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

Tools

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