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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
yumechi(Motoki Hirao)
June 14, 2023
Programming
230
1
Share
Shell環境の初手
何かのLTに出そうとして発表できなかったものだと思うんですが、せっかくなので公開しておきます。
yumechi(Motoki Hirao)
June 14, 2023
More Decks by yumechi(Motoki Hirao)
See All by yumechi(Motoki Hirao)
おれおれサービスをいっぱいつくろう
yumechi
0
83
ブログ用の記事投稿数 可視化の仕組みを作る
yumechi
0
65
2026年 エンジニアリング自己学習法
yumechi
0
210
PyCon mini Shizuoka 2026 ご紹介
yumechi
0
62
Chart.jsで長い項目を表示するときのハマりどころ
yumechi
0
220
異夢同船 読んできました!
yumechi
0
320
地方カンファレンスのスタッフしてて思うこと
yumechi
0
220
2025年半忘年会ふりかえり
yumechi
0
90
業務で使える一歩進んだPython使いになるために / To become an advanced user of Python that can be used at work
yumechi
13
14k
Other Decks in Programming
See All in Programming
RailsTokyo 2026#4: AI様があれば、 Hotwireの弱点は消えるか?
naofumi
5
980
oxlintはeslint/typescript-eslintを置き換えられるのか
shomafujita
2
240
サークル参加から学ぶ、小さな事業の回し方
yuzneri
0
240
AlarmKitで明後日起きれるアラームアプリを作る
trickart
0
150
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
340
New "Type" system on PicoRuby
pocke
1
190
AI時代の仕事技芸論 — ソフトウェア開発で「遊ぶように働く」職人的熟達のすすめ
kuranuki
0
110
要はバランスからの卒業 #yumemi_grow
kajitack
0
200
AI 時代のソフトウェア設計の学び方
masuda220
PRO
27
9.6k
The Arts and Crafts of Work in the AI Era — Toward Mastery in Software Development
kuranuki
0
450
Java × distroless で 軽量なコンテナイメージを / Java on Distroless
contour_gara
0
260
Technical Debt: Understanding it Rightly, Engaging it Rightly #LaravelLiveJP
shogogg
0
150
Featured
See All Featured
Paper Plane (Part 1)
katiecoart
PRO
0
7.9k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
140
Automating Front-end Workflow
addyosmani
1370
210k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.9k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.5k
Building the Perfect Custom Keyboard
takai
2
770
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
120
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.5k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.6k
The Spectacular Lies of Maps
axbom
PRO
1
770
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
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/