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

頑張らないzsh環境

 頑張らないzsh環境

いかに頑張らずにzsh環境を作る方法紹介しています

6094c91088af5e8ea5094aa750d13570?s=128

cottondesu

April 22, 2018
Tweet

Transcript

  1. 2018年04月15日 kanazawa.rb meetup#68 ؤுΒͳ͍[TI؀ڥ

  2. !DPUUPO@EFTV ΏΔͬͱ;ΘͬͱอकΤϯδχΞ ׂ৽ن։ൃ ׂอक ػೳ௥Ճɺػೳमਖ਼ɺόάमਖ਼ FUD

  3. [TIͱ͸ʁ

  4. [TI • ಡΈํ͸ʮ͡ʔ͐͠Δʯ • UnixͷίϚϯυγΣϧͷ1ͭ • Bourne ShellΛϕʔεͱ͠ɼkshɼcshʢtcshʣɼ bashͷ༏ΕͨػೳΛऔΓࠐΜͩγΣϧ •

    ߴػೳɾଟػೳͳγΣϧͷͨΊɺશ༰Λ ௫Ήͷ͕ࠔ೉
  5. PINZ[TIͱ͸ʁ

  6. PINZ[TI • zsh ͷઃఆΛ؅ཧ͢ΔϑϨʔϜϫʔΫ • ίϛϡχςΟओಋ։ൃ • ଟ͘ͷςʔϚ • ଟ͘ͷϓϩϯϓτ

    • ଟ͘ͷϓϥάΠϯ • ࣗಈΞοϓσʔτػೳ • ͍Ζ͍Ζͱઃఆ
  7. ͬ͘͞ͱ؀ڥ࡞Γ

  8. ࠷৽൛͸Homebrew ͰΠϯετʔϧ [TIΠϯετʔϧ MacOSͷ৔߹ɺඪ४Πϯεʔϧࡁ λʔϛφϧ͔ΒҎԼΛ࣮ߦ zsh brew install zsh

  9. # List of acceptable shells for chpass(1). # Ftpd will

    not allow users to connect who are not using # one of these shells. /bin/bash /bin/csh /bin/ksh /bin/sh /bin/tcsh /bin/zsh /usr/local/bin/zsh #௥Ճ /etc/shellsͷ֬ೝɺฤू ࣗ෼Ͱ༻ҙͨ͠γΣϧʹมߋ͍ͨ͠৔߹͸຤ඌʹ௥Ճ͢Δ ϩάΠϯγΣϧมߋ ϩάΠϯγΣϧͷมߋ chsh -s /usr/local/bin/zsh
  10. ϩάΠϯγΣϧ͕ [TIʹมΘΓ·ͨ͠

  11. PINZ[TIΠϯετʔϧ λʔϛφϧ͔ΒҎԼΛ࣮ߦ(ެࣜαΠτΑΓ) sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/ oh-my-zsh/master/tools/install.sh)"

  12. λʔϛφϧ͕ ੜ·ΕมΘΓ·ͨ͠

  13. σϑΥϧτͰgitίϚϯυͷิ׬ઃఆࡁ ίϚϯυ + tabΩʔͰิ׬ػೳ σϑΥϧτ

  14. σϑΥϧτ ΧϨϯτσΟϨΫτϦʹgitϨϙδτϦ͕ ͋Δ৔߹͸ɺϒϥϯν໊Λදࣔ͢Δ

  15. σϑΥϧτ σϑΥϧτͷςʔϚͷදࣔ

  16. ςʔϚมߋ ࢼ͠ʹςʔϚΛ[kolo]ʹมߋ git add͍ͯ͠ͳ͍ଘࡏ΍ git add͍ͯ͠Δଘࡏ͕ύοͱݟͰ෼͔Δ