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
yumechi(Motoki Hirao)
June 14, 2023
Programming
1
180
Shell環境の初手
何かのLTに出そうとして発表できなかったものだと思うんですが、せっかくなので公開しておきます。
yumechi(Motoki Hirao)
June 14, 2023
Tweet
Share
More Decks by yumechi(Motoki Hirao)
See All by yumechi(Motoki Hirao)
業務で使える一歩進んだPython使いになるために / To become an advanced user of Python that can be used at work
yumechi
13
14k
LTの裏技
yumechi
2
1.4k
やがてカンファレンス登壇者になる
yumechi
1
290
形式スクラムの功罪
yumechi
3
1.5k
プロポーザルを出してみよう考えてみよう
yumechi
1
640
PHPをasdfで動かしてみたんです
yumechi
2
1.1k
Last CoLab
yumechi
1
230
これまで10年くらいふりかえり続けて思ったふりかえりに必要なたった1つのこと
yumechi
2
980
セキュリティテストでより安心できるリリースにしよう
yumechi
0
440
Other Decks in Programming
See All in Programming
読書シェア会 vol.4 『ダイナミックリチーミング 第2版』
kotaro666
0
110
データベースの技術選定を突き詰める ~複数事例から考える最適なデータベースの選び方~
nnaka2992
0
220
Orleans + Sekiban + SignalR でリアルタイムWeb作ってみた
tomohisa
0
240
今話題のMCPサーバーをFastAPIでサッと作ってみた
yuukis
0
130
エンジニア向けCursor勉強会 @ SmartHR
yukisnow1823
3
12k
ドメイン駆動設計とXPで支える子どもの未来 / Domain-Driven Design and XP Supporting Children's Future
nrslib
0
180
M5UnitUnified 最新動向 2025/05
gob
0
140
バイラテラルアップサンプリング
fadis
3
480
Ruby で作る RISC-V CPU エミュレーター / RISC-V CPU emulator made with Ruby
hayaokimura
5
1k
ウォンテッドリーの「ココロオドル」モバイル開発 / Wantedly's "kokoro odoru" mobile development
kubode
2
520
AWS Summit Hong Kong 2025: Reinventing Programming - How AI Transforms Our Enterprise Coding Approach
dwchiang
0
140
開発者フレンドリーで顧客も満足?Platformの秘密
algoartis
0
210
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
32
5.6k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
105
19k
Testing 201, or: Great Expectations
jmmastey
42
7.5k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Being A Developer After 40
akosma
91
590k
Building Better People: How to give real-time feedback that sticks.
wjessup
368
19k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
21k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.2k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
137
33k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
700
Gamification - CAS2011
davidbonilla
81
5.3k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.8k
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/