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
Shell環境の初手
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
yumechi(Motoki Hirao)
June 14, 2023
Programming
1
220
Shell環境の初手
何かのLTに出そうとして発表できなかったものだと思うんですが、せっかくなので公開しておきます。
yumechi(Motoki Hirao)
June 14, 2023
Tweet
Share
More Decks by yumechi(Motoki Hirao)
See All by yumechi(Motoki Hirao)
2026年 エンジニアリング自己学習法
yumechi
0
130
PyCon mini Shizuoka 2026 ご紹介
yumechi
0
32
Chart.jsで長い項目を表示するときのハマりどころ
yumechi
0
190
異夢同船 読んできました!
yumechi
0
280
地方カンファレンスのスタッフしてて思うこと
yumechi
0
170
2025年半忘年会ふりかえり
yumechi
0
52
業務で使える一歩進んだPython使いになるために / To become an advanced user of Python that can be used at work
yumechi
13
14k
LTの裏技
yumechi
2
1.5k
やがてカンファレンス登壇者になる
yumechi
1
330
Other Decks in Programming
See All in Programming
dchart: charts from deck markup
ajstarks
3
990
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
「ブロックテーマでは再現できない」は本当か?
inc2734
0
990
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
280
IFSによる形状設計/デモシーンの魅力 @ 慶應大学SFC
gam0022
1
300
Amazon Bedrockを活用したRAGの品質管理パイプライン構築
tosuri13
4
690
Best-Practices-for-Cortex-Analyst-and-AI-Agent
ryotaroikeda
1
110
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
170
Patterns of Patterns
denyspoltorak
0
1.4k
Apache Iceberg V3 and migration to V3
tomtanaka
0
160
Honoを使ったリモートMCPサーバでAIツールとの連携を加速させる!
tosuri13
1
180
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
400
Featured
See All Featured
Done Done
chrislema
186
16k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
The untapped power of vector embeddings
frankvandijk
1
1.6k
Utilizing Notion as your number one productivity tool
mfonobong
3
220
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
240
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Designing for Timeless Needs
cassininazir
0
130
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
190
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
210
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.3k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
440
Being A Developer After 40
akosma
91
590k
Transcript
Shell環境の初手 @__yumechi
twitter: @__yumechi 自己紹介 • 関東にいるPHPerで、開発兼スクラムマスター • Splatoon 3をやっている場合ではないが、やっている • Cluster
は初めてだと思う、多分…(いろいろアップデートされてからは入ったことな いかも) • twitter: @__yumechi
twitter: @__yumechi Shellと私 • パソコンが重いなと思ってからexplorerなりFinderを開かない生活を始めてしまっ た ◦ 高校~大学1年生のころからそんな生活をしている ◦
画像やPDFとかビジュアルで探したいとき以外は大体 terminalなりcmdで生活 • terminalが身近な生活 ◦ bash試したり、zsh試したり…
まあ、なんか エンジニアになったし Shellに慣れたよね
yumechiさん! Shell教えてください
そっすね
(ただし、zshしか よくわからんです)
twitter: @__yumechi よく聞かれることとして 設定回り どうしたらいいの? なんか入れたほうが いいものってある?
twitter: @__yumechi よく聞かれることとして 設定回り どうしたらいいの? なんか入れたほうが いいものってある?
twitter: @__yumechi まあ、いろいろな設定がある • https://zsh.sourceforge.io/Doc/Release/index.html#Top とかに全部乗ってそう な気はする • ~/.zshrc にいろいろ設定を書いていく
◦ HISTSIZE で履歴数の設定を変更して … ◦ etc…
覚えられん! 覚えられるわけ もない!!!
twitter: @__yumechi よさげなのをまずパクってくる • 自分が一番最初に設定を真似したのは少し凝った zshrc ◦ https://gist.github.com/mollifier/4979906 • 他にもいくつかQiitaなどで公開されているものがあるので探す
• 似た設定とか探してきてコピーして持ってくる • とりあえず初手として… ◦ 履歴数は大きくしたほうがいいよ! ◦ historyの共有である setopt share_history は入れたほうがいい
twitter: @__yumechi gitの設定も同様にパクろう • aliasセットしておくと便利 ◦ https://qiita.com/peccul/items/90dd469e2f72babbc106 ◦ 古めの記事だけど、今も結構使える
• config 周りもコピペでカバー
twitter: @__yumechi よく聞かれることとして 設定回り どうしたらいいの? なんか入れたほうが いいものってある?
twitter: @__yumechi Macなら • まあ HomeBrew… ◦ パッケージマネージャー ◦
https://brew.sh/ • Linuxでも LinuxBrew なるものがあるらしいけど、なんかバグってる話をちょいちょ い聞いており自分は使ってない • とりあえずあると便利なコマンド ◦ jq https://github.com/stedolan/jq ◦ rg https://github.com/BurntSushi/ripgrep
twitter: @__yumechi Linuxなら • 言語環境の管理、asdfが便利 ◦ https://asdf-vm.com/ ◦ 大体使いそうな言語環境、メジャーなツールをバージョン指定でインストール可能
◦ (Rustなどは相性が悪いのでよくないが) anyenv 的なものがいらなくなる ] ◦ Macだとbrewで入れたasdfの解決パスがバグって微妙だった。。。
twitter: @__yumechi 他にもRust製のコマンドたちは便利 • このあたりまとまってるサイトを参考に… ◦ https://wonderwall.hatenablog.com/entry/rust-command-line-tools • おすすめはこのあたり ◦
rg https://github.com/BurntSushi/ripgrep ◦ bat https://github.com/sharkdp/bat ◦ exa https://github.com/ogham/exa ◦ delta https://github.com/dandavison/delta ◦ xsv https://github.com/BurntSushi/xsv
twitter: @__yumechi まとめ • 初手はとりあえず設定パクりまくろうを教える • パッケージマネージャはいい感じに導入しよう • Rust製のコマンドツールいいの多いので、ぜひ活用していこう
twitter: @__yumechi 利用情報 • スライド作成: Google Slide https://www.google.com/slides/about/ • フォント:
Noto Sans https://fonts.google.com/noto/specimen/Noto+Sans • 利用画像 ◦ フリーイラスト素材集|ちょうどいいイラスト https://tyoudoii-illust.com/ ◦ Loose Drawing | 無料で商用利用可なフリーイラスト https://loosedrawing.com/ ◦ shigureni free illust │ 素朴で可愛い、女の子のイラスト素材サイト https://www.shigureni.com/ ◦ 商用可・フリーイラスト素材|ソコスト https://soco-st.com/