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.1k
モテるコードの書き方
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
210
Laravel + Docker 環境構築ハンズオン
ucan_lab
2
410
Laravel+GraphQL 良かったこと 困ったこと 悲しかったこと
ucan_lab
2
680
バージョン管理ツールについて振り返り
ucan_lab
0
61
Other Decks in Programming
See All in Programming
CSC509 Lecture 09
javiergs
PRO
0
140
Remix on Hono on Cloudflare Workers
yusukebe
1
290
AI時代におけるSRE、 あるいはエンジニアの生存戦略
pyama86
6
1.1k
광고 소재 심사 과정에 AI를 도입하여 광고 서비스 생산성 향상시키기
kakao
PRO
0
170
[Do iOS '24] Ship your app on a Friday...and enjoy your weekend!
polpielladev
0
100
Click-free releases & the making of a CLI app
oheyadam
2
120
as(型アサーション)を書く前にできること
marokanatani
10
2.7k
Figma Dev Modeで変わる!Flutterの開発体験
watanave
0
120
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.8k
初めてDefinitelyTypedにPRを出した話
syumai
0
410
Tauriでネイティブアプリを作りたい
tsucchinoko
0
370
Amazon Qを使ってIaCを触ろう!
maruto
0
410
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
890
The Cult of Friendly URLs
andyhume
78
6k
GraphQLとの向き合い方2022年版
quramy
43
13k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
93
16k
Being A Developer After 40
akosma
86
590k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
KATA
mclloyd
29
14k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Facilitating Awesome Meetings
lara
50
6.1k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
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
͓͠·͍