Tmux tips and_tricks

Arc & Codementor
Arc & CodementorArc & Codementor
Tmux tips & tricks
Overview 
1. keeping .tmux.conf short 
2. tmux workflow: managing windows & sessions 
3. fast session switching
1. keeping .tmux.conf short 
• *huge* tmux.conf files with 200+ LOC 
• “community standard” key bindings + plugins: 
tmux-sensible 
tmux-pain-control 
• build your own plugin
2. managing windows & 
sessions 
Classic tmux workflow 
• conservative number of sessions 
Eg: 2 sessions ‘work’ and ‘private’ 
• 1 session = many projects 
• highly maintained list of windows and panes 
• strict window layouts
2. managing windows & 
sessions 
Recommended workflow 
• terminals are “cheap”: create windows & sessions liberally 
• no need to “manage” or “delete” unused panes, windows or 
sessions 
• 1 session = 1 project works well 
• create window layout on the go (because it’s fast and easy) 
• *everything* should be fast and easy
3. fast session switching 
• problem with a large number of 
sessions 
• `prefix + s` does not work for 5+ 
sessions. 
It takes too long to “visually” find the 
desired session and switch to it.
3. fast session switching 
• recommendation: 
tmux-sessionist plugin `prefix + g` 
• principle: 
- tell tmux what to do 
- don’t “visually parse” 
Credit: Gary Bernhardt and his vim tips
3. fast session switching 
• you already know where you want to “go” 
• session name completion
Questions? 
Feedback?
1 of 9

Recommended

Introduction to Tmux - Codementor Tmux Office Hours Part 1 by
Introduction to Tmux - Codementor Tmux Office Hours Part 1Introduction to Tmux - Codementor Tmux Office Hours Part 1
Introduction to Tmux - Codementor Tmux Office Hours Part 1Arc & Codementor
42K views21 slides
tmux - An overview of the features of this powerful terminal multiplexer. by
tmux - An overview of the features of this powerful terminal multiplexer.tmux - An overview of the features of this powerful terminal multiplexer.
tmux - An overview of the features of this powerful terminal multiplexer.jhalfmoon
1.8K views29 slides
tmux by
tmuxtmux
tmuxJason Lotito
1.8K views59 slides
Uses of tmux explained by
Uses of tmux explainedUses of tmux explained
Uses of tmux explainedStanislas Polu
27.5K views15 slides
Tmux Development Workflow by
Tmux Development WorkflowTmux Development Workflow
Tmux Development Workflowjschembri
486 views31 slides
TMUX Rocks! by
TMUX Rocks!TMUX Rocks!
TMUX Rocks!Kent Chen
15.7K views67 slides

More Related Content

What's hot

20 keyboard shortcuts for your linux machine by
20 keyboard shortcuts for your linux machine20 keyboard shortcuts for your linux machine
20 keyboard shortcuts for your linux machineYoussoufou YABRE
503 views2 slides
Improving your shell usage - 2009 by
Improving your shell usage - 2009Improving your shell usage - 2009
Improving your shell usage - 2009Chris Sinjakli
344 views17 slides
2016 nov-16 grenoble-floss_tmux by
2016 nov-16 grenoble-floss_tmux2016 nov-16 grenoble-floss_tmux
2016 nov-16 grenoble-floss_tmuxMichael Bright
214 views22 slides
tmux20141007 by
tmux20141007tmux20141007
tmux20141007Kevin Wu
148 views9 slides
Remote pairing from the comfort of your own shell by
Remote pairing from the comfort of your own shellRemote pairing from the comfort of your own shell
Remote pairing from the comfort of your own shellevanlight
857 views80 slides
Unix by
UnixUnix
UnixHari Krishna
352 views2 slides

What's hot(12)

20 keyboard shortcuts for your linux machine by Youssoufou YABRE
20 keyboard shortcuts for your linux machine20 keyboard shortcuts for your linux machine
20 keyboard shortcuts for your linux machine
Youssoufou YABRE503 views
Improving your shell usage - 2009 by Chris Sinjakli
Improving your shell usage - 2009Improving your shell usage - 2009
Improving your shell usage - 2009
Chris Sinjakli344 views
2016 nov-16 grenoble-floss_tmux by Michael Bright
2016 nov-16 grenoble-floss_tmux2016 nov-16 grenoble-floss_tmux
2016 nov-16 grenoble-floss_tmux
Michael Bright214 views
tmux20141007 by Kevin Wu
tmux20141007tmux20141007
tmux20141007
Kevin Wu148 views
Remote pairing from the comfort of your own shell by evanlight
Remote pairing from the comfort of your own shellRemote pairing from the comfort of your own shell
Remote pairing from the comfort of your own shell
evanlight857 views
Casper FFG Explained by 상문 오
Casper FFG ExplainedCasper FFG Explained
Casper FFG Explained
상문 오648 views
Installation of ubuntu, ns3 and compiling first by Jawad Khan
Installation of ubuntu, ns3 and compiling firstInstallation of ubuntu, ns3 and compiling first
Installation of ubuntu, ns3 and compiling first
Jawad Khan693 views

Similar to Tmux tips and_tricks

UNIX Notes by
UNIX NotesUNIX Notes
UNIX NotesPandurangBiradar2
150 views74 slides
AdminCamp 2018 - IBM Notes V10 Performance Boost by
AdminCamp 2018 - IBM Notes V10 Performance BoostAdminCamp 2018 - IBM Notes V10 Performance Boost
AdminCamp 2018 - IBM Notes V10 Performance BoostChristoph Adler
1.5K views45 slides
45c by
45c45c
45cSireesh K
125 views10 slides
ICONUK 2018 - IBM Notes V10 Performance Boost by
ICONUK 2018 - IBM Notes V10 Performance BoostICONUK 2018 - IBM Notes V10 Performance Boost
ICONUK 2018 - IBM Notes V10 Performance BoostChristoph Adler
127 views46 slides
Next Generation Monitoring for IBM Domino, Traveler, IMSMO, Verse by
Next Generation Monitoring for IBM Domino, Traveler, IMSMO, VerseNext Generation Monitoring for IBM Domino, Traveler, IMSMO, Verse
Next Generation Monitoring for IBM Domino, Traveler, IMSMO, VerseVladislav Tatarincev
1K views49 slides
Insider operating system by
Insider   operating systemInsider   operating system
Insider operating systemAditi Saxena
438 views74 slides

Similar to Tmux tips and_tricks(20)

AdminCamp 2018 - IBM Notes V10 Performance Boost by Christoph Adler
AdminCamp 2018 - IBM Notes V10 Performance BoostAdminCamp 2018 - IBM Notes V10 Performance Boost
AdminCamp 2018 - IBM Notes V10 Performance Boost
Christoph Adler1.5K views
ICONUK 2018 - IBM Notes V10 Performance Boost by Christoph Adler
ICONUK 2018 - IBM Notes V10 Performance BoostICONUK 2018 - IBM Notes V10 Performance Boost
ICONUK 2018 - IBM Notes V10 Performance Boost
Christoph Adler127 views
Next Generation Monitoring for IBM Domino, Traveler, IMSMO, Verse by Vladislav Tatarincev
Next Generation Monitoring for IBM Domino, Traveler, IMSMO, VerseNext Generation Monitoring for IBM Domino, Traveler, IMSMO, Verse
Next Generation Monitoring for IBM Domino, Traveler, IMSMO, Verse
Insider operating system by Aditi Saxena
Insider   operating systemInsider   operating system
Insider operating system
Aditi Saxena438 views
Operating System by puneet2home
Operating SystemOperating System
Operating System
puneet2home435 views
DNUG Webcast: IBM Notes V10 Performance Boost by Christoph Adler
DNUG Webcast: IBM Notes V10 Performance BoostDNUG Webcast: IBM Notes V10 Performance Boost
DNUG Webcast: IBM Notes V10 Performance Boost
Christoph Adler1.8K views
Presentation for git jira and linux by dkylko1
Presentation for git jira and linuxPresentation for git jira and linux
Presentation for git jira and linux
dkylko130 views
Von A bis Z-itrix: Installieren Sie den stabilsten und schnellsten HCL Notes-... by panagenda
Von A bis Z-itrix: Installieren Sie den stabilsten und schnellsten HCL Notes-...Von A bis Z-itrix: Installieren Sie den stabilsten und schnellsten HCL Notes-...
Von A bis Z-itrix: Installieren Sie den stabilsten und schnellsten HCL Notes-...
panagenda670 views
Linux for beginners by Nitesh Nayal
Linux for beginnersLinux for beginners
Linux for beginners
Nitesh Nayal1.6K views
From A to Z-itrix: Setting up the most stable and fastest HCL Notes client on... by panagenda
From A to Z-itrix: Setting up the most stable and fastest HCL Notes client on...From A to Z-itrix: Setting up the most stable and fastest HCL Notes client on...
From A to Z-itrix: Setting up the most stable and fastest HCL Notes client on...
panagenda203 views
Got Problems? Let's Do a Health Check by Luis Guirigay
Got Problems? Let's Do a Health CheckGot Problems? Let's Do a Health Check
Got Problems? Let's Do a Health Check
Luis Guirigay6.8K views

More from Arc & Codementor

Remote Career Summit 2020 - the State of Remote Jobs - Weiting Liu of Arc by
Remote Career Summit 2020 - the State of Remote Jobs - Weiting Liu of ArcRemote Career Summit 2020 - the State of Remote Jobs - Weiting Liu of Arc
Remote Career Summit 2020 - the State of Remote Jobs - Weiting Liu of ArcArc & Codementor
364 views31 slides
Introduction to Python for Data Science by
Introduction to Python for Data ScienceIntroduction to Python for Data Science
Introduction to Python for Data ScienceArc & Codementor
4.6K views25 slides
25 php interview questions – codementor by
25 php interview questions – codementor25 php interview questions – codementor
25 php interview questions – codementorArc & Codementor
173.1K views37 slides
20 iOS developer interview questions by
20 iOS developer interview questions20 iOS developer interview questions
20 iOS developer interview questionsArc & Codementor
2.3K views23 slides
29 Essential AngularJS Interview Questions by
29 Essential AngularJS Interview Questions29 Essential AngularJS Interview Questions
29 Essential AngularJS Interview QuestionsArc & Codementor
487.6K views31 slides
37 Java Interview Questions by
37 Java Interview Questions37 Java Interview Questions
37 Java Interview QuestionsArc & Codementor
20.8K views39 slides

More from Arc & Codementor(13)

Remote Career Summit 2020 - the State of Remote Jobs - Weiting Liu of Arc by Arc & Codementor
Remote Career Summit 2020 - the State of Remote Jobs - Weiting Liu of ArcRemote Career Summit 2020 - the State of Remote Jobs - Weiting Liu of Arc
Remote Career Summit 2020 - the State of Remote Jobs - Weiting Liu of Arc
Arc & Codementor364 views
Introduction to Python for Data Science by Arc & Codementor
Introduction to Python for Data ScienceIntroduction to Python for Data Science
Introduction to Python for Data Science
Arc & Codementor4.6K views
25 php interview questions – codementor by Arc & Codementor
25 php interview questions – codementor25 php interview questions – codementor
25 php interview questions – codementor
Arc & Codementor173.1K views
20 iOS developer interview questions by Arc & Codementor
20 iOS developer interview questions20 iOS developer interview questions
20 iOS developer interview questions
Arc & Codementor2.3K views
29 Essential AngularJS Interview Questions by Arc & Codementor
29 Essential AngularJS Interview Questions29 Essential AngularJS Interview Questions
29 Essential AngularJS Interview Questions
Arc & Codementor487.6K views
21 Essential JavaScript Interview Questions by Arc & Codementor
21 Essential JavaScript Interview Questions21 Essential JavaScript Interview Questions
21 Essential JavaScript Interview Questions
Arc & Codementor653.5K views
Top 10 Programming Languages in 2015 by Arc & Codementor
Top 10 Programming Languages in 2015Top 10 Programming Languages in 2015
Top 10 Programming Languages in 2015
Arc & Codementor589 views
Angular meteor for angular devs by Arc & Codementor
Angular meteor for angular devsAngular meteor for angular devs
Angular meteor for angular devs
Arc & Codementor18.8K views
Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at... by Arc & Codementor
Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...
Codementor Office Hours with Eric Chiang: Stdin, Stdout: pup, Go, and life at...
Arc & Codementor3.4K views
Building Modern and Secure PHP Applications – Codementor Office Hours with Be... by Arc & Codementor
Building Modern and Secure PHP Applications – Codementor Office Hours with Be...Building Modern and Secure PHP Applications – Codementor Office Hours with Be...
Building Modern and Secure PHP Applications – Codementor Office Hours with Be...
Arc & Codementor11.2K views
Python Internals Optimization Choices Made - Codementors Office Hours with St... by Arc & Codementor
Python Internals Optimization Choices Made - Codementors Office Hours with St...Python Internals Optimization Choices Made - Codementors Office Hours with St...
Python Internals Optimization Choices Made - Codementors Office Hours with St...
Arc & Codementor20.3K views

Recently uploaded

Evolving the Network Automation Journey from Python to Platforms by
Evolving the Network Automation Journey from Python to PlatformsEvolving the Network Automation Journey from Python to Platforms
Evolving the Network Automation Journey from Python to PlatformsNetwork Automation Forum
13 views21 slides
Democratising digital commerce in India-Report by
Democratising digital commerce in India-ReportDemocratising digital commerce in India-Report
Democratising digital commerce in India-ReportKapil Khandelwal (KK)
18 views161 slides
Special_edition_innovator_2023.pdf by
Special_edition_innovator_2023.pdfSpecial_edition_innovator_2023.pdf
Special_edition_innovator_2023.pdfWillDavies22
18 views6 slides
PRODUCT PRESENTATION.pptx by
PRODUCT PRESENTATION.pptxPRODUCT PRESENTATION.pptx
PRODUCT PRESENTATION.pptxangelicacueva6
15 views1 slide
"Running students' code in isolation. The hard way", Yurii Holiuk by
"Running students' code in isolation. The hard way", Yurii Holiuk "Running students' code in isolation. The hard way", Yurii Holiuk
"Running students' code in isolation. The hard way", Yurii Holiuk Fwdays
17 views34 slides
Microsoft Power Platform.pptx by
Microsoft Power Platform.pptxMicrosoft Power Platform.pptx
Microsoft Power Platform.pptxUni Systems S.M.S.A.
53 views38 slides

Recently uploaded(20)

Special_edition_innovator_2023.pdf by WillDavies22
Special_edition_innovator_2023.pdfSpecial_edition_innovator_2023.pdf
Special_edition_innovator_2023.pdf
WillDavies2218 views
"Running students' code in isolation. The hard way", Yurii Holiuk by Fwdays
"Running students' code in isolation. The hard way", Yurii Holiuk "Running students' code in isolation. The hard way", Yurii Holiuk
"Running students' code in isolation. The hard way", Yurii Holiuk
Fwdays17 views
SAP Automation Using Bar Code and FIORI.pdf by Virendra Rai, PMP
SAP Automation Using Bar Code and FIORI.pdfSAP Automation Using Bar Code and FIORI.pdf
SAP Automation Using Bar Code and FIORI.pdf
Five Things You SHOULD Know About Postman by Postman
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About Postman
Postman36 views
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院 by IttrainingIttraining
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
HTTP headers that make your website go faster - devs.gent November 2023 by Thijs Feryn
HTTP headers that make your website go faster - devs.gent November 2023HTTP headers that make your website go faster - devs.gent November 2023
HTTP headers that make your website go faster - devs.gent November 2023
Thijs Feryn22 views
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... by TrustArc
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc11 views
Unit 1_Lecture 2_Physical Design of IoT.pdf by StephenTec
Unit 1_Lecture 2_Physical Design of IoT.pdfUnit 1_Lecture 2_Physical Design of IoT.pdf
Unit 1_Lecture 2_Physical Design of IoT.pdf
StephenTec12 views
STPI OctaNE CoE Brochure.pdf by madhurjyapb
STPI OctaNE CoE Brochure.pdfSTPI OctaNE CoE Brochure.pdf
STPI OctaNE CoE Brochure.pdf
madhurjyapb14 views
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... by Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker40 views

Tmux tips and_tricks

  • 1. Tmux tips & tricks
  • 2. Overview 1. keeping .tmux.conf short 2. tmux workflow: managing windows & sessions 3. fast session switching
  • 3. 1. keeping .tmux.conf short • *huge* tmux.conf files with 200+ LOC • “community standard” key bindings + plugins: tmux-sensible tmux-pain-control • build your own plugin
  • 4. 2. managing windows & sessions Classic tmux workflow • conservative number of sessions Eg: 2 sessions ‘work’ and ‘private’ • 1 session = many projects • highly maintained list of windows and panes • strict window layouts
  • 5. 2. managing windows & sessions Recommended workflow • terminals are “cheap”: create windows & sessions liberally • no need to “manage” or “delete” unused panes, windows or sessions • 1 session = 1 project works well • create window layout on the go (because it’s fast and easy) • *everything* should be fast and easy
  • 6. 3. fast session switching • problem with a large number of sessions • `prefix + s` does not work for 5+ sessions. It takes too long to “visually” find the desired session and switch to it.
  • 7. 3. fast session switching • recommendation: tmux-sessionist plugin `prefix + g` • principle: - tell tmux what to do - don’t “visually parse” Credit: Gary Bernhardt and his vim tips
  • 8. 3. fast session switching • you already know where you want to “go” • session name completion