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
ターミナルtips
Search
ゆうきゃん
February 20, 2021
Programming
0
94
ターミナルtips
ゆうきゃん
February 20, 2021
Tweet
Share
More Decks by ゆうきゃん
See All by ゆうきゃん
Svelte Todo アプリハンズオン資料
ucan_lab
0
39
開発体験を爆上げするLaravel Dacapo マイグレーションサポートツールのススメ
ucan_lab
0
1.4k
モテるコードの書き方
ucan_lab
0
250
momochanにも分かるPSR講座
ucan_lab
0
45
ゆうきゃんどっかー のススメ In #TechCafe
ucan_lab
2
260
Laravel Dacapo 2019-09-06 YYPHP 99
ucan_lab
0
260
Laravel + Docker 環境構築ハンズオン
ucan_lab
2
470
Laravel+GraphQL 良かったこと 困ったこと 悲しかったこと
ucan_lab
2
750
バージョン管理ツールについて振り返り
ucan_lab
0
74
Other Decks in Programming
See All in Programming
Understanding Ruby Grammar Through Conflicts
yui_knk
1
120
tool ディレクティブを導入してみた感想
sgash708
1
150
マイコンでもRustのtestがしたい その2/KernelVM Tokyo 18
tnishinaga
2
2.3k
Microsoft Orleans, Daprのアクターモデルを使い効率的に開発、デプロイを行うためのSekibanの試行錯誤 / Sekiban: Exploring Efficient Development and Deployment with Microsoft Orleans and Dapr Actor Models
tomohisa
0
210
ライブ配信サービスの インフラのジレンマ -マルチクラウドに至ったワケ-
mirrativ
2
260
CSC305 Summer Lecture 12
javiergs
PRO
0
110
CEDEC 2025 『ゲームにおけるリアルタイム通信への QUIC導入事例の紹介』
segadevtech
3
970
MLH State of the League: 2026 Season
theycallmeswift
0
160
令和最新版手のひらコンピュータ
koba789
14
8k
CSC305 Summer Lecture 06
javiergs
PRO
0
100
TROCCO×dbtで実現する人にもAIにもやさしいデータ基盤
nealle
0
330
モバイルアプリからWebへの横展開を加速した話_Claude_Code_実践術.pdf
kazuyasakamoto
0
260
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
223
9.9k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
30
9.6k
Building a Modern Day E-commerce SEO Strategy
aleyda
43
7.5k
Intergalactic Javascript Robots from Outer Space
tanoku
272
27k
Testing 201, or: Great Expectations
jmmastey
45
7.6k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Optimising Largest Contentful Paint
csswizardry
37
3.4k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.6k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
Transcript
λʔϛφϧtips @ucan_lab
ࣗݾհ • ࢲ͕Ώ͏͖ΌΜͰ͢ɻ
λʔϛφϧهࣄΛॻ͍ͯ·͢😎
λʔϛφϧͱ🤔
λʔϛφϧΞϓϦͷछྨ😼 • λʔϛφϧ.app(Macඪ४) • Alacritty • Hyper • iTerm2
γΣϧͱ🤔 • λʔϛφϧ͔Βૢ࡞Λड • ରԠ͢Δಈ࡞ΛOSΧʔωϧʹࢦࣔ • ࣮ߦ݁ՌΛը໘ʹग़ྗ
γΣϧͷछྨ😼 • bash • zsh • fi sh • ash
λʔϛφϧͱγΣϧͷؔ
ϓϩϯϓτͱ🤔 • prompt(ଅ͢) • ίϯϐϡʔλ͕ೖྗͪͷঢ়ଶΛࣔ͢ εΫϦʔϯ্ͷγϯϘϧͷ͜ͱ ʢʮ$ʯʮ%ʯʮ>ʯͳͲ͕ଟ͍ʣ
ϓϩϯϓτΛΦγϟϨ͠Α͏✨ • https://starship.rs
starshipΛಋೖͯ͠Έͨ👍
zshΛ͓͏ʂ • ଞͷͯ͢ͷγΣϧͷػೳΛ࣋ͭ • ~/.zshrc ͕ઃఆϑΝΠϧ • macOS Catalina ͔ΒσϑΥϧτγΣϧ
• ΊͬͪΌΧελϚΠζͰ͖Δ
zshࣗಈαδΣετػೳ • zsh-autosuggestions
tips
cd # ϗʔϜσΟϨΫτϦҠಈ $ cd ~ # νϧμΛ͚ͳͯ͘ҠಈͰ͖Δ $ cd
alias # ͍ίϚϯυͳͲʹผ໊Λ͚Δ $ alias ll='ls -l' $ alias la='ls
-al' $ alias l1='ls -1' $ alias dc='docker-compose' # ~/.zshrc ʹॻ͍͓ͯ͘ͱྑ͍
source # γΣϧͷઃఆΛөͤ͞Δ $ source ~/.zshrc # υοτͰಉ͜͡ͱʹͳΔ $ .
~/.zshrc
ˈ_ # γΣϧͷઃఆΛөͤ͞Δ $ mkdir -p ./foo/bar/hoge $ cd $_
# ্هͷίϚϯυͱಉ͡ $ mkdir -p ./foo/bar/hoge $ cd ./foo/bar/hoge
; ͱ && # 1ͭͷίϚϯυͰෳͷίϚϯυΛ࣮ߦ $ command_1; command_2 # લͷίϚϯυ͕ޭͨ͠߹ʹͷΈ
# ࣍ͷίϚϯυΛ࣮ߦ $ command_1 && command_2
ϑΝΠϧΛۭʹ͢Δ $ > sample.txt control + c Ͱڧ੍ऴྃ͢Δ (จࣈೖྗͰ͖Δ) #
্هͷίϚϯυͱಉ͡Ͱ͢ $ rm -f sample.txt $ touch sample.txt
γΣϧΛ࠶ىಈ͢Δ # ઃఆϑΝΠϧͳͲΛಡΈ͍ͨ࣌͠ $ exec $SHELL -l # ΤΠϦΞε͚Δͱศར $
alias relogin='exec $SHELL -l'
ΧϨϯτσΟϨΫτϦΛFinder Ͱ։͘ $ open . # ΤΠϦΞε͚Δͱศར $ alias f='open
.'
FinderͰ։͍ͯΔσΟϨΫτϦcd $ cdf ࣗ࡞ͨ͠ίϚϯυ
RustCLIπʔϧ
exa ls ͷ্ҐޓɺGitͷεςʔλεදࣔ $ exa --time-style=long-iso -g $ exa --time-style=long-iso
-hgl --git $ exa --time-style=long-iso -ahgl --git $ exa -1 $ exa -T --git-ignore Ϛδݟ͍͢
bat cat ͷ্ҐޓɺsyntaxϋΠϥΠτ $ bat sample.txt # tabɺεϖʔεɺվߦίʔυදࣔ $ bat
-A sample.txt Ϛδݟ͍͢
fd fi nd ͷ্Ґޓ $ fd [Ωʔϫʔυ] [Φϓγϣϯ] Ϛδศར
ripgrep grep ͷ্Ґޓ $ rg [Ωʔϫʔυ] [Φϓγϣϯ] Ϛδศར͗͢
gitui Git TUIπʔϧ(lazygit, tigΑΓߴ) $ lazygit ͜Εͳ͠Ͱੜ͖͍͚ͯͳ͍
zoxide cd ͷ্Ґޓ $ z [σΟϨΫτϦ໊] σΟϨΫτϦ໊͚ͩͰҠಈͰ͖Δɻ ࠍΕΔɻ
tealdeer man ͷ্Ґޓ $ tldr [ίϚϯυ໊] ϚδλεΧϧ
skim fuzzy fi nder(fzf, peco, percol, fzy, hstr) $ sk
Ϧετ͔ΒҰக͢ΔจࣈΛߜΓࠐΈ͢Δ (͍͋·͍ݕࡧతͳ)
delta diff, colordiff ͷ্Ґޓ $ delta [ίϚϯυ໊] ϚδλεΧϧ
ࢀߟ • https://wonderwall.hatenablog.com/entry/ rust-command-line-tools
͓͠·͍