Prerequisuite

# MacOS
## Install Homebrew
## ref. https://brew.sh/
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

## Install the bash and change as the default shell
$ brew install bash

## Install packages
$ brew install bash-completion bat coreutils findutils git gpg pinetry-mac npm starship stow ripgrep wget

Install/Uninstall

# Migrate from the local $HOME to dotfiles
$ cp -r ~/<config/path>/* <pkg>

# Link
$ stow -nv -S <pkg> -t ~        # Simulate before install
$ stow -v -S <pkg> -t ~
$ stow -v -S <pkg> -t ~/.config/<pkg>
$ stow -v -S <pkg> -t ~ --adopt # Overwirte to existing files
# vscode required
$ stow -nv -S vscode  -t ~/Library/Application\ Support/Code/User/ --adopt
$ stow -v -S vscode  -t ~/Library/Application\ Support/Code/User/ --adopt

# Unlink
$ stow -nv -D <pkg> -t ~        # Simulate before uninstall
$ stow -v -D <pkg> -t ~

# Install scripts as binaries
$ stow -v -S scripts -t /usr/local/bin