Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GitHubで始めるdotfiles管理 / Getting started with Git...

takasp
March 05, 2021

GitHubで始めるdotfiles管理 / Getting started with GitHub for dotfiles management

takasp

March 05, 2021
Tweet

More Decks by takasp

Other Decks in Programming

Transcript

  1. GitHubͰdotfilesϦϙδτϦΛ࡞੒͢Δ • ʮusername/dotfilesʯͰ࡞੒͢Δͷ͕Ұൠత • ࡞ͬͨϦϙδτϦΛclone͢Δʢྫ: ~/dotfilesʣ • ϩʔΧϧͷϗʔϜσΟϨΫτϦͷγΣϧͷઃఆϑΝΠϧʢྫ: ~/.bashrcʣΛೖΕΔ •

    γϯϘϦοΫϦϯΫΛషΔʢྫ: ln -s ~/dotfiles/.bashrc ~/.bashrcʣ • ίϛοτɺϓογϡͰ׬੒ʂ • ͋ͱ͸ܧ͗଍͠ɺઃఆϑΝΠϧΛߏ੒؅ཧ͍ͯ͘͠ • ஫ҙ఺ͱͯ͠ೝূ৘ใʢAWS΍SSHΩʔͳͲʣ͸؅ཧ͠ͳ͍͜ͱ
  2. dotfilesͰओʹ؅ཧ͢Δ΋ͷ • γΣϧͷઃఆʢ.bashrc, .zshrc, config/fish …ʣ • ΤσΟλͷઃఆʢ.vimrc, .emacs.el, .vscode/

    …ʣ • Gitͷઃఆʢ.gitconfig, .gitignore …ʣ • OSͷઃఆʢϚ΢ε, ΩʔϘʔυ, γϣʔτΧοτΩʔ …ʣ • ΞϓϦέʔγϣϯͷ؅ཧʢBrewfile …ʣ