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
シールドクラスをはじめよう / Getting Started with Sealed Classes
mackey0225
3
430
EventSourcingの理想と現実
wenas
6
2.2k
Identifying User Idenity
moro
6
9.2k
광고 소재 심사 과정에 AI를 도입하여 광고 서비스 생산성 향상시키기
kakao
PRO
0
160
Nurturing OpenJDK distribution: Eclipse Temurin Success History and plan
ivargrimstad
0
320
PLoP 2024: The evolution of the microservice architecture pattern language
cer
PRO
0
2.2k
カスタムしながら理解するGraphQL Connection
yanagii
1
1.4k
From Subtype Polymorphism To Typeclass-based Ad hoc Polymorphism- An Example
philipschwarz
PRO
0
190
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
490
Dev ContainersとGitHub Codespacesの素敵な関係
ymd65536
1
140
Server Driven Compose With Firebase
skydoves
0
430
Googleのテストサイズを活用したテスト環境の構築
toms74209200
0
300
Featured
See All Featured
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Visualization
eitanlees
145
15k
Why Our Code Smells
bkeepers
PRO
334
57k
Teambox: Starting and Learning
jrom
133
8.8k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
KATA
mclloyd
29
14k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
A better future with KSS
kneath
238
17k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Raft: Consensus for Rubyists
vanstee
136
6.6k
4 Signs Your Business is Dying
shpigford
180
21k
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