Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

開発環境へのこだわり

 開発環境へのこだわり

SHIBATA Hiroshi

June 10, 2022
Tweet

More Decks by SHIBATA Hiroshi

Other Decks in Technology

Transcript

  1. • macOS, Windows, Linux ΋શ෦࢖͏ͷͰ platform ʹϩοΫ͞ΕΔ΋ͷ͸࢖ Θͳ͍ ◦ macOS

    (Windows) Ͱ͚ͩಈ͘ GUI ΞϓϦ ◦ homebrew, scoop, apt(dnf) ͰखʹೖΒͳ͍ίϚϯυ ◦ Go, Rust ͰγϡοͱϏϧυͰ͖ͳ͍ίϚϯυ جຊతͳߟ͑ํ
  2. • هԱ(҉ه)͠ͳ͍ ◦ ਓؒͷهԱྗʹ͸ݶք͕͋ΔͷͰͦΕʹཔΒͳ͍ ◦ ಛ௃తͳϫʔυ͚ͩͰಛఆͰ͖Δ࢓૊ΈΛ࢖͏ • ੵۃతʹΞϯϥʔχϯά͢Δ ◦ https://rebuild.fm/169/

    Λฉ͍ͯ΄͍͠ ◦ ίϯϐϡʔςΟϯά؀ڥ͕໨·͙Δ͘͠มΘΔੈͷதͰݹ͍΍Γํ͕ ͍ͭ·Ͱ΋͍͍ͱ͸ࢥΘͳ͍ɻֵ৽೿ɻ جຊతͳߟ͑ํ
  3. • ΧελϚΠζ͸͋·Γ͠ͳ͍ɺϓϥάΠϯ΋͋·Γ࢖Θͳ͍ ◦ όουϊ΢ϋ΢ͱʮԞ͕ਂ͍঱ީ܈ʯ ΛಡΜͰ͍ͩ͘͞ ◦ ͦ΋ͦ΋ಓ۩͸ͦͷ··Ͱ࢖͍΍͍͢΋ͷͰ͋Δ΂͖ ▪ Git ͸࠷ѱ!(͚ͩͲ͠ΐ͏͕ͳ͍ͷͰ࢖͏)

    • https://github.com/hsbt/hsbt/tree/master/toolbox/xdg/config/fish ͕શ෦ ◦ xdg ʹͱʹ͔͘دͤΔͨΊʹ؀ڥม਺͚ͩ͠ΐ͏͕ͳ͘ઃఆ͍ͯ͠Δ ◦ alias ͱ͔ઃఆͯ͠΋ fuzzy finder ͕༏लͳΒ࢖Θͳ͍... γΣϧ͸ fish
  4. • ϖύϘʹೖࣾͯ͠10೥ԹΊͨൿ఻ͷλϨ ◦ ೖࣾͨ͠͹͔Γͩͱཤྺ͕ͳ͍ͷ͸ͦΕ͸ͦ͏... • fish ͷཤྺ΋ fuzzy find Ͱ࢖͏

    (fzf ֦ுͳͷ͔ built-in ͳͷ͔ௐ΂͍ͯͳ͍) • ϓϥοτϑΥʔϜΛލ͍Ͱ͍͍ײ͡ʹͰ͖ͳ͍ͷ͕ͩΔ͍ ◦ ಛʹ fish ͸ಠࣗܗࣜͳͷ͕ͪΐͬͱ... ཤྺΛ࢖͏
  5. • find ΑΓ fd • grep ΑΓ ripgrep • sed

    ΑΓ sd • cat ΑΓ bat • dig ΑΓ dog • man ΑΓ tealdeer(tldr ͷ࣮૷͸৭ʑ͋ΔͷͰ޷͖ͳ΍ͭ࢖͏) ෳࡶͳΦϓγϣϯΛ֮͑Δͷ͸࣌ؒͷແବɺඞཁͳ࣌ʹௐ΂Ε͹ྑ͍ Rust Ͱॻ͔Εͨ࣍ੈ୅πʔϧ͸଎͍ɺ࢖͍΍͍͢
  6. • workspace Λ׆༻ ◦ “code -a .” Λ e ʹ

    alias ◦ ؔ܎͋ΔϦϙδτϦ͸શ෦ vscode ʹಥͬࠐΉ(-a Φϓγϣϯ) • vscode ͷىಈ͸ “open ~/path/to/workspace.code-workspace” • ͋ͷϑΝΠϧͲ͚ͩͬ͜ͳʙͱ୳͕࣌ؒ͢ແବɺίϚϯυύϨοτͰ͙͢ ։͘ vscode
  7. • ghq ͱ gem-src Λ࢖ͬͯɺશ෦खݩʹ clone ◦ fzf Λ࢖ͬͯଈ࠲ʹ։͘ •

    google/codesearch Λ࢖ͬͯେ·͔ͳݕࡧΛͰ͖ΔΑ͏ʹ͢Δ • ͋ΕͳΜ͔ݹ͘Ͷ?ͱ͍͏࣌ʹ౎౓ git pull Λ͢Δͷ͸࣌ؒͷແବͳͷͰ ghq.root ͷԼΛҰؾʹΞοϓσʔτ͢ΔίϚϯυΛ࢓ࣄલʹຖே࣮ߦ ◦ ͦͷ࣌ؒʹ feedly Ͱ֤ࣾͷςοΫϒϩάͱ͔ hackernews ͱ͔શ෦ಡΉ Git ͱ GitHub