Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
dotfilesで盆栽してみない?
Search
Junya Taniai
August 27, 2025
0
130
dotfilesで盆栽してみない?
Geeks Who Drink in Fukuoka ~わたしの『好き』と『これまで』~
https://nulab.connpass.com/event/361974/
で使用した資料です。
Junya Taniai
August 27, 2025
Tweet
Share
More Decks by Junya Taniai
See All by Junya Taniai
Actions Runner Controllerを利用したPlatform Engineering
jnytnai0613
1
590
Actions Runner Controller Deep Dive
jnytnai0613
4
820
沈め!KubernetesOperator沼!!
jnytnai0613
5
830
[Alpha] PodでUserNamespaceを使おう
jnytnai0613
0
810
Featured
See All Featured
Git: the NoSQL Database
bkeepers
PRO
431
66k
Building Adaptive Systems
keathley
43
2.8k
Music & Morning Musume
bryan
46
6.8k
Documentation Writing (for coders)
carmenintech
75
5k
Become a Pro
speakerdeck
PRO
29
5.5k
GraphQLの誤解/rethinking-graphql
sonatard
73
11k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
188
55k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
KATA
mclloyd
32
15k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.5k
Building an army of robots
kneath
306
46k
Transcript
dotfilesで盆栽してみない?
自己紹介 谷合 純也 / Junya Taniai クラウドインフラエンジニア@AP Communications Platform Engineering
/ Internal Developer Platform (IDP) GitHub Actions / Actions Runner Controller の運用基盤を構築・改善 Terraform / Argo CD / Backstage / dotfiles など育成中 Speaker Deck: jnytnai0613 GitHub: jnytnai0613 X: jnytnai0530
dotfilesってなんなん? dotfiles とは ~/.vimrc、~/.zshrc、〜/.config/ などのホームディレクトリ 直下にある . で始まるファイルやディレクトリのことです。 これを集約し、GitHubリポジトリなどに置いて再セットアップの手間を大幅に 低減しようという試みのこと。
魅力 環境の再現が爆速 名刺代わりになる モテる(?) 何よりも育てる楽しさ
育てている設定 ファイルたち 🖥️ .zshrc 📦 "AQUA" aqua.yaml 🍺 "Brew" Brewfile
🔌 "Krew" krewfile ✨ "Starship" starship.toml 🎨 "git-cz" change.config.js 🎨 "VSCode" setting.json
とりまリンク貼ろ? 以降で説明するが、各種ツールの構成情報や設定ファ イルは全自動でGitHubに保存する。 これらのファイル はシンボリックリンクとして紐付け、dotfiles側に変 更をリンクさせる。 ln -sf $(pwd)/.zshrc ~/.zshrc
ln -sf $(pwd)/.config/starship.toml ~/.config/starship.toml ln -sf $(pwd)/.config/aqua/aqua.yaml ~/.config/aqua/aqua.yaml ln -sf $(pwd)/.config/brew/brewfile ~/.config/brew/brewfile ln -sf $(pwd)/.config/krew/krewfile ~/.config/krew/krewfile ln -sf $(pwd)/changelog.config.js ~/changelog.config.js
Taskrunnerで自動 化しよう Homebrewやkrewでインストールしたツールはdumpとし て保存する。 util:brewbundle: # desc: brew bundle dump
summary: | Brewfileの出力 aliases: - bd cmd: brew bundle dump -f --file=~/.config/brew/brewfile silent: true util:krewbundle: # desc: krew dump summary: | krewfileの出力 aliases: - kd cmd: kubectl krew list | awk '{print}' > ~/.config/krew/krewfile silent: true
GitHubへのPushと Mergeも全自動化 _git:auto: summary: | git add, commit, push までを自動化
cmds: - git fetch --prune --all - git checkout origin/HEAD - git add . - git commit -m"{{.TITLE}}" - git push origin HEAD:refs/heads/{{.BRANCH}} -f _git:gh: summary: | - GitHub CLI を使用して PR を作成し、オートマージを設定する cmds: - gh pr create -t "{{.TITLE}}" -b "" -l "" -H "{{.BRANCH}}" -B "m - sleep 1 - gh pr merge "{{.BRANCH}}" --auto -s - git switch main - git pull origin main
Thanks 普段育てている盆栽dotfilesも是非ご覧ください!