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
GitHubで始めるdotfiles管理 / Getting started with Git...
Search
takasp
March 05, 2021
Programming
0
33
GitHubで始めるdotfiles管理 / Getting started with GitHub for dotfiles management
takasp
March 05, 2021
Tweet
Share
More Decks by takasp
See All by takasp
監視のための統計入門 / Introduction to Statistics for Monitoring
takasp
0
100
Google App Engineを始めよう / Getting Started with Google App Engine
takasp
0
47
Git中級者になるためのrebase入門 / Introduction to rebase to become an intermediate Git user
takasp
0
54
第三回 Datadog 共有会 / Datadog Sharing 3rd
takasp
0
71
第二回 Datadog 共有会 / Datadog Sharing 2nd
takasp
0
72
Datadog 共有会 / Datadog Sharing
takasp
1
49
Git ハンズオン Part 1 / Git Handson Part 1
takasp
0
55
Docker ハンズオン 基礎編2 / Docker Handson Basic 2
takasp
1
88
Docker ハンズオン 基礎編1 / Docker Handson Basic 1
takasp
1
170
Other Decks in Programming
See All in Programming
ペアーズにおけるAmazon Bedrockを⽤いた障害対応⽀援 ⽣成AIツールの導⼊事例 @ 20241115配信AWSウェビナー登壇
fukubaka0825
6
2k
色々なIaCツールを実際に触って比較してみる
iriikeita
0
330
RubyLSPのマルチバイト文字対応
notfounds
0
120
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
520
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
1k
Jakarta EE meets AI
ivargrimstad
0
240
Better Code Design in PHP
afilina
PRO
0
130
Laravel や Symfony で手っ取り早く OpenAPI のドキュメントを作成する
azuki
2
120
TypeScript Graph でコードレビューの心理的障壁を乗り越える
ysk8hori
3
1.2k
アジャイルを支えるテストアーキテクチャ設計/Test Architecting for Agile
goyoki
9
3.3k
Enabling DevOps and Team Topologies Through Architecture: Architecting for Fast Flow
cer
PRO
0
340
「今のプロジェクトいろいろ大変なんですよ、app/services とかもあって……」/After Kaigi on Rails 2024 LT Night
junk0612
5
2.2k
Featured
See All Featured
Statistics for Hackers
jakevdp
796
220k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Embracing the Ebb and Flow
colly
84
4.5k
Facilitating Awesome Meetings
lara
50
6.1k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
Docker and Python
trallard
40
3.1k
GitHub's CSS Performance
jonrohan
1030
460k
Optimizing for Happiness
mojombo
376
70k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Six Lessons from altMBA
skipperchong
27
3.5k
Transcript
GitHubͰ࢝ΊΔdotfilesཧ # ୈ3ճϥϯνLT @takasp 20213݄5
ରௌߨऀ • dotfilesͬͯԿʁͬͯਓ • PCΛม͑Δͨͼʹઃఆ͕ΊΜͲ͍͘͞ͱࢥ͏ਓ • ςϯγϣϯ্͕͕ΔTerminalͰ࡞ۀ͍ͨ͠ͱࢥ͏ਓ
Δ͜ͱɾΒͳ͍͜ͱ • Δ͜ͱ • GitHubͰͷdotfilesͷཧख๏ • Βͳ͍͜ͱ • ઃఆϑΝΠϧʢγΣϧΤσΟλͳͲʣͷࡉ͔ͳઆ໌
Agenda • dotfilesͱʁ • GitHubͰͷཧख๏ • dotfilesͰͷཧର • DEMO •
·ͱΊ
dotfilesͱʁ • ϗʔϜσΟϨΫτϦʹ͋Δυοτʢ.ʣ͔Β࢝·ΔઃఆϑΝΠϧͷ͜ͱ • .bashrc.zshrcͳͲ • γΣϧͷઃఆ͔ΒΞϓϦέʔγϣϯͷઃఆϑΝΠϧ·Ͱ༷ʑ • GitHubͰߏཧΛ͍ͯ͠ΕͲΜͳڥͰࣗͷڥ͕ల։Ͱ ͖ΔΑ͏ʹͳΔʂ
GitHubͰͷཧख๏
GitHubͰdotfilesϦϙδτϦΛ࡞͢Δ • ʮusername/dotfilesʯͰ࡞͢Δͷ͕Ұൠత • ࡞ͬͨϦϙδτϦΛclone͢Δʢྫ: ~/dotfilesʣ • ϩʔΧϧͷϗʔϜσΟϨΫτϦͷγΣϧͷઃఆϑΝΠϧʢྫ: ~/.bashrcʣΛೖΕΔ •
γϯϘϦοΫϦϯΫΛషΔʢྫ: ln -s ~/dotfiles/.bashrc ~/.bashrcʣ • ίϛοτɺϓογϡͰʂ • ͋ͱܧ͗͠ɺઃఆϑΝΠϧΛߏཧ͍ͯ͘͠ • ҙͱͯ͠ೝূใʢAWSSSHΩʔͳͲʣཧ͠ͳ͍͜ͱ
dotfilesͷߋ৽࣌ʹ͢Δ͜ͱ • ઃఆϑΝΠϧͷमਖ਼ʢgitͷdiff͕ൃੜ͢Δʣ • ίϛοτɺϓογϡʂ
dotfilesͷڥߏங࣌ʹ͢Δ͜ͱ • dotfilesϦϙδτϦΛclone͢Δ • ࣗ࡞ͷΠϯετʔϥʔΛ࣮ߦ͢Δ • ڥߏஙͷྃʂ
dotfilesͰͷཧର
dotfilesͰओʹཧ͢Δͷ • γΣϧͷઃఆʢ.bashrc, .zshrc, config/fish …ʣ • ΤσΟλͷઃఆʢ.vimrc, .emacs.el, .vscode/
…ʣ • Gitͷઃఆʢ.gitconfig, .gitignore …ʣ • OSͷઃఆʢϚε, ΩʔϘʔυ, γϣʔτΧοτΩʔ …ʣ • ΞϓϦέʔγϣϯͷཧʢBrewfile …ʣ
γΣϧͷઃఆʢZsh, Preztoͷ߹ʣ • aliasίϚϯυͷઃఆ • ڥมͷઃఆ • ϑϨʔϜϫʔΫΛͬͨςʔϚઃఆ • etc…
Preztoͱʁ • ZshϑϨʔϜϫʔΫͷҰछ • ͍͍ײ͡ͷςʔϚ͕બΔ • ଞͷϑϨʔϜϫʔΫʢoh-my-zshʣΑΓىಈ͕ૣ͍ʢΒ͍͠ʣ
ΤσΟλͷઃఆʢVimͷ߹ʣ • ΩʔϚοϓͷઃఆ • γϯλοΫεϋΠϥΠτͷઃఆ • ϓϥάΠϯͷཧʢσΟϨΫτϦπϦʔͷදࣔɺεςʔλεͷද ࣔ …ʣ •
etc…
Gitͷઃఆ • Ϣʔβʔઃఆ • ίϛοτ࣌ͷ༻ΤσΟλͷઃఆ • aliasίϚϯυͷઃఆ • άϩʔόϧͰͷignoreઃఆ •
etc…
OSͷઃఆʢMacOSͷ߹ʣ • τϥοΫύουͷઃఆ • ΩʔϘʔυͷઃఆ • Finderͷઃఆ • γϣοτΧοτΩʔͷઃఆ •
etc…
ΞϓϦέʔγϣϯͷཧʢHomebrewͷ߹ʣ • HomebrewBrewfileͱ͍͏ϑΝΠϧͰΠϯετʔϧ͢ΔΞϓϦέʔ γϣϯΛఆٛͰ͖Δ • brew bundleίϚϯυͰҰׅΠϯετʔϧͰ͖Δ • masίϚϯυΛ͏ͱApp StoreཧͷΞϓϦέʔγϣϯΠϯε
τʔϧͰ͖Δ
dotfilesͰCIΛճ͢ • GitHubͳΒGitHub ActionsͰCIΛಈ͔ͤΔ • ඞཁͳϥΠϒϥϦɺΞϓϦέʔγϣϯͷΠϯετʔϧνΣοΫ • ϑΝΠϧͷσϓϩΠνΣοΫ • εΫϦϓτͷlint
• etc…
DEMO
·ͱΊ • dotfilesGitHubͰཧ͓ͯ͘͠ͱڥߏங͕ḿΔ • ΞϓϦέʔγϣϯཧͰ͖Δ • ڥΛյͯ҆͠৺ͯͤ͠Δ • CIΛճ͓͚͍ͯͭ͠Ͱ҆৺ͯ͠ಈ࡞͕୲อͰ͖Δ
ࢀߟจݙ • https://qiita.com/b4b4r07/items/b70178e021bef12cd4a2 • https://qiita.com/yutkat/items/c6c7584d9795799ee164