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
48
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
560
Actions Runner Controller Deep Dive
jnytnai0613
4
800
沈め!KubernetesOperator沼!!
jnytnai0613
5
830
[Alpha] PodでUserNamespaceを使おう
jnytnai0613
0
780
Featured
See All Featured
What's in a price? How to price your products and services
michaelherold
246
12k
Thoughts on Productivity
jonyablonski
69
4.8k
Into the Great Unknown - MozCon
thekraken
40
2k
YesSQL, Process and Tooling at Scale
rocio
173
14k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
How STYLIGHT went responsive
nonsquared
100
5.7k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
Optimising Largest Contentful Paint
csswizardry
37
3.4k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3k
Code Reviewing Like a Champion
maltzj
525
40k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
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も是非ご覧ください!