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
52
第三回 Datadog 共有会 / Datadog Sharing 3rd
takasp
0
70
第二回 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
タクシーアプリ『GO』のリアルタイムデータ分析基盤における機械学習サービスの活用
mot_techtalk
4
130
Quine, Polyglot, 良いコード
qnighy
4
610
Kaigi on Rails 2024 - Rails APIモードのためのシンプルで効果的なCSRF対策 / kaigionrails-2024-csrf
corocn
5
3.7k
CSC509 Lecture 08
javiergs
PRO
0
110
OpenTelemetryでRailsのパフォーマンス分析を始めてみよう(KoR2024)
ymtdzzz
5
1.9k
カスタムしながら理解するGraphQL Connection
yanagii
1
1.4k
プロジェクト新規参入者のリードタイム短縮の観点から見る、品質の高いコードとアーキテクチャを保つメリット
d_endo
1
1.1k
Ethereum_.pdf
nekomatu
0
350
Identifying User Idenity
moro
6
9.2k
Outline View in SwiftUI
1024jp
1
260
WEBエンジニア向けAI活用入門
sutetotanuki
0
320
僕がつくった48個のWebサービス達
yusukebe
20
17k
Featured
See All Featured
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
390
Teambox: Starting and Learning
jrom
133
8.8k
Typedesign – Prime Four
hannesfritz
40
2.4k
Building Adaptive Systems
keathley
38
2.3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
42
2.2k
Docker and Python
trallard
40
3.1k
The Pragmatic Product Professional
lauravandoore
31
6.3k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Thoughts on Productivity
jonyablonski
67
4.3k
Facilitating Awesome Meetings
lara
49
6.1k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
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