cd ~
git init
git remote add origin git@github.com:amekusa/home.git
git pull origin
git submodule update --init
Change global install path to ~/.npm-global
npm config set prefix "${HOME}/.npm-global"
# Install:
git clone https://github.com/Homebrew/brew.git .brew
# Make sure if there are any issues with:
brew doctor
# 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
- Download https://curl.se/ca/cacert.pem
- Replace
/etc/ssl/cert.pem
with it
cd /etc/ssl
sudo mv cert.pem cert.pem.org
sudo cp ~/Downloads/cacert.pem ./cert.pem
# 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
# Cleanup caches
brew cleanup -s
# Uinstall unnecessary packages
brew autoremove
# Update packages
brew update
Install latest node via n.
n latest
# 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
# To see all the packages installed:
npm ls -g --depth=0
# Update packages (required: npm-check-updates)
ncu -g -u
# Global ignore
git config --global core.excludesfile ~/.gitignore_global
# Ddefault editor (nano)
git config --global core.editor "nano"