Tmux has forever changed the way I write code.

Tmux has forever changed the way I write code.

Dreams of Code

1 год назад

923,126 Просмотров

Before tmux, I spent most of my time working in graphical editors and interfaces, and found working in the terminal difficult to do.

After moving to tmux and learning how to configure it to suit my needs, I now spend nearly all my time whilst writing code in tmux.

In this video, I share the configuration that I’ve developed over the years to improve my own productivity, and why you may want to consider using tmux yourself.

#coding #programming #software

Need a cheatsheet for tmux? Visit the Dreams of Code Store
https://store.dreamsofcode.io/

Become a better developer in 4 minutes: https://bit.ly/45C7a29 👈

Tmux config git repository: https://github.com/dreamsofcode-io/tmux
Tmux: https://github.com/tmux/tmux
TPM: https://github.com/tmux-plugins/tpm

My socials:
Discord: https://discord.gg/zajQHRxTRJ
Twitter: https://twitter.com/dreamsofcode_io

My Equipment:
Voice over: https://kit.co/dreamsofcode/voiceover
Coding: https://kit.co/dreamsofcode/coding

00:00 Intro
00:21 Why Tmux?
01:20 Getting started
02:59 How to use Tmux
06:59 Better Navigation
08:53 Colors
09:20 Prefix key
09:49 Theme
10:36 Mouse Support
10:51 Window numbering
11:17 Yanking
12:26 Current working directory

Тэги:

#tmux #coding #t_mux #dev_env
Ссылки и html тэги не поддерживаются


Комментарии:

@only2sea
@only2sea - 27.11.2023 05:08

Emacs, all done!

Ответить
@nubeks
@nubeks - 25.11.2023 23:40

Most config options didn't work. Hmmmm...

Ответить
@straypacket
@straypacket - 22.11.2023 20:24

So, tmux sessions in vscode terminal is my current workflow.

Ответить
@ovuokeaghwotu2389
@ovuokeaghwotu2389 - 22.11.2023 17:42

Your terminal is gorgeous! How are you able to have the tmux tabs names show they way they do. Mine only has an asterisk and it’s plain.

Ответить
@ryansouza5728
@ryansouza5728 - 21.11.2023 04:20

nice

Ответить
@samsinglewood494
@samsinglewood494 - 21.11.2023 03:30

Great video. You might want to switch the catppuccin theme back from your fork, the main repository been updated with similar features to your extension and more. It's worth checking out.

Ответить
@user-xv2ir1qe9r
@user-xv2ir1qe9r - 19.11.2023 17:20

Not sure I get the hate for this setup. Just recently installed tmux and I am slow with it but getting a bit quicker.

Anyone hating on it, if you see someone proficient with tmux and vim, it’ll blow you away how quickly they can do things compared to an average person using an IDE.

Can definitely tell it’ll take years for me to get to that level though

Ответить
@abrarchowdhury5687
@abrarchowdhury5687 - 19.11.2023 08:40

you kept mentioning "pain" over and over again, and then I noticed "Amaterasu".

Ответить
@cr4zyg3n36
@cr4zyg3n36 - 19.11.2023 04:35

tmux <prefix b> sucks what a horrible way of working

Ответить
@wilmer.ferreira
@wilmer.ferreira - 19.11.2023 02:26

What OS distribution are you using?

Ответить
@robertfox4114
@robertfox4114 - 18.11.2023 06:42

Arch ricer

Ответить
@mawnkey
@mawnkey - 18.11.2023 01:30

tmux is a large part of the reason I have a laptop that's a $200 piece of garbage to code on. Who needs more compute power on the go when all you need is a battery powered wireless dumb terminal to connect to the development session on your beastly machine at home?

Ответить
@I3LACKSIDE111996
@I3LACKSIDE111996 - 17.11.2023 14:23

On MacOS make sure to disable Ctrl-Space in the OS first, as tmux isnt registering that input if it is enabled in keyboard configurations

Ответить
@user-hf7ef6nm4s
@user-hf7ef6nm4s - 16.11.2023 22:00

Hey! Great video! I have done some searching around on this and haven't been able to find anything, but I have downloaded the tmux navigator plugin, but for some reason using control and then a vim motion key just moves me over 1 unit in my editor and not between windows in either vim nor tmux. Any ideas on how to fix this? Thank you!

Ответить
@anon8510
@anon8510 - 15.11.2023 17:52

also, people need to stop saying they use Vim when in reality they use Neovim

Ответить
@anon8510
@anon8510 - 15.11.2023 17:49

is there a big advantage in using tmux if you're already using a tilling window manager?

Ответить
@Jubijub
@Jubijub - 11.11.2023 18:19

Such a high quality tutorial : great content, great editing

Ответить
@joshsmithward8848
@joshsmithward8848 - 11.11.2023 01:34

Really good and concise! Thanks.

Ответить
@Deathreploid
@Deathreploid - 09.11.2023 03:28

Could you something like this but for neovim and Astro nice video

Ответить
@sabinadhikari2643
@sabinadhikari2643 - 08.11.2023 06:54

Which window manager are you using?

Ответить
@mildlymusical4054
@mildlymusical4054 - 07.11.2023 08:11

A very well organised video, I wasn't expecting that you would go over tmux , I think this video should be the perfect starting point for anyone starting with tmux , thank you for your hardword

Ответить
@Ozku9
@Ozku9 - 06.11.2023 16:34

Hey, just wanted to say that I really appreciate your videos. Your entire channel has been a blessing in the world of hours long videos without clear or concise structure.

Ответить
@sebaszwarc
@sebaszwarc - 05.11.2023 21:05

On Macos it's even better because Tmux is built-in in iTerm

Ответить
@xartpant
@xartpant - 03.11.2023 22:52

Terminator terminal emulator provides the same tiling feature and navigation with no need to mess around with all that configurations.

Ответить
@ivlis.w8630
@ivlis.w8630 - 29.10.2023 13:24

This helped me start using tmux in so many ways

Ответить
@ckdawg23
@ckdawg23 - 26.10.2023 03:05

Hi , this video inspired me to use tmux. Moving between nvim and tmux panes with ctrl-H, ctrl-J, etc. seems to be working well when I'm in vim file, but not working when I'm in the netrw directory view. Any ideas? Thanks for your help!

Ответить
@user-lb2qi2oc6i
@user-lb2qi2oc6i - 24.10.2023 21:42

/Users/md.akil/.config/tmux/tmux.conf:1: command set-option: invalid flag -@ getting this error

Ответить
@olivierlasne2346
@olivierlasne2346 - 22.10.2023 19:01

I used tmux for years, but I never got into configuring it. Thanks for improving my workflow

Ответить
@MagnusNemo-xc5nx
@MagnusNemo-xc5nx - 17.10.2023 06:46

zellij is where it's at.

Ответить
@ShawnMurphy_smurp
@ShawnMurphy_smurp - 15.10.2023 01:37

I do this same sort of stuff with Emacs and GNU Screen. Hmm.... emacs

Ответить
@wholesometime6590
@wholesometime6590 - 13.10.2023 15:57

Great video. It looks like it does the same thing as Konsole(KDE). Didn’t realize these options weren’t standard lol.

Ответить
@emerson.dvlmt.g
@emerson.dvlmt.g - 10.10.2023 16:23

I use Bspwm, powerline10k and NVchad could I install tmux without problem?

Ответить
@RajveerSingh-vf7pr
@RajveerSingh-vf7pr - 10.10.2023 13:52

I am at the point where I just want some work get done, I just don't have energy to do 90 different configs just to get the copilot running,
thanks but probably everyone would be eventually reach in my state.

Ответить
@mykytao5028
@mykytao5028 - 09.10.2023 19:14

I heard in this video only one reason why you use tmax - in case you accidentally close the terminal. Splits and tabs are supported in the vim itself. If you really use tmux only to keep opened splits, you may use just a plugin for neovim, like `coffebar/neovim-project`, and not suffer with tmux. Plugin will save all your splits and buffers per projects, and you can switch sessions in less than a second with Telescope fzf

Ответить
@aravindvarma3766
@aravindvarma3766 - 09.10.2023 07:43

Really like your terminal colors, will it be possible to share the zsh config?

Ответить
@Bozebo
@Bozebo - 07.10.2023 17:26

Thing is though, if I could make changes to files with my mind instantly and immediately be able to recall what was in them, so removing all possible coding workflow issues, it would only increase productivity by like 0.1%. The low hanging fruit in development is always going to be the decisions you make, not speeding up writing of code and navigation.

Now for all the other general command line usage day to day, I am intrigued.

Ответить
@An_Idiot_in_the_Wild
@An_Idiot_in_the_Wild - 02.10.2023 10:34

lol, wait til u discover a thing called emacs it willl blo ur mind.

Ответить
@JonLikesStats
@JonLikesStats - 02.10.2023 06:55

My tmux game needs work. Great video.

Ответить
@Naparajith
@Naparajith - 30.09.2023 14:44

I'm a bit confused. Isn't the window and pane functionality available in the Windows Terminal and Powershell by default?

Ответить
@DavidNitzscheBell
@DavidNitzscheBell - 30.09.2023 00:21

"Asterisk" not "Asterix"!

Ответить
@user-lr7du9cy4m
@user-lr7du9cy4m - 29.09.2023 17:32

Loved it! thanks!

Ответить
@falconarea
@falconarea - 28.09.2023 01:37

Just use vs code...

Ответить
@ashwithchandra2622
@ashwithchandra2622 - 27.09.2023 11:42

Bro how u got the curved bottom ? iam using light line what are u using?

Ответить
@KabukiStarship
@KabukiStarship - 27.09.2023 02:47

I've never heard of a prefix key. What is it?

Ответить
@supertrooper6011
@supertrooper6011 - 27.09.2023 00:45

ive seen tmux have the same effect on devops wizards as viagra... this help my tiny brain to comprehend why, thanks DoC

Ответить
@apaapsson774
@apaapsson774 - 25.09.2023 13:04

Honestly i might be younger than most of you, a simple UI is not for me. looks like 90's nostaligia trip.

Ответить
@MichaelButlerC
@MichaelButlerC - 22.09.2023 19:53

Thanks for these videos. This convinced me to try to start using TMUX instead of splitting and making tabs in KDE Konsole UI. I have tried using GNU Screen in the past, and maybe it supports similar features, but tmux seems more interesting with the plugin and customization support! One of my biggest pain points with using screen was always getting long bits of text into my main desktop clipboard. but the fact I can enter copy mode, use PgUp to copy to a buffer, then save that buffer to a txt file easily could come in quite handy. I need to try to break my habit of always using the mouse.

Ответить
@dimasfajar6316
@dimasfajar6316 - 22.09.2023 12:37

use kitty

Ответить