Tmux will SKYROCKET your productivity - here’s how
Vložit
- čas přidán 19. 05. 2024
- X: / typecraft_dev
🚨Tmux for newbs - Episode 1🚨
Tmux is an amazing tool that has skyrocketed my productivity as a programmer. In this series, I want to teach you all about tmux. From how it works to how I use it day-to-day, and how to make it look AWESOME with some sweet configuration.
In this episode of tmux for newbs, we will go over tmux, how it works, and how to operate panes, windows, and sessions
00:00 Introduction
01:04 Why Tmux
01:44 What IS Tmux ?
03:42 Tmux benefits
04:51 Launching Tmux
05:13 Windows in Tmux
05:56 Panes in Tmux
06:29 Rename Windows
06:49 Detaching from session
07:03 Reattaching to sessions
07:23 Creating a new session
07:44 Switching sessions within Tmux
08:02 Renaming sessions
08:40 Sessions keep running!
09:23 Recap
09:41 Coming Next! - Věda a technologie
Thanks nerd
HEYOOOOOO
I'm a simple man, i see a new typecraft video, i click on it
Hell yeah. Brother
@@typecraft_dev I love your series on neovim. I learnt so much. Thanks a lot ❤️
Thanks nerd
Don’t forget to like it as well!
lol you mispelled *single
Tmux has changed my entire code experiences and I have only been using it for a 2 or 3 weeks! Great video!
Oh hey Calvin!
This was great for the 1st video of a series, massive respect for que quality of the content and the editing, I am subscribed for life. Hope I get to see how all of the tmux power can come to life in a work environment (:
Cheers from Mexico City
Found this video right before going to sleep and got that quite interesting and already tryed every step with you. Thank you, can't wait to look more videos.
I started using tmux occasionally about 3 years ago, just for session sharing. But your older videos about tmux made me coolest kid around the block :) I’ve even purchased bigger 4k screen to have everything I am doing collected together in tmux. Looking forward for the series, I know in your presentation style, this will be a good one! This particular video is amazing and refreshing as well. Helped to recheck what we know about this money making tool 😂
Haha I love that you’re the coolest kid on the block now!
I love this, I was just configuring my tmux yesterday on my linux workstation. I like it so much, especially when i have it setup with my favourite ide within the terminal whether its nvim or emacs. Keep it up, i would love to watch this on daily basis to learn new things with tmux to maximize its power
Usually I feel like a lot of linux, techy and nerdy stuff is explained like poop, with very low quality quality, editing and no mustache, you’re the exception, you’re amazing, keep your amazing work. You got a new subscriber
Let's go! I was waiting for this video. To be honest, when you explain, I understand better. It helps me learn new things and use them. It was complex for me to understand tmux; watching other videos never worked for me. But when you explained it, it became much clearer to me.
Awesome!
Being a tmux nerd and listening to another tmux nerd is life 🙌🏾🙌🏾after mastering tmix ( neovim & obsidian) should be on the list to master
these are amazing. the kinda stuff primagens "how to be a nvim dev" just briefly skimmed over. u a great teacher too. perfect editing to highlight the important parts but not overshadowing the secondary information. fast enough to mostly hold my attention but slow enough to go over everything
cya at 100k subs fam
Great vid! Looking forward to more! Are you also covering something like sessionizer?
Best explanation I found so far! Thank you!
This is why Iove this channel!
Thanks!
Thanks for starting a series on the topic, I am sure I will "steal" some ideas from it. 😊 I have been using tmux for quite some time now. I have configured zsh to immediately start a tmux session and I have a shortcut on my work machine to set up all my windows and panes I need via tmuxinator (I have several backend services starting up sequentially by having panes watching the contents of other panes to prevent my machine freezing up etc, works like a charm.) I have had no use of different sessions yet, but who knows...
I love tmuxinator!! Thanks for being a member!!
You should look tms
Awesome work! can't wait to get into this
Your educational content is so, so good. Thank you for covering this. Learned a lot
tmux-resurrect and tmux-continuum is my favorite tmux plugin. Good video Btw.
again new amazing series from you. Thanks 👍👍
♥️
Great video! Thanks for sharing
I love this! I want to move to tmux (currently using terminator with starship). I've found the configuration for tmux complicated, and loosing my normal copy/paste with a mouse have been hurdles I haven't made it over. I'm hoping to be a new convert!
Amazing .. waiting the next episode
Tmux always felt confusing to me. This helped a ton. Only thing missing for completeness in my opinion was how to close panes/windows/sessions.
Thanks for the great video!
EDIT: I hope in the practical application part of this series you'll also mention when you use a different session vs different windows vs different panes, just so newcomers have a decent mental model of how to best use tmux.
I took a break from learning how to use nvim and using the terminal for everything, but after seeing your lazy git and tmux videos I feel hooked again 😎
this guy is awesome, I like the way he explains everything. Please continue, I have always wanted to learn tmux
More to come!
you have quickly become my go to source for anything vim related and more
Love hearing this thank you
Good stuff! I use tmux, but just basic panes/windows. Just started looking at sessions today.
Awesome you’ll love it!
TMUX & Neovim are the core of my workflow, thanks nerd for the tutorials
Looking forward to this series. Hoping you cover copy/pasting because it always seems to be an issue for me no matter how I configure tmux.
Such a great video! Thank you so much for the wonderful content. Sending love from Pakistan.
Stoked about this had no idea tmux had the sessions saved I assumed it just was an easy way to pen multiple panes
Tmux is so great you’re going to love it
Tmux makes using Neovim a must. If I ever switch to a non-terminal editor I will lose all tmux benefits. Tmux+neovim is love, tmux+neovim is life.
tmux is a better version of screen ? great video as always
I love this mans videos
Great video, keep up the good work 👍
Thanks, will do!
Love your content man. You can do pretty much all this with Gnome Workspaces & Kitty.....unless I am missing something.
Next video plis!!! And that terminal theme is catpuccino? How did you got that running?? Thanks Typecraft 🙌
Coming soon!
This channel is the best things ever ❤
You’re the best thing ever
@@typecraft_dev ♥
You are the best
Best of best
I never see youtuber like you
I love you
Awesome video, thank you :)
I have quite a bit of experience with Tmux and i thought this video would be not that useful for me, but then you renamed a window to 'poop'. You sir, have just earned yourself a subscription
💩
Its the lo-fi "In the End" piano cut at @7:35 or so for me
can't wait for ep. 2.....Thanks nerd!
Thank you NERD!!
I see why you renamed the window using the prompt. Just for the sake of completeness. The default keybinding is ctrl-b ,
Can't wait to see the next video. thx
That’s right thank you!
At some point, I’m probably going to have to switch from GNU screen to tmux. It’s just that I’ve been using screen for close to 20 years and it’s pretty well incorporated into my muscle memory. Being able to split panes in a window with tmux looks a bit better than how screen does it, at least for a specific use case I wanted to something like that recently.
How well does tmux embed sessions within sessions? During my most prolific phase of using screen, I had screen sessions four layers deep, could share the “meta” session with coworkers, pair with them and their view followed my view as I navigated across the different layered sessions. It was a pretty sweet setup given that I needed similar sessions across multiple hosts in multiple environments and needed to swap between them all frequently.
I'm to new here. looking forward upcoming videos on tmux
Did the wind hit you (lost in translation) ? You're red under the right eye x.x
Hope its not anything serious, thanks for the video. I liked it!
It just gets hot in my office where I record! Haha
@@typecraft_dev Oof that sucks, hope it gets better man or you figure it out
Please let's do arch installation with hyperland full beginner guide next so then i would be able to use Linux on my windows along woth tmux and neovim(lazyvim) absolutely love your videos started with nvim after watching your videos and yeah if you could start a Linux series i would be the happiest nerd .thanks for listening to my bs 😅
great videos on neovim and tmux. thanks. persistence, btw
Very good explanation!
Glad it was helpful!
@@typecraft_dev Very helpful.
I love u typecraft
ILU
Thanks for the videos. I've heard about tmux for years but I just can't see a use case for it. Perhaps in the future I will. I use Linux and can easily change to another workspace with my window manager. At most I will only keep 2 windows open when coding. If I want to go back to the coding session I just switch to the workspace. I see how people can find it useful by attaching to it from elsewhere though.
Glad you like the video!! I would still use tmux in Linux but that’s just me
@@typecraft_dev will give it a go sometime.
I’ve been looking forward to this! iTerm has options for tmux, I have no idea what they do, can you cover those as well please?
I saw in the video that he is using iTerm2 and asked to explain the difference between that the built in tmux and a manually installed tmux... @typecraft just deleted my comment... 🤷🏻♂ it turns out that if you install and use iTerm2 you have already tmux built in.. you can even just call the command tmux and it will start.
nice little video, a couple of other out the box key bindings worth knowing
? list all keybindings
, rename-window
/ describe key binding
Anyone else remember GNU screen?
Remember? It still exists!
@@angroxSure, but does anyone still use it? Does it have any significant benefit over tmux? (I mean, I'd love to see someone create a configuration for tmux that makes it behave as closely to screen as is possible...)
@@benjamingeiger It has no benefit, but the probability it is installed is higher (when you have to work with multiple different *nix systems). At least in my experience. It is like vi (without m) - it is just there.
I didn't see those things, I'm Gen Z 😂😂
Yes (I'm gen Z my father taught me Linux with screen)
Thanks to you Nerd!
Thanks!
Thanks for the video, looking forward the next episode.
Can u share your zsh and powerlevel10k config files? I followed your previous guide and didn't get this beautiful customization
Sure!!
@@typecraft_devwaiting…😅
@@yardenh5427 bro still hasn't responded
Are there any benefits performance-wise using tmux 🙂? I'm using whatever multi-pane terminal I have, eg. cmder/Tabby, and it works for me. I kinda like "resetting" everytime, to start from a clean slate, as I change between working on many different projects anyway.
Any other benefits, and should I really switch? I'm always interested in improving productivity.
I live on the cli but use Powershell in Windows Terminal, which persists your sessions via tabs that I can ctrl+tab to quickly switch between. Would tmux still be a great benefit in this scenario too?
I have to confess. I love Zellij, but now seen this video, I confess that I had desire to use tmux again.
Thanks!
Wow what a legend! Thank you!!
I liked the old thumbnail better, but had the video in my watch later.
Absolute W, keep it up nerd
Will do!
Great vid. I'm guessing you just took off the heavy weight Vision Pro? It almost looks like your cheek took a shot lol.
Dammit it gets hot in my office and my face gets red!!
Subbed for using 💩in the personalized prompt
It tried tmux before. The only issue was that Kitty icat didn't work for me in a tmux session. And i need icat for view data/plots.
Also, I love your contents.
If all series will be like neovim one's... That's just awesome
I’m really undecided whether to use tmux or some modern terminal emulator… they do offer most of the same features but really cool other ones as well
I use the kitty terminal which has splitting and tabs, but no persistence. I wish there was a tool that gives me that persistence without the other features of tmux. I'm not a fan of tmux key bindings out the gate. Does such a tool exist?
Thoughts on Zellij?
much awaited
thanks, nerd
As a beginner just starting out to use the terminal which one to hop on and why?
NeoVim v/s Tmux?
neovim to start. then tmux when you're comfortable with neovim (tmux is a different thing you use WITH neovim)
Wow. That looks like a version of windows terminal that actually works properly
If I'm not doing a lot of background jobs or SSHing - how useful is tmux? I currently use iTerm panes to split a window vertical/horizontal which is possibly the big selling point here?
I'll show that off a bit more in upcoming videos. But essentially, you can navigate between panes and windows without taking your hands off the keyboard. And with more ergonomic keybindings
Better than netflix, would recommend
the only tmux feature that I can’t replicate with tiling windows is being able to detach/reattach from a session. I don’t usually find a use case for that. instead, I just minimize the terminal
If you have multiple computers, for example a laptop and a desktop, using tmux can improve your experience 1000x. You can work on something on your desktop in neovim in tmux for example, leave your home and then hop onto the train, ssh into your desktop from the laptop and continue exactly where you left off. Good luck doing that with regular terminal windows
And you can also have many sessions open at once with only one terminal. I have a script to either open an existing session for a project or launch a new one if it does not exist. If I wanted to do the same thing with terminal windows I would have to have 10+ terminals runnning at once at all times. Its a very good experience to be able to launch a tmux session for any of my projects on my entire computer in just 5 keypresses max, and be exactly where I want to be with all windows/panes set up
Modern terminal apps also do all these split windows, tabs and panes. And locally I don't ever need to "detach". So unless you work with remote servers a lot, I really don't see a point.
Can you share your terminal configuration mainly the background color?
he's using the catppuccin color scheme which comes in 3 dark variants so the background color is either #1e1e2e (mocha), #24273A (macchiato) or #303446 (frappe)
Wanted to checkout 2nd part.... realized that this one just came out.
hah, next will be out soon!
Noice!
zellij
I’ll have to check that out!
@@typecraft_dev indeed
I checked out zellij once, but I did not see any benefit for switching over from my tmux / tmuxinator workflow. But I will take another look at zellij just for curiosity.
Genuine question. What’s the difference between this and eMacs?
Love to see rails! Man of culture I see 😏
Loveeeeew❤❤❤❤❤
Seems like a better screen command.
4:11 so funny haha :D
Iterm2 don't do that already?
% and " always feel backwards to me. A pct sign is one thing on top of another. A double quote is one thing next to another. WHY do they not create splits that reflect that.
Alright I’m convinced…
Nice to watch your videos…
Glad you like them!
Here I am using plasma komsole which has built-in split/tab functionality 😂
love it!
Ignoring tty, why would I want tmux, gnu screen, etc... if I have my wm windows?
It's all about not using a mouse.
This seems kind of like a Tiling Window Manager
Yeah!! It kind of is
I used screen but it messes up with colors. is tmux better?
Yup!! :)
can tmux be used with warp?
I’ve used tmux in warp. I’m not sure if there are any issues with it
Is that stranger things at intro?
The master of cadence
Unless you use a tiling window manager (BTW)
True! (Kinda)
@@typecraft_dev I heard this twice so far, but I don't understand as to why!
...
Mom: "We have Primeagen at home".
New subscriber here
Welcome !