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
より良いターミナルでの生活を求めて
Search
takashabe
August 23, 2024
Technology
0
21
より良いターミナルでの生活を求めて
社内LT会で話した資料です
takashabe
August 23, 2024
Tweet
Share
More Decks by takashabe
See All by takashabe
OpenCensusでcustom context propagationとexporterを書いた話 / OpenCensus with custom context propagation and exporter
takashabe
0
1.5k
pubsub with concurrent
takashabe
1
840
社内ISUCONを開催した話
takashabe
0
1.5k
ISUCON大反省会
takashabe
0
1.8k
gitのブランチ戦略
takashabe
8
5.7k
サルでもわかるgit
takashabe
0
1.3k
playで複数DBする
takashabe
0
1.6k
MySQLで高トラフィックに立ち向かう
takashabe
0
1.7k
GitHubの良さ
takashabe
2
2.2k
Other Decks in Technology
See All in Technology
VPC間の接続方法を整理してみた #自治体クラウド勉強会
non97
1
810
プロダクト成長に対応するプラットフォーム戦略:Authleteによる共通認証基盤の移行事例 / Building an authentication platform using Authlete and AWS
kakehashi
1
150
Amazon_CloudWatch_ログ異常検出_導入ガイド
tsujiba
4
1.5k
なんで、私がAWS Heroに!? 〜社外の広い世界に一歩踏み出そう〜
minorun365
PRO
6
1.1k
来年もre:Invent2024 に行きたいあなたへ - “集中”と“つながり”で楽しむ -
ny7760
0
460
20241031_AWS_生成AIハッカソン_GenMuck
tsumita
0
110
Forget efficiency – Become more productive without the stress
ufried
0
100
Autify Company Deck
autifyhq
1
39k
わたしとトラックポイント / TrackPoint tips
masahirokawahara
1
240
Aurora_BlueGreenDeploymentsやってみた
tsukasa_ishimaru
1
120
顧客が本当に必要だったもの - パフォーマンス改善編 / Make what is needed
soudai
24
6.7k
生成AIの強みと弱みを理解して、生成AIがもたらすパワーをプロダクトの価値へ繋げるために実践したこと / advance-ai-generating
cyberagentdevelopers
PRO
1
180
Featured
See All Featured
Writing Fast Ruby
sferik
626
61k
Into the Great Unknown - MozCon
thekraken
31
1.5k
Rails Girls Zürich Keynote
gr2m
93
13k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
228
52k
Building Applications with DynamoDB
mza
90
6.1k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
How STYLIGHT went responsive
nonsquared
95
5.2k
Transcript
ΑΓྑ͍λʔϛφϧͰͷੜ׆Λ ٻΊͯ @takashabe CastingONE inc.
$ whoami • @takashabe • https://github.com/takashabe • https://bsky.app/pro fi le/takashabe.bsky.social
• Software Engineer • Keyboard • crkbd v3 + corchim + HMX XINHAI 45g • ଧ伴ײɺଧ伴Իͱʹ࠷ߴ • HMXΛࢼ͢ͷָ͕͍͠
Agenda • ීஈͷੜ׆ελΠϧ • QOLΛ্͛ͯ͘Εͨπʔϧͷհ • ·ͱΊ
ීஈͷੜ׆ελΠϧ
ීஈͷੜ׆ελΠϧ • ࣄmacOS • Space 4ຕݻఆ • display 1 •
space 1: terminal (·Εʹvscode, zed) • space 2: ϒϥβ • display 2 • 3: obsidian, pomodoro • 4: slack, gather • ։ൃશ෦terminal • ϖΞϓϩͷͱ͖vscode, neovimյΕͨͱ͖ʹzed
QOL্ʹͭͳ͕ͬͨπʔϧ15બ
QOL্ʹͭͳ͕ͬͨऔΓΈ͋Δ͍πʔϧ15બ 1. fuzzy fi nder 2. ghr 3. z 4.
prompt 5. fi sh-shell 6. terminal multiplexer 7. gcloud con fi g con fi grations 8. history 9. history merge 10.notify long running command 11.Amazon Q (CLI completion) 12.all-in-one 13.yabai 14.skhd 15.(neo)vim
fuzzy fi nder • https://github.com/junegunn/fzf • ԿΒ͔ͷϦετΛιʔεʹͯ͠ɺ͔ͦ͜ΒબͰ͖ΔUI Λఏڙ͢Δπʔϧ • ਪ͠ϙΠϯτ
• ແݶͷՄೳੑ͕͋Δɻඇৗʹ൚༻ੑͷߴ͍֓೦ • Φεεϝ 🌟🌟🌟🌟🌟
ghq • https://github.com/x-motemen/ghq • ϦϙδτϦཧΛҰׅཧ͢ΔͨΊͷπʔϧ • ਪ͠ϙΠϯτ • Կͱͳ͘࡞ͬͯཧ͍ͯͨ͠ `~/workspace`
ͱ͔͕ΑΓ ͍͘͢ͳΔ • ghq rootԼʹશͯू͞ΕΔͨΊɺͲ͜Ͱγϡοͱ cloneͰ͖Δ • fuzzy fi nderͱͷ૬ੑൈ܈ • Φεεϝ 🌟🌟🌟🌟🌟
z • https://github.com/rupa/z • ࣮ࡍʹ fi sh-shell൛ΛͬͯΔ • https://github.com/jethrokuan/z •
cdͷཤྺΛஷΊͯɺϦετͨ͠Βδϟϯϓͨ͠ΓͰ͖Δ • ਪ͠ϙΠϯτ • σΟϨΫτϦʹඈΜͩճස͔Βྑ͍ײ͡ʹείΞ Λ͚ͯཧͯ͘͠ΕΔ • fuzzy fi nderͱͷ૬ੑൈ܈ • Φεεϝ 🌟🌟🌟🌟🌟
prompt • https://github.com/takashabe/ fi sh-pretty-theme • Έͳ͞Μ͝ଘ͡ͷPS1͍͘͡Δͭ • ͷ΄Ͳπʔϧ͕͋Δ͚Ͳɺࣗͷཉ͍͕ͭ͠ཉ ͔ͬͨ͠ͷͰࠓࣗ࡞ΛͬͯΔ
• ͠σϑΥϧτͷ··ͬͯΔਓԿ͔͠ΒͷπʔϧΛ ೖΕͯΈΔ͜ͱΛΦεεϝ͠·͢ • https://github.com/starship/starship • https://github.com/sorin-ionescu/prezto
fi sh-shell • https://github.com/ fi sh-shell/ fi sh-shell • Friendly
Interactive SHell ͷུ • POSIXޓΛࣺͯڈͬͯɺφ͍γϯλοΫεͰεΫϦϓτ ͕ॻ͚ͨΓɺ࠷ॳ͔Βิ͕ޮ͍ͨΓͯ͠ศར • man͔ΒิΛ࡞ͬͯ͘ΕΔͷͰɺݸผʹϓϥάΠϯΛೖ ΕΔඞཁ͕ͳ͍ • Φεεϝ 🌟🌟🌟 • γΣϧεΫϦϓτॻ͘ͱ͖Ͳ͏ͤBash४ڌͳͷͰɺ fi sh ͷจ๏͍ͭ·Ͱܦ֮ͬͯ͑ͳ͍
terminal multiplexer • https://github.com/tmux/tmux • λʔϛφϧΛηογϣϯɺΟϯυɺϖΠϯʹׂͯ͠ཧ͢Δ͜ ͱ͕ग़དྷΔ • λʔϛφϧ ⊃
ηογϣϯ ⊃ Οϯυ ⊃ ϖΠϯ • ਪ͠ϙΠϯτ • iTerm2ʹ͋Δλϒͱ͔ϖΠϯͱ͔ΛͲͷλʔϛφϧιϑτΣΞͰ ͑Δ • ηογϣϯλʔϛφϧ͕ऴྃͯ͠ΔͷͰɺޡͬͯλʔϛφϧ Λམͱͯ͠ΕΔ • Φεεϝ 🌟🌟🌟🌟 • ߴػೳͳλʔϛφϧιϑτΣΞΛ͏ͷͰ͋Εخ͠͞ݮ
gcloud con fi g con fi grations • https://cloud.google.com/sdk/gcloud/reference/con fi
g/ con fi gurations • ෳͷΞΧϯτɾϓϩδΣΫτΛཧͰ͖Δ • ਪ͠ϙΠϯτ • ෳͷGoogle cloudϓϩδΣΫτΛ͏ͱ͖؆୯ʹΓସ͑ Ͱ͖Δ • Φεεϝ 🌟🌟 • χονͳ༻్ͳͷͰ2 • ࣄͰίϚϯυଧͭͱ͖ࣄނࢭͷͨΊ —project ͚͕ͪ ͳͷͰɺ࣮͋Μ·Γସ͑ͳ͍
history • https://man.archlinux.org/man/history.n • ͍ΘΏΔ C-r Ͱݕࡧ͢ΔίϚϯυཤྺ • ੜ׆ඞध •
Φεεϝ 🌟🌟🌟🌟🌟
history merge • https://gist.github.com/calexandre/ 63547c8dd0e08bf693d298c503e20aab • fi sh-shellͩͱ • ਪ͠ϙΠϯτ
• tmuxͳͲΛͬͯෳͷηογϣϯΛ։͍͍ͯΔͱ͖Ͱɺཤྺ ͕ಉظͰ͖ͯศར • Φεεϝ 🌟🌟🌟🌟
notify long running command • https://github.com/marzocchi/zsh-notify • NඵҎ্͔͔ͬͨίϚϯυΛ௨ηϯλʔʹඈ͢ • fi
sh-shellͩͱ fi sh_preexec, fi sh_postexecͳͲΈ߹ Θͤͯॻ͚Δ • ਪ͠ϙΠϯτ • make test • yarn test • Φεεϝ 🌟🌟🌟🌟🌟
Amazon Q (CLI completion) • https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/command- line-autocomplete.html • ੲ fi
g https:// fi g.io/ ͩͬͨͷ • ਪ͠ϙΠϯτ • ଟ͘ͷίϚϯυΛαϙʔτ͍ͯ͠ΔͷͰɺେମΧόʔ͞ΕͯΔ • fi sh-shellσϑΥϧτͰྑ͍ײ͡ʹิͯ͘͠ΕΔ͕man͕ͳ͍ͱπϥ͍ • gcloudͳͲઐ༻ͷcompletionεΫϦϓτΛϩʔυ͠ͳ͚ΕͳΒͳ ͍ • Φεεϝ 🌟🌟 • ิΟϯυ͕अຐʹͳΔ͜ͱ͕ଟ͍ • fi shͷͦΕΑΓࢹೝੑ͕ѱ͍
all-in-one • https://starship.rs/ • https://www.warp.dev/ • https://code.visualstudio.com/ • https://www.lazyvim.org/ •
͍ΘΏΔશ෦ೖΓͷπʔϧ܈ • શ෦͍Βͳ͍ʹͯ͠ϙΠϯτͰʮ͜Εศརͦ͏ʂʯΈ͍ͨͳώϯ τ͕ଟ͍ • ͱΓ͋͑ͣ࠷ॳʹ͞ΘΔͱ͖ʹΦεεϝ • ͨͩ͠ϋϚΔͱແݶʹπϥ͍ҹɻྫ͑LazyVimͷͩͱࢥͬ ͍࣮ͯͯૉͷNeovimଆͷઃఆͰͨ͠ɺͱ͔ • Φεεϝ 🌟🌟🌟🌟
yabai • https://github.com/koekeishiya/yabai • macOSͷtiling window manager • ΟϯυΛॏͶͣʹฒͯදࣔͰ͖ͨΓɺSpaceͷҠಈ͕ γϡοͱग़དྷͨΓ͢Δ
• ਪ͠ϙΠϯτ • ͍ͭͷ࡞ۀڥΛ࠶ݱ͍͢͠ • ޙड़ͷskhdΛ͏ͱجຊతʹΩʔϘʔυ͔ΒखΛ͞ͳͯ͘ ྑ͍ • Φεεϝ 🌟🌟 • Έ͕͔ΕΔ
skhd • https://github.com/koekeishiya/skhd • hotkeyΛཧ͢Δ͜ͱ͕ग़དྷΔπʔϧ • karabiner-elementsͳͲͱಉׅ͡Γ͕ͩɺઃఆϑΝΠ ϧ͕ॻ͖͍͢ • ࡞ऀ͕ಉ͡ͳͷͰɺେyabaiͱҰॹʹΘΕΔ
• Φεεϝ 🌟🌟🌟🌟
(neo)vim • https://github.com/vim/vim • https://github.com/neovim/neovim • ແݶͷՄೳੑΛൿΊͨΤσΟλ • neovimΛ͍ͬͯ·͢ •
Φεεϝ 🌟 🌟 🌟 🌟 • ͍ͭΦεεϝͯ͠ΔΤσΟλvscodeͰ͢
·ͱΊ
·ͱΊ • λʔϛφϧ(Ͱͳ͍ͷࠞͬͯ͡·͕ͨ͠)ੜ׆ͷQOL ্ʹཱͭπʔϧͷհΛ͠·ͨ͠ • ৼΓฦΔͱ͕ࣗΩʔϘʔυͰ݁Ͱ͖Δڥʹڵຯ͕͋ Δ͜ͱ͕͔Δ • Fuzzy fi
ndercompletionΊͪΌͪ͘Ό͏ • Կ͔ͩΜͩઃఆૢ࡞͖֮͑Εͳ͍͠ɺcompletion͔ Β৽ͨͳൃݟΛ͢Δ͜ͱ͋Δ • ϓϥΠϕʔτͰArchLinux + i3Λ͍ͬͯΔͷͰͦͷӨ ڹେ͖ͦ͏