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
LLM生成文章の精度評価自動化とプロンプトチューニングの効率化について
layerx
PRO
2
190
EMになってからチームの成果を最大化するために取り組んだこと/ Maximize team performance as EM
nashiusagi
0
100
Arm移行タイムアタック
qnighy
0
330
watsonx.ai Dojo #4 生成AIを使ったアプリ開発、応用編
oniak3ibm
PRO
1
140
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
520
色々なIaCツールを実際に触って比較してみる
iriikeita
0
330
3rd party scriptでもReactを使いたい! Preact + Reactのハイブリッド開発
righttouch
PRO
1
610
Ethereum_.pdf
nekomatu
0
460
CSC509 Lecture 13
javiergs
PRO
0
110
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
距離関数を極める! / SESSIONS 2024
gam0022
0
290
NSOutlineView何もわからん:( 前編 / I Don't Understand About NSOutlineView :( Pt. 1
usagimaru
0
340
Featured
See All Featured
A Modern Web Designer's Workflow
chriscoyier
693
190k
A Tale of Four Properties
chriscoyier
156
23k
Teambox: Starting and Learning
jrom
133
8.8k
Designing the Hi-DPI Web
ddemaree
280
34k
The Invisible Side of Design
smashingmag
298
50k
Building Adaptive Systems
keathley
38
2.3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Unsuck your backbone
ammeep
668
57k
Become a Pro
speakerdeck
PRO
25
5k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
840
Bash Introduction
62gerente
608
210k
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