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

フロントエンドエンジニアのための Dotfiles

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

フロントエンドエンジニアのための Dotfiles

「フロントエンドエンジニアのための」というか「フロントエンド開発のための」です。

前半は超初心者向け、後半は中級者向けの内容です。

Avatar for Yoshihide Jimbo

Yoshihide Jimbo

May 24, 2014
Tweet

More Decks by Yoshihide Jimbo

Other Decks in Programming

Transcript

  1. • Grunt  ΍  YeomanɺBowerɺ  Git  ͳͲɺϑϩϯτΤ ϯυΤϯδχΞ͕λʔϛφϧΛ࢖͏ػձ͸͜͜ ਺೥Ͱٸʹ૿͖͑ͯͨͱײ͍ͯ͡Δɻ   •

    λʔϛφϧ͸ͪΐͬͱΧελϚΠζ͢Δ͚ͩͰ େ෯ʹੜ࢈ੑ͕͕͋Δɻ   • ʮࠇ͍ը໘ʯͱسΈݏΘͣλʔϛφϧͱ஥ྑ͘ ͳΖ͏ʂ
  2. $  cd  ../site1   $  cd  styles/   $  cd

     ../scripts/   $  cd  ../../site2   : cd  ίϚϯυͰ͋ͪͪ͜Ҡಈͯͨ͠Β…
  3. $  git  checkout  master   :   $  git  add

      $  git  commit GitϒϥϯνΛ͍Ζ͍Ζ੾Γସ͑ͯͨΒ…
  4. $  git  add   $  git  add   :  

    $  git  commit   :   $  git  add   : add  ͱ  commit  Λ܁Γฦͯͨ͠Β…
  5. jmblog@mba:  ~/src/site1/styles  on  master  [!]   $   ݱࡏͷҐஔ  

    ↓ ݱࡏͷϒϥϯν   ↓ ɹɹ↑   ϒϥϯνͷঢ়ଶ
  6. ʲิ଍1ʳ.bash_profile  Λ  GUI  ΤσΟλͰฤू͢Δํ๏ #  ϗʔϜσΟϨΫτϦʹҠಈ   $  cd  ~

      #.bash_profile  ͕ͳ͚Ε͹ۭϑΝΠϧͰ࡞੒   $  [  !  -­‐f  .bash_profile  ]  &&  touch  .bash_profile   #  CotEditor  Ͱ։͘   $  open  -­‐a  coteditor  .bash_profile   #  ฤू͕ऴΘͬͨΒಡΈࠐΉ   $  source  .bash_profile   #  alias  Λ࡞͓ͬͯ͘ͱศར   $  alias  coteditor="open  -­‐a  coteditor"   $  coteditor  .bash_profile
  7. ..  on  master[+] ʲิ଍2ʳϒϥϯνͷঢ়ଶදهʹ͍ͭͯ ..  on  master[!] ..  on  master[?]

    ..  on  master[$] add  ͚ͨ͠Ͳ  commit  ͕·ͩ add  ͕·ͩ όʔδϣϯ؅ཧର৅֎ git  stash  ͯ͋͠Δ
  8. ##  BSD  ls  (OS  X  ͸ͪ͜Β)   $  ls  -­‐G

      ! ###  GNU  ls  (Linux  ͳͲ͸ͪ͜Βʣ   $  ls  -­‐-­‐color=auto   ls  ͷ݁Ռʹ৭Λ͚ͭΔ
  9. #  Ӆ͠ϑΝΠϧΛؚΊ͢΂ͯදࣔ   $  ls  -­‐a   ! #  `.`

     ͱ  `..`  Ҏ֎͢΂ͯදࣔ   $  ls  -­‐A   ! #  σΟϨΫτϦʹ͸  `/`  Λ͚ͭΔ   $  ls  -­‐F   ! #  ৄࡉͳϑΥʔϚοτͰදࣔ   $  ls  -­‐l ls  ͷग़ྗ݁ՌΛΧελϚΠζ
  10. alias  ls="ls  -­‐GAF"   alias  ll="ls  -­‐l”   ! if

     [  $(uname)  =  "Linux"  ]     alias  ls="ls  -­‐-­‐color=auto  -­‐AF"   fi alias  Λ༻ҙ͓ͯ͘͠ͱΑ͍Ͱ͢ .bash_profile
  11. $  cd  -­‐ ௚લͷσΟϨΫτϦʹ໭Δ $  pwd   /Users/Yoshihide   $

     cd  Projects/jmblog@github/dotfiles   $  cd  -­‐   $  pwd   /Users/Yoshihide
  12. cd  Ͱ  typo  ͯ͠΋ࣗಈతʹਖ਼͍͠ύεʹ   Ҡಈͯ͘͠ΕΔΑ͏ʹ͢Δ shopt  -­‐s  cdspell .bash_profile

    ྫ͑͹ɺDocuments  σΟϨΫτϦʹҠಈ͠Α͏ͱͯ͠ $  cd  Document ͱೖྗͯ͠΋ Documents  ʹҠಈͯ͘͠ΕΔɻ
  13. ෆཁͳίϚϯυΛཤྺʹ࢒͞ͳ͍ export  HISTIGNORE="ls:ls  *:ll:ll  *:cd:cd  -­‐:pwd" .bash_profile HISTIGNORE  ʹ  

    ཤྺʹ࢒ͨ͘͠ͳ͍ίϚϯυΛʮ:ʯ۠੾ΓͰઃఆ͢Δɻ   ls  ΍  cd  Λઃఆ͓ͯ͘͠ͱΑ͍ɻ
  14. bash-­‐compleVon  /  git-­‐compleVon  Λಋೖ͢Δ $  brew  install  bash-­‐completion   $

     brew  install  git ίϚϯυͷೖྗ్தͰ  <TAB>  Λ  2ճԡ͢ͱ   ೖྗิ׬ͯ͘͠ΕΔΑ͏ʹͳΔɻ   ! ʢzshͳΒඪ४Ͱڧྗͳೖྗิ׬͕࢖͑·͢ɻʣ
  15. େจࣈ/খจࣈΛແࢹ͢Δ set  completion-­‐ignore-­‐case  on .inputrc ྫ͑͹ɺDocuments  σΟϨΫτϦʹҠಈ͠Α͏ͱͯ͠ $  cd  docu

    ͱೖྗͯ͠  <Tab>  Λԡ͢ͱɺDocuments  ͕ग़ΔΑ͏ʹͳΔɻ ʢ͜Ε΋  .inputrc  ʹهड़͢Δ͜ͱʂʣ
  16. Delay  UnVl  Repeat   100  ~  300  (default  is  500)

     ʹઃఆ͢Δ   ૣ͘͠ա͗Δͱίϐϖ͕ॏෳ͢ΔͷͰগ͠཈͑ؾຯʹ͢Δɻ   ! Key  Repeat   10ʙ30ఔ౓ʢdefault  83ʣ
  17. Do$iles  ͱ͸ʁ • ͖͞΄Ͳ͔Βग़͖͍ͯͯΔ  .bash_profile  ͸   Do<iles  ͷҰͭɻ  

    • ໊લ͕ʮ.ʢυοτʣʯͰ࢝·Δ֤छઃఆϑΝΠ ϧͷ͜ͱɻ   • ଟ͘͸ϗʔϜσΟϨΫτϦʹஔ͔ΕΔɻ
  18. ͳͥ  GitHub  Ͱ؅ཧͨ͠΄͏͕   ͍͍ͷ͔ʁ • ࣗ୐ͱձࣾͰಉ͡։ൃ؀ڥΛอ͓͖͍ͬͯͨ৔ ߹΍ɺ৽͍͠  Mac  Λങͬͨ࣌ͳͲʹɺ؆୯ʹࣗ

    ෼ͷ։ൃ؀ڥΛҠߦ/ಉظ͢Δ͜ͱ͕Ͱ͖Δɻ   • DropBox  Ͱ΋͍͍͚ͲɺMac  Ҏ֎Ͱ΋؀ڥҠߦΛ ͍ͨ͠৔߹͸ɺGitHub  ͷ΄͏͕ศརɻ