Skip to content
Tsuyoshi Tokuda edited this page Nov 19, 2022 · 29 revisions

Software stacks

Getting started

Step 1: Install XCode & Command Line Tools

Install the XCode manually from App Store.
And then install the Command Line Tools on the following command line, it will ask for permission.

❯ xcode-select --install

Step 2: Install Homebrew

Homebrew is a package manager for macOS which lets us install free and open-source software using the terminal.
To install the Homebrew, execute the following command.

❯ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Step 3: Clone .dotfiles repository

❯ mkdir ~/Sources/github.com/tokuda109/
❯ cd ~/Sources/github.com/tokuda109/
❯ git clone [email protected]:tokuda109/dotfiles.git && cd dotfiles

Step 4: Bundle applications

Install tools and applications with Homebrew bundle.

❯ brew bundle

Step 5: Sync dotfiles

The bootstrap script can be run in the repository root.

❯ ./scripts/bootstrap

Step 6: Set up Fisher

Since I use Fisher as a plugin manager for the fish shell, run the following command to update the fish plugins.

❯ curl -sL https://git.io/fisher | source
❯ fisher update

Step 7: Set up Neovim

❯ git clone https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim

Step 8: Sync preferences via defaults commands

❯ ./defaults/dock
❯ ./defaults/iterm2
❯ ./defaults/safari

Step 9: Set up programming languages

I mainly use the following programming languages:

  • Node.js
  • Go

So I need to set up these environments by refer to installation page.

Step 10: Set up git

After executing the Step 5, ~/.config/git/ directory was copied.
The .gitconfig.local file will be read by ~/.config/git/.gitconfig as follows:

[include]
	path = ./.gitconfig.local

Create a .gitconfig.local with the following command:

❯ touch ~/.config/git/.gitconfig.local

And import the user account settings divided per remote repository path.

[includeIf "gitdir:~/Sources/github.com/tokuda109/"]
	path = ./.gitconfig.personal
[includeIf "gitdir:~/Sources/github.com/{Org account}/"]
	path = ./.gitconfig.org

I use ghq to manage remote repositories, so remote repositories are downloaded under ~/Sources/github.com/tokuda109/ directory.
In this directory, I want to do the signature commits under my personal account, so I create a file with the following settings:

[user]
	name = zzzzzzz
	email = [email protected]
	signingkey = xxxxxxxxxx