Skip to content

amekusa/home

Repository files navigation

Home Directory on macOS

Installation

cd ~
git init
git remote add origin git@github.com:amekusa/home.git
git pull origin
git submodule update --init

NPM

Change global install path to ~/.npm-global

npm config set prefix "${HOME}/.npm-global"

Homebrew

# Install:
git clone https://github.com/Homebrew/brew.git .brew

# Make sure if there are any issues with:
brew doctor

Packages to install

# Additional repositories:
brew tap homebrew/services
brew tap homebrew/cask-fonts

# Shell (zsh)
brew install zsh

# Utilities:
brew install tmux tig lazygit googler

# Web server, SQL, PHP:
brew install nginx mariadb php composer

# Fonts:
brew install --cask font-fira-code font-fira-code-nerd-font font-iosevka

# Ungoogled Chromium for browser testing:
brew cask install eloston-chromium

Fixing curl failing due to expired certs

  1. Download https://curl.se/ca/cacert.pem
  2. Replace /etc/ssl/cert.pem with it
cd /etc/ssl
sudo mv cert.pem cert.pem.org
sudo cp ~/Downloads/cacert.pem ./cert.pem

Enable the homebrew version of zsh as the default shell

# Check the path to the zsh you want to enable
which zsh

# Add the path to /etc/shells
sudo nano /etc/shells

# Set the path as your default shell
chsh -s $(which zsh)

After restarting the computer, make sure that $SHELL is pointing at the correct path.

echo $SHELL

Maintenance

# Cleanup caches
brew cleanup -s

# Uinstall unnecessary packages
brew autoremove

# Update packages
brew update

Node.js

Install latest node via n.

n latest

Packages to install

# Utilities:
npm i -g npm-check-updates

# Automation:
npm i -g npm-watch

# Bundler:
npm i -g rollup
npm i -g @rollup/plugin-babel @rollup/plugin-node-resolve @rollup/plugin-commonjs

# Debug, Testing, Code Coverage:
npm i -g source-map-support
npm i -g mocha c8 codecov

# Documentation Generator:
npm i -g jsdoc

Maintenance

# To see all the packages installed:
npm ls -g --depth=0

# Update packages (required: npm-check-updates)
ncu -g -u

Git

# Global ignore
git config --global core.excludesfile ~/.gitignore_global

# Ddefault editor (nano)
git config --global core.editor "nano"

Releases

No releases published

Packages

No packages published

Languages