Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
zshと仮想端末マネージャで快適ターミナル生活
Search
Nobutoshi Ogata
September 12, 2011
Technology
150
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
zshと仮想端末マネージャで快適ターミナル生活
Nobutoshi Ogata
September 12, 2011
More Decks by Nobutoshi Ogata
See All by Nobutoshi Ogata
Datadogセミナー 2025/3/13 Datadog On-Callの活用事例のご紹介
nobu666
0
540
サーバサイドの技術スタック・アーキテクチャ総ざらい - SmartNews Tech Night in Fukuoka Vol.1
nobu666
1
17k
SmartNews x PLAID - Cost cut and AWS Enterprise Support
nobu666
0
340
Why Slack?
nobu666
0
350
A Complete Work of SmartNews's SRE
nobu666
2
3.4k
SRE at SmartNews
nobu666
0
8.3k
SmartNews の最近の取り組みについて
nobu666
4
3.6k
Introducing in-hourse PaaS
nobu666
1
350
Monitoring of SmartNews
nobu666
0
200
Other Decks in Technology
See All in Technology
"優秀な誰か"の下位互換にならないために
yut0naga1_fa
1
1.8k
⾮構造化データを価値に変える AI エージェント基盤とその組織
ivry_presentationmaterials
0
200
会社説明資料
persolserverworks
0
9.8k
WasmをRustにする
sansantech
PRO
0
280
その Valkey 使いこなしていますか?
onk
PRO
5
1.6k
Getting Started with Google Antigravity
glaforge
0
320
自作バイナリを動かす「入口」8選
puhitaku
2
1.3k
SAENM ~Jupyterで残すPoCの試行錯誤、未来の自分と仲間を助ける記録!~
terapyon
0
120
スキマバイトという雇用形態は存在しないので、雇用期間1日のアルバイト契約を事業者とワーカーが結ぶ手続きを支えるのがタイミーなんです
akitoshiga
0
210
Benchmarking Disaggregated Serving on vLLM + Dynamo with a Real Coding-Agent Workload
nttcom
1
200
コンテナ運用におけるネットワーク・コンテナコストの削減方法/How to Reduce Network and Container Costs in Container Operations
masakiokuda
2
300
LambdaWebFunctionsを試してみた / exploring-lambda-web-functions
koukihosaka
1
360
Featured
See All Featured
Raft: Consensus for Rubyists
vanstee
142
7.8k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
1k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
460
Abbi's Birthday
coloredviolet
4
10k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
940
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
The SEO identity crisis: Don't let AI make you average
varn
0
590
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
500
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Transcript
zshͱԾ ϚωʔδϟͰ շదλʔϛφϧੜ׆ άϦʔגࣜձࣾ ։ൃຊ෦Πϯϑϥ౷ׅ෦ ඌܗ ெढ़ 119݄12݄༵
ΦϥΫϧͳ͏ 119݄12݄༵
About me ඌܗ ெढ़(͓͕ͨ ͷͿͱ͠) @nobu666 http://www.facebook.com/nobutoshi.ogata άϦʔגࣜձࣾ ։ൃຊ෦Πϯϑϥ౷ׅ෦ 2011/8/1ʙ
[email protected]
119݄12݄༵
͍··Ͱͬͯͨ͜ͱ ຊΞϧΰϦζϜגࣜձࣾ डୗ։ൃ ҩྍܥ/ༀܥͷγεςϜ χϑςΟגࣜձࣾʹɺNECϏοά ϩʔϒגࣜձࣾʹ2΄Ͳৗறͯ͠ɺ WebΞϓϦͷઃܭʙ։ൃʙӡ༻·Ͱ 119݄12݄༵
͍·ͬͯΔ͜ͱ ήʔϜ࡞ͬͯ·ͤΜ ϝʔϧͱ͔ɺͷMySQL Proxyͱ ͔ɺͦͷลͷαʔϏεج൫Λ୲͢Δ νʔϜ શจݕࡧͷϦϓϨʔε͡Ί·ͨ͠ 119݄12݄༵
ͦΜͳΘ͚Ͱ λʔϛφϧͱ ྑ͠Ͱ͢ 119݄12݄༵
͜ͷεϥΠυͷओࢫ zsh͜Θ͘ͳ͍Α!! ԾϚωʔδϟ͜Θ͘ͳ͍Α!! ͜ͷ2͕ͯ͢ͳͷͰɺ͢Ͱʹ͍ࠐ ΜͰ͍ΔਓʹΓͳ͍༰Ͱ͢ɻ ྃ͝ঝ͍ͩ͘͞ɻ 119݄12݄༵
ΞδΣϯμ zshɺscreenΛ͍࢝Ί͖͔͚ͨͬ ศར͞ͷҰΛ͝հ Ͱઃఆ͕໘ͳΜͰ͠ΐʁͳํ ·ͱΊ 119݄12݄༵
zshͱscreenΛ ͍࢝Ί͖͔͚ͨͬ 119݄12݄༵
Development Environment Conference 2006/9/9 5લ……ͩͱ…ʁ ड։͔࢝Β3Ͱຬһʹ http://b.hatena.ne.jp/t/decon zshίϐϖͰ͍ͬͯͨͷͷɺ screenͬͯͳ͔ͬͨ 119݄12݄༵
DEConҎલ ɹ_______________________ ɹɹɹɹɹʻ◦√ɹɹͦͬ͘͏ͩΊ͔ɾɾ!! ɹɹɹɹɹ ͘͘ɹɹɹ࡞ۀ͢Δαʔόʔ͕ଟ͗͢Δ ɹɹɹɹɹ ը໘͕PuTTYͩΒ͚ʹ ͳͬͯ͠·͏ɾɾ!! 119݄12݄༵
DEConҎޙ ________________________________ ~| \◦ େৎ͔ʁBOY ∥\ <◦> ∥/ ∥ /│ >> \│ ɹ screen͞Μʂʂ
119݄12݄༵
screen ԾϚωʔδϟͷҰछ screen tscreen tmux byobu 119݄12݄༵
119݄12݄༵
tmux!! ͣͬͱscreenͰ͕ͨ͠ɺࠓճͷεϥΠ υͷͨΊʹͪΐͬͱ͍࢝ΊͨΒΑ ͔ͬͨ!! ͱ͍͏Θ͚Ͱվफ͠·͢ ʼʻ جຊతʹҰॹͰ͕͢ɺσϑΥϧτͰ ͦΕͬΆ͍ઃఆʹͳ͍ͬͯ·͢ 119݄12݄༵
screen/tmuxͷ ͏Ε͍͠ͱ͜Ζ 119݄12݄༵
Α͏ͧ͏͞Μͱ͔ͿΒͳ͍ൣғͰ ͳ͕Β࡞ۀ ׂͯ͠ϩάΛݟͳ͕Β ͍ͭऴΘΔͷ͔Α͘Θ͔Βͳ͍όονͷىಈ σλονͯ͠ؼΔ ϩάΛͤΔ ڭҭͷҰͱͯ͑͠Δ ϚϧνΞλονϞʔυ 119݄12݄༵
zshͷ ͏Ε͍͠ͱ͜Ζ 119݄12݄༵
119݄12݄༵
ཤྺͷΓํ͕͏Ε͍͠ ෳߦʹΔίϚϯυཤྺͷΓํ ͔͠ΤσΟλͷΑ͏ʹ్தΛॻ͖ ͑ͨΓͰ͖·͢ nobu666@cherub $ for n in 1
2 3 for# do for# echo test; for# done test test test nobu666@cherub $(͜͜ͰC-p) nobu666@cherub $for n in 1 2 3 do echo test; done 119݄12݄༵
ࢉज़ԋࢉ͕͏Ε͍͠ nobu666@cherub $ zmodload -i zsh/mathfunc nobu666@cherub $ echo $((
sin(1) )) 0.8414709848078965 nobu666@cherub $ echo $(( log10(2) )) 0.3010299956639812 nobu666@cherub $ echo $(( sqrt(2) )) 1.4142135623730951 nobu666@cherub $ repeat 3 echo $(( rand48() )) 0.9822596229634506 0.37442021252918423 0.13525322333015666 119݄12݄༵
ελοΫ͕͏Ε͍͠ ͬͨΒ͍͠configureΦϓγϣϯॻ͍ ͯΔ్தʹɺ;͍ʹ --help ͕Έͨ͘ͳ Δ C-a C-kͯ͠configure --helpͯ͠C-y……? ESC-q
Ͱ͓̺!! 119݄12݄༵
glob͕͏Ε͍͠ important.cҎ֎ͷ*.cΛফ͍ͨ͠ rm *.c~important.c *.txtҎ֎Λফ͍ͨ͠ rm *~*.txt find . -name
‘*.c’|xargs grep hoge grep hoge **/*.c 119݄12݄༵
άϩʔόϧΤΠϦΞε͕͏Ε͍͠ hogehoge | piyopiyo tail -f /var/log/php.log G Fatal ls
-la L ޙΖʹύΠϓͰͭͳ͛ͯɺׂͱΑ͘͏ͷ શ෦ొ head,tail,grep,sort,uniq,lv,wc,sed,awk... 119݄12݄༵
ϚϧνϦμΠϨΫτ͕͏Ε͍͠ echo “test” > f1 >f2 echo “TEST” >file? <
f1 <f2 < f1 > f3 119݄12݄༵
ϓϩηεஔ͕͏Ε͍͠ ͱࢥͬͨΒbashͰͰ͖ΔΒ͘͠… (´ɾωɾʆ) paste <(hoge) <(moge) diff -u <(hoge|piyo) <(hoge|moge)
αʔόʹtmpϑΝΠϧ࡞Γͨ͘ͳ͍ͱ͖ ͱ͔ʹͲ͏ͧ 119݄12݄༵
Ͱઃఆ͕ ΊΜͲͦ͘͞͏ 119݄12݄༵
ͦΜͳ͋ͳͨͷͨΊʹ zshͷ߹ oh-my-zsh https://github.com/robbyrussell/oh-my-zsh gitͰ͖࣋ͬͯͯthemeΛબΜͩΒɺͦΕͬΆ͍ ઃఆ͕͞Εͯ·͢ https://github.com/robbyrussell/oh-my-zsh/wiki/ themes 119݄12݄༵
ͦΜͳ͋ͳͨͷͨΊʹ(2) screenͷ߹ screen wrapper byobu tmux ͲͬͪσϑΥϧτͰɺͳΜ͔ͦΕͬ Ά͍ઃఆ͕ೖͬͯ·͢ 119݄12݄༵
DEMO 119݄12݄༵
·ͱΊ ݹͷಓ۩ͱ͖ͬͭʹ͍͘ ͕ɺ֮͑Δͱڧྗ zshͦͦ͜͜ރΕ͖ͯͨ Έ߹Θͤ ΦϨΦϨڥ 119݄12݄༵
άϦʔͰ ٕज़ऀΛେืू ͍ͯ͠·͢ʼʻ 119݄12݄༵
͝ਗ਼ௌ ͋Γ͕ͱ͏ ͍͟͝·ͨ͠ 119݄12݄༵