-
本リポジトリをクローン
git clone https://${GIT_USER_PRIVATE}:${GIT_TOKEN_PRIVATE}@github.com/${GIT_USER_PRIVATE}/dotfiles ~/dotfiles
-
Homebrew をインストール
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
各種パッケージをインストール
cd homebrew brew bundle
-
Macにインストール済みのパッケージとBrewfileにあるパッケージを比較して、未インストールのパッケージのリストを表示
brew bundle cleanup
-
Macにインストール済みのパッケージとBrewfileにあるパッケージを比較して、未インストールのパッケージをMacから削除する
brew bundle cleanup --force
-
アグレッシブにパッケージアップデートする
brew update brew upgrade --cask --greedy brew bundle
※ 予め、Homebrewで
font-hackgen
をインストール済みであること
-
iterm2でフォントを変更
Preferences -> Profiles -> Text -> Font #=> 「HackGen35」を選択 #=> font sizeで16を選択
-
powerline-shellをインストール
git clone https://github.com/b-ryan/powerline-shell cd powerline-shell python3 setup.py install
-
設定ファイルのシンボリックリンクを作成
mkdir ~/.config/powerline-shell ln -sf ~/dotfiles/powerline-shell/config.json ~/.config/powerline-shell/config.json
※
git config user.name
が未設定だとpowerline-shellのエラーメッセージが表示されるため、予め.config/zsh/env.zsh
でユーザー名を定義しておくこと
-
シンボリックリンクを作成
ln -sf ~/dotfiles/zsh/zshrc ~/.zshrc
-
設定内容を読み込む
source ~/.zshrc
- import 機能で設定ファイルを読み込む
-
設定ファイルを反映する
# VSCode cd ~/dotfiles/vscode bash install.sh # Cursor cd ~/dotfiles/cursor bash install.sh
ruby/*
配下に目的ごとにディレクトリを切ってgemをインストールできるようにしている