macOS用の開発環境セットアップ
# 1. Homebrewをインストール(未インストールの場合)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
# 2. dotfilesをcloneしてインストール
cd ~
git clone https://github.com/kazuph/dotfiles.git
cd dotfiles
./install.sh- starship - モダンなプロンプト
- zoxide - スマートなcd(
zコマンド) - eza - モダンなls(アイコン/Git対応)
- bat - モダンなcat(シンタックスハイライト)
- ripgrep - 高速grep
- fd - 高速find
- fzf - ファジーファインダー
- ghq - Gitリポジトリ管理
- gh - GitHub CLI
- UDEV Gothic NF - UDフォント + JetBrains Mono + Nerd Font
- Hack Nerd Font
- Neovim (AstroNvim)
- tmux + Catppuccin テーマ
- Ghostty 設定
# シェル再起動
exec zsh
# tmuxプラグインインストール(tmux内で)
# prefix + I (Ctrl+T, I)Ghosttyは以下の2箇所に設定ファイルを持つ可能性がある:
~/.config/ghostty/config- 標準の場所~/Library/Application Support/com.mitchellh.ghostty/config- macOS固有
シンボリックリンクを正しく動作させるには:
# macOS固有の設定を削除
rm -rf ~/Library/Application\ Support/com.mitchellh.ghostty/
# シンボリックリンクを作成
ln -snfv ~/dotfiles/.config/ghostty ~/.config/ghosttyこれでGhosttyは ~/.config/ghostty/config を使用するようになる。