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
subpath importsで始めるモック生活
10tera
0
310
TypeScript Graph でコードレビューの心理的障壁を乗り越える
ysk8hori
2
1.1k
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
960
エンジニアとして関わる要件と仕様(公開用)
murabayashi
0
300
Kaigi on Rails 2024 〜運営の裏側〜
krpk1900
1
230
イベント駆動で成長して委員会
happymana
1
330
NSOutlineView何もわからん:( 前編 / I Don't Understand About NSOutlineView :( Pt. 1
usagimaru
0
340
광고 소재 심사 과정에 AI를 도입하여 광고 서비스 생산성 향상시키기
kakao
PRO
0
170
CSC509 Lecture 13
javiergs
PRO
0
110
OSSで起業してもうすぐ10年 / Open Source Conference 2024 Shimane
furukawayasuto
0
110
Nurturing OpenJDK distribution: Eclipse Temurin Success History and plan
ivargrimstad
0
950
TypeScriptでライブラリとの依存を限定的にする方法
tutinoko
3
690
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
The Invisible Side of Design
smashingmag
298
50k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
How to train your dragon (web standard)
notwaldorf
88
5.7k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
A Philosophy of Restraint
colly
203
16k
We Have a Design System, Now What?
morganepeng
50
7.2k
Faster Mobile Websites
deanohume
305
30k
Bash Introduction
62gerente
608
210k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
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
͓͠·͍