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
84
ターミナルtips
ゆうきゃん
February 20, 2021
Tweet
Share
More Decks by ゆうきゃん
See All by ゆうきゃん
開発体験を爆上げするLaravel Dacapo マイグレーションサポートツールのススメ
ucan_lab
0
1.2k
モテるコードの書き方
ucan_lab
0
230
momochanにも分かるPSR講座
ucan_lab
0
36
ゆうきゃんどっかー のススメ In #TechCafe
ucan_lab
2
240
Laravel Dacapo 2019-09-06 YYPHP 99
ucan_lab
0
220
Laravel + Docker 環境構築ハンズオン
ucan_lab
2
420
Laravel+GraphQL 良かったこと 困ったこと 悲しかったこと
ucan_lab
2
690
バージョン管理ツールについて振り返り
ucan_lab
0
63
Other Decks in Programming
See All in Programming
Итераторы в Go 1.23: зачем они нужны, как использовать, и насколько они быстрые?
lamodatech
0
780
Amazon S3 NYJavaSIG 2024-12-12
sullis
0
100
LLM Supervised Fine-tuningの理論と実践
datanalyticslabo
7
1.3k
ゆるやかにgolangci-lintのルールを強くする / Kyoto.go #56
utgwkk
2
390
MCP with Cloudflare Workers
yusukebe
2
220
rails statsで大解剖 🔍 “B/43流” のRailsの育て方を歴史とともに振り返ります
shoheimitani
2
930
Effective Signals in Angular 19+: Rules and Helpers
manfredsteyer
PRO
0
100
暇に任せてProxmoxコンソール 作ってみました
karugamo
2
720
テストコード書いてみませんか?
onopon
2
120
CSC305 Lecture 26
javiergs
PRO
0
140
ブラウザ単体でmp4書き出すまで - muddy-web - 2024-12
yue4u
3
470
create_tableをしただけなのに〜囚われのuuid編〜
daisukeshinoku
0
260
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
Producing Creativity
orderedlist
PRO
341
39k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
KATA
mclloyd
29
14k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Unsuck your backbone
ammeep
669
57k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
How To Stay Up To Date on Web Technology
chriscoyier
789
250k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
YesSQL, Process and Tooling at Scale
rocio
169
14k
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
͓͠·͍