Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

watanabe-sota の macOS dotfiles。

セットアップ(新しいマシン)

# 0. git を用意する。まっさらな Mac は git が無い(Xcode CLT に含まれる)ため、まず CLT を入れる。
#    Homebrew を先に入れる場合はそのインストーラが CLT も入れるのでこの手順は不要。
xcode-select --install

# 1. clone(public リポジトリなので SSH 鍵が無くても HTTPS で取得できる)
git clone https://github.com/sotabkw/dotfiles.git ~/dotfiles

# 2. Homebrew パッケージ + symlink + VS Code をまとめて適用(Homebrew 未導入なら自動で入る)
cd ~/dotfiles && make install

# 3. 機密情報・マシン固有の環境変数を手動作成(リポジトリ管理外)
cp ~/dotfiles/zsh/.zshrc.local.example ~/.zshrc.local           # JIRA / gcloud などの値を記入
cp ~/dotfiles/git/.gitconfig-zerocolor.example ~/.gitconfig-zerocolor   # 仕事用 git 設定

# 4. 以後この dotfiles に push したくなったら GitHub 認証を通す(どちらか)。
#    - HTTPS: gh auth login(.gitconfig の credential helper が gh を使う。gh は Brewfile で導入済み)
#    - SSH:   ssh-keygen で鍵を作り GitHub に登録し、remote を git@github.com:sotabkw/dotfiles.git に変更

構成

ディレクトリ 内容
zsh/ .zshrc.zshrc.local で機密を分離)
git/ .gitconfig~/ZeroColor/ 配下は .gitconfig-zerocolor を include)
vim/ .vimrc / .gvimrc
brew/ Brewfile(バージョン管理は mise に一本化)
ghostty/ Ghostty 設定
starship/ プロンプト設定
vscode/ 拡張機能リスト・keybindings・settings
config/iterm2/ iTerm2 設定(バックアップ用。通常は Ghostty を使用)

make ターゲット

コマンド 内容
make install brew + symlink + vscode を一括適用
make all symlink のみ
make brew Brewfile の適用 + cleanup
make reload zsh / vim 設定をリロード
make clean symlink を削除

About

my dotfiles

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages