Тёмный

Making Tmux Better AND Beautiful -- here’s how 

typecraft
Подписаться 40 тыс.
Просмотров 45 тыс.
50% 1

X: / typecraft_dev
🚨Tmux for newbs - Episode 2🚨
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're going take it to the next level.
From better keyboard ergonomics to more sensible keybindings, we will take Tmux to the next level. Then we're going to make it look BEAUTIFUL.
Pull up a chair - let's get after it.
00:00 Introduction
00:51 Recap
01:05 Tmux.conf
01:33 Reloading Tmux.conf keybinding
02:01 Prefix Keybinding
03:23 Mouse Support
03:50 Pane navigation keybindings
05:52 Tmux Plugin Manager
07:34 Make it BEAUTIFUL
10:05 Recap

Наука

Опубликовано:

 

7 май 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 151   
@mahirabbas3700
@mahirabbas3700 Месяц назад
thanks nerd
@DiegoCardoso86
@DiegoCardoso86 Месяц назад
A configuration I learned recently is to use `set -g base-index 1` which make the windows start by the index 1 instead of 0, so it is easier to change windows with +window_index. Another one is `set -g renumber-windows`.
@NathanTenney
@NathanTenney Месяц назад
I love that one. I think it is also part of tmux-sensible.
@JohnoScott
@JohnoScott Месяц назад
I think the pace of your videos is spot on not too fast not too slow, just right
@n0kodoko143
@n0kodoko143 Месяц назад
Love the neck tattoos that change with the theme of the video. Nice touch
@luispaulofernandes6240
@luispaulofernandes6240 Месяц назад
Amazing! I have been using Oh My Tmux config for a long time, but these configs make Tmux look way more beautiful! Now I´m waiting for you next video! Thx
@JonnyIrwin
@JonnyIrwin Месяц назад
What a great video series! I’ve basically recreated your setup in nix - with the ability for everything to re-theme itself if I change color scheme
@maxreuv
@maxreuv Месяц назад
Good stuff! Thank you, I picked up a couple of things for my own tmux config
@sterben4958
@sterben4958 Месяц назад
finally been waiting for part 2
@diedeclaessens4565
@diedeclaessens4565 Месяц назад
Hi great and helpful video's. I have been using tmux for a couple of years now, and still I got value from this vid. The only feedback I want to give is maybe add the links where you go to in the description :). Keep up the great work!
@user-yf5cc2nv8j
@user-yf5cc2nv8j Месяц назад
Great channel, great videos, thank you a lot! Keep going, bro!
@RicoTrevisan
@RicoTrevisan Месяц назад
I can’t believe a bonafide neck-beard like you don’t have a split keyboard yet. (Thanks for the awesome tutorials and fantastic positive attitude. )
@typecraft_dev
@typecraft_dev Месяц назад
lol I’ve tried many of them but they wind up hurting my wrists more believe it or not. The best ergonomic change for me was a track ball mouse
@evinoshea5215
@evinoshea5215 Месяц назад
these videos are the nice push I need to use tmux just a bit better - thanks!
@friendly__drone9352
@friendly__drone9352 6 дней назад
You are posting so many good videos at the moment but what I really want to know is where you got that hoodie! haha!
@MrPaul-vh4vh
@MrPaul-vh4vh 28 дней назад
Thanks, this is really simple and super useful.
@beardedgiant
@beardedgiant Месяц назад
Been in this software game for 25 years now and your videos are hands down S tier. Clear and concise and just incredible. Are your configs available for folks? Either way, great stuff. Cheers
@typecraft_dev
@typecraft_dev Месяц назад
thanks so much!! thats really great to hear. And yes I need to get some things together and I'll share configs. Thanks again!
@j1d7s
@j1d7s Месяц назад
My tmux config got a good spring cleaning thanks to you, I removed some stuff that I never used and put more goodness into it. Nice music btw! I am just not sure about the status bar as i am usually on a laptop and tend to auto-hide the task bar and defend every pixel of free screen real estate. I will check if I can make the status bar smaller.
@typecraft_dev
@typecraft_dev Месяц назад
Yeah that makes sense and is up to you! Thanks for being a member!!
@ahmedash95
@ahmedash95 9 дней назад
I really like your videos. Keep going ❤️
@typecraft_dev
@typecraft_dev 9 дней назад
If you say so!
@codestartup
@codestartup Месяц назад
Hey dude! Great video! Can you tell what’s is the your terminal config? Your terminal look awesome!
@SunsetNova
@SunsetNova Месяц назад
Love it ❤
@auntiecarol
@auntiecarol Месяц назад
Moustache, Tmux, HHKB… what's not to love?
@typecraft_dev
@typecraft_dev Месяц назад
My three favorite things
@ThsHunt
@ThsHunt Месяц назад
What is hhkb
@bundesrepublikdeutschland7282
@bundesrepublikdeutschland7282 Месяц назад
​@@ThsHuntHappy Hacking Keyboard
@auntiecarol
@auntiecarol Месяц назад
@@ThsHunt The keyboard. It's iconic.
@bombrman1994
@bombrman1994 Месяц назад
dayum that last part the config 3 is lit, I would love to learn each of those config properties better, I could not find a short image or video demonstration of each property. Words are not enough on certain things.
@dn.kolesnikov
@dn.kolesnikov Месяц назад
Thanks! It’s awesome!
@JoshMedeski
@JoshMedeski Месяц назад
Great video! Here are some additional tips: 1. You can setup a vim auto command to source the tmux file on save 2. I like having tpm pointed at ~/.config/tmux since that’s where my config file is 3. I use macOS keybindings for my tmux workflow! Huge game changer and only requires a single keystroke (using command) I’m looking forward to the next video, keep up the good work!
@thiagobitten
@thiagobitten Месяц назад
Hey man. How do you setup keybindings for macOS? I was not able to make it work with M (meta) to use a single keystroke.
@GeorgeMatterVI
@GeorgeMatterVI Месяц назад
Nice to see someone else using ctrl-s! Never understood why people overwrite ctrl-a, which is home/BOL in the terminal (via readline)
@yashrajdargan2203
@yashrajdargan2203 Месяц назад
Good work ... Keep going 💪
@typecraft_dev
@typecraft_dev Месяц назад
Can't stop, won't stop. ✊
@humayunakhtar2116
@humayunakhtar2116 Месяц назад
waiting for next
@RyanHandby
@RyanHandby Месяц назад
just what I needed after becoming an nvimmer thanks to you
@felipegutierrez2944
@felipegutierrez2944 Месяц назад
This is really cool! Do zellij next!
@Viken43
@Viken43 Месяц назад
On my Linux system I have to use Shift + r to get config to reload, am assuming I need nerd fonts for statusbar... Great video and have subscribed ;-)
@BrentMalice
@BrentMalice Месяц назад
edit: idk if i missed it, but i misunderstood and thought this changed the terminal too. took me a minute to realize i gotta setup that with catpuccin too for the background color etc. BUT now i got tokyonight on everything. so happy ILY OMG IT WAS A PLUGIN AND THEME. tried askin some other linux/nvim streamers how they made it look like this with the tabs and everything so fancy. i thought it was IW3 or something. nope. da real hero of kvatch, typecraft.
@akoskm
@akoskm Месяц назад
This is great, thanks! Do you know maybe how to enable clipboard sharing between different windows? Here's my use case: - I run vim in tmux window-0 - run tests in tmux window-1 test fails and I want to copy the filename from window-1 and paste it into vim running in window-0. Appreciate it! ps.: you can also use "setw -g mode-keys vi" to enable vim motions inside tmux
@rohankewalramani8878
@rohankewalramani8878 Месяц назад
Awesome to follow along with! One issue if someone could give me a hand - when I try to setup config 3 of the prebuilt catppuccin tmux setups, when I add it and source the file, the changes don't take effect? Thanks as always for the awesome content Chris! Can't wait for part 3!!
@typecraft_dev
@typecraft_dev Месяц назад
Try to make sure they’re added right below the catpuccin tpm line
@rohankewalramani8878
@rohankewalramani8878 Месяц назад
@@typecraft_dev Thanks man! I got it working this morning by removing the plugin from the folder in .tmux and then reinstalling it and starting a new session and it worked!
@rodelias9378
@rodelias9378 Месяц назад
Awesome video! Thank you, nerd!
@viktorkrepak
@viktorkrepak Месяц назад
Hi there! You mentioned that you set CTRL to CAPSLOCK, and I suppose you use the original ESC to exit insert mode or decline vim commands or no? Because I’ve rebind capslock to ESC and use the original CTRL btn, so just interested in your experience. Thanks in advance for the feedback 🙏
@typecraft_dev
@typecraft_dev Месяц назад
Yup I bind caps to ctrl and I use esc to exit insert mode
@NathanTenney
@NathanTenney Месяц назад
A lot of people bind repeated presses of jk to go back to normal mode.
@GeorgeMatterVI
@GeorgeMatterVI Месяц назад
ctrl-c works in place of esc in terminal vim 90% of the time, I personally find this easy enough w capslock-control since I'm used to ctrl-c/ctrl-d on the terminal
@viktorkrepak
@viktorkrepak Месяц назад
@@NathanTenney I've been using JK for many years, but finally I've decided to change that, JK is a bit flaky for me and after moving to CapsLock I feel much better when typing and switching between modes. But It's just a personal preference
@Rossvanzyl
@Rossvanzyl Месяц назад
what font are you using on your terminal?
@frizadiga
@frizadiga Месяц назад
damn that "LDUR" stuck on my head lol
@francocab5116
@francocab5116 Месяц назад
the tmux neck tattoo killed me xD
@11WicToR11
@11WicToR11 Месяц назад
try tick as a single key prefix ...its sooo much better to not press 2 key combo as a prefix, then when you want to press tick, you press it twice. That is very very very small price (even if you code typescript)
@chrisalexthomas
@chrisalexthomas Месяц назад
Found you on twitter, most of (edit: what I read on) twitter is garbage, but your channel is actually fucking awesome. So yay, go me!
@typecraft_dev
@typecraft_dev Месяц назад
Go you!!! Thanks!
Месяц назад
Le Durrr
@typecraft_dev
@typecraft_dev Месяц назад
Lol
@ryangarofano
@ryangarofano Месяц назад
I've never had an issue with C-b since I use my right hand to press the b key. Oh and setting caps lock to Ctrl is the best decision I've ever made :)
@elorrambasdo5233
@elorrambasdo5233 Месяц назад
Honestly can’t remember the last time I needed to use capslock, I made the switch and have never looked back
@NathanTenney
@NathanTenney Месяц назад
I've set mine to esc. Yes, I'm one of those oddities that still uses esc to go back to normal mode in vim/nvim
@ryangarofano
@ryangarofano Месяц назад
@@NathanTenney Nothing wrong with that, I just like having Ctrl so I can quickly do Ctrl l, u, a, and y in the terminal among other frequent shortcuts.
@obeng-yeboahk.d1914
@obeng-yeboahk.d1914 7 дней назад
great video, but when I open nvim in tmux my color scheme changes, any ideas as to how to change it to the default.
@alwaysahad
@alwaysahad Месяц назад
your terminal prompt is dope!! how do i get that on my terminal??
@typecraft_dev
@typecraft_dev Месяц назад
Starship!
@Trizzi2931
@Trizzi2931 Месяц назад
Your keyboard sound very good is that a custom keyboard?
@typecraft_dev
@typecraft_dev Месяц назад
Nope it’s a happy hacking keyboard
@vanvothe4817
@vanvothe4817 Месяц назад
Before I tried to make it pretty, now I try to keep it simple and useful
@NathanTenney
@NathanTenney Месяц назад
No reason it can't be both. I spend all day, every day in the terminal. Might as well make it pleasant.
@vanvothe4817
@vanvothe4817 Месяц назад
@@NathanTenney sometimes you keep it simple and minimmalist so it can easily moved and deployed
@rwz
@rwz Месяц назад
I try to make it nice without adding dependencies.
@naranyala_dev
@naranyala_dev Месяц назад
the next level DX
@gunnerjoe53
@gunnerjoe53 Месяц назад
Hello, I was using Dracula theme in tmux and when I switched my config as suggested in this video I could not get the changes to show up. I made sure to comment out or delete all Dracula lines but still no. In the plugins directory Dracula also had a tmux/ folder, once looking in side I could see that was Dracula theme not catppuccin. Delete that folder and reinstall plugins, and now it looks like what you see in the video. One more reason to have unique names for the themes and not tmux. Thanks, Joe
@ReneKrewinkel
@ReneKrewinkel Месяц назад
What terminal are you using?
@driden1987
@driden1987 Месяц назад
Thumbnail game is getting better by the video
@britneyfreek
@britneyfreek Месяц назад
anybody else get the feeling of seeing magnum explain his retro 80s terminal settings - with that keyboard but better resolution? the sudden low key hype around tmux and vim… i call it “new wave programming” (tm).
@cherry-55
@cherry-55 Месяц назад
I am not sure what it is and why tmux requires me to do this, but for me (I am also on mac and iterm2), i need to set 'set -s escape-time 0'. For some reason, without this i have noticeable delay when pressing esc to come back to normal mode while using tmux.
@user-jn2rs3rw3x
@user-jn2rs3rw3x Месяц назад
you're mapping caps lock to work as control, well, what about escape? I'm just curious!
@typecraft_dev
@typecraft_dev Месяц назад
Esc is in the normal spot for me
@davidmcmartins
@davidmcmartins 26 дней назад
Something I like to do is to unbind % and use | instead and unbind " and use - instead. Feels way more natural
@AlbertoChamorro
@AlbertoChamorro Месяц назад
Thanks nerd! 🥰
@TokyoXtreme
@TokyoXtreme Месяц назад
2:32 That's why you'd bind the enter key to right-control 😎 Then you'd just hold enter with you right hand and tap the B with your left hand 👉🅱️
@bombrman1994
@bombrman1994 Месяц назад
ldurrrrrrrrrr!
@c_kemper
@c_kemper Месяц назад
Tmux tattoo 😂 nice one.
@typecraft_dev
@typecraft_dev Месяц назад
😁
@PetrenkoAndrii
@PetrenkoAndrii Месяц назад
Thanks! Adding theme for my tmux config. Thats for sure :) Also I’m using temperature gauge in the top right corner, helps to switch attention without leaving the terminal. And I’ve refused to use GitHub desktop today, cuz I have lazygit. What a nerd I am, after your videos! 😅
@bckroom_geek
@bckroom_geek Месяц назад
@tyecraft I see what you did there with tmux icon on your neck lol
@typecraft_dev
@typecraft_dev Месяц назад
😂
@reralt
@reralt Месяц назад
How do I add some padding or space below the status line ?
@dbVitor
@dbVitor Месяц назад
I want to know as well :x
@robertkozak
@robertkozak Месяц назад
@typecraft Why dont you post a link to a github repo with the code or at least a gist?
@typecraft_dev
@typecraft_dev Месяц назад
I’ll get something together and let you know!
@terrylockett
@terrylockett Месяц назад
Thanks Nerd
@hinonashi9439
@hinonashi9439 Месяц назад
you change the key binding from Ctrl+B to Ctrl+S because your unique way to use keyboard. You can just apply that to everyone else because it annoying after all.
@APerson-jf2md
@APerson-jf2md Месяц назад
"Just like VIM - super easy!" couldn't agree more - but man, that must hurt some people :D
@typecraft_dev
@typecraft_dev Месяц назад
Haha I didn’t realize I said it like that
@nammant
@nammant Месяц назад
Hi, nerds. If you will want to install beautiful cappuccin theme and you have tmux version 3.0 - you will have error 1. What you need to do: is update your tmux version on 3.2. It can be done from apt-manager for example or you can build it by hands.
@BlackwinghacksBlogspot
@BlackwinghacksBlogspot Месяц назад
Pls, clipboard how. T__T I hate having to use leader+[ leader+] And what's copied with that doesn't get copied to the system clipboard
@MichaelLazarski
@MichaelLazarski Месяц назад
Is this really Iterm2 never seen it look so good haha
@typecraft_dev
@typecraft_dev Месяц назад
Haha yup!
@ThsHunt
@ThsHunt Месяц назад
What is terminal emulator u use
@typecraft_dev
@typecraft_dev Месяц назад
iterm2 .... for now ...
@AI-Hallucination
@AI-Hallucination Месяц назад
I just sent the caps lock the hyper key
@giftcp82
@giftcp82 22 дня назад
when i load tmux its distorts my cutpuccin theme
@BlackwinghacksBlogspot
@BlackwinghacksBlogspot Месяц назад
That keyboard gave me a jumpscare
@anasouardini
@anasouardini Месяц назад
Amma make make my Tmux nice for my remote server!
@macmanuelodumeru3708
@macmanuelodumeru3708 Месяц назад
Does tmux work in windows? Who knows? I'm talking without wsl2
@erichlf
@erichlf Месяц назад
CAPS to ESC for VI.
@typecraft_dev
@typecraft_dev Месяц назад
never tried that. I use a happy hacking keyboard and the ESC key is on the same line as the numbers. so its pretty ergonomic as it is
@erichlf
@erichlf Месяц назад
@@typecraft_dev which means you lose tilda and tick. I couldn't use your keyboard because of that and no arrows, which I constantly use in terminal.
@typecraft_dev
@typecraft_dev Месяц назад
tilda and tick are on the other side of the num row and arrows are accessible. Its all personal preference, really but I'm used to it and love it!@@erichlf
@erichlf
@erichlf Месяц назад
@@typecraft_dev I am rewatching this and I gotta say CTRL+B is find since that uses two hands. But everyone types differently.
@erichlf
@erichlf Месяц назад
And the best part is I said this and then did CTRL+B with my left hand.
@seymansey
@seymansey Месяц назад
topre squad where u at
@typecraft_dev
@typecraft_dev Месяц назад
Yoooo
@-aexc-
@-aexc- Месяц назад
man i wish i didnt have to use tmux on so many remote machines so i can use a custom config
@bombrman1994
@bombrman1994 Месяц назад
thanks nerd!
@spasham74
@spasham74 Месяц назад
Have you looked into warp terminal for macOS or Linux. It provides Tmux like capabilities out of the box
@typecraft_dev
@typecraft_dev Месяц назад
Yup! It’s great too
@s-o-v-u-l
@s-o-v-u-l 18 дней назад
1:12 what happened to your neck? :D
@BackUp-cz6zn
@BackUp-cz6zn Месяц назад
after installing this my escape key started behaving weirdly inside nvim. pressing it wouldn't escape immediately instead it would allow me to move the line or type things. the fix is just to include this line in the conf set -s escape-time 0 or use the sensible plugin great video btw, it gave me the courage i needed to start using tmux.
@michaelelder5336
@michaelelder5336 28 дней назад
Tried to use this on Putty, and it just doesn't look right. Am I doing something wrong?
@kubectlgetpo
@kubectlgetpo Месяц назад
Typecraft?
@chenhui_wang
@chenhui_wang Месяц назад
but u cannot use this in warp. Sad
@RazoBeckett.
@RazoBeckett. Месяц назад
hello nerds """
@SamFigueroa
@SamFigueroa 13 дней назад
Me: Looks at current tmux config now Thanks it now looks ugly by comparison. TPM here I come
@BlackwinghacksBlogspot
@BlackwinghacksBlogspot Месяц назад
ldur
@DeathSugar
@DeathSugar Месяц назад
> how to make tmux better uninstall tmux cargo install zellij
@severgun
@severgun Месяц назад
rebinding controls will fuck you up in new/remote environment. Better to learn defaults.
@lukeemhigh
@lukeemhigh Месяц назад
I mean, even installing plugins will have the same effect, but that's no reason to not customize your setup. Just copy paste or SFTP put your tmux.conf/bindings in the remote machine and you're done
@user-qd9pg8xt2k
@user-qd9pg8xt2k Месяц назад
​@@lukeemhighat work, I had a bash alias that copied some configs using scp: ssh config, tmux config, vim config, etc Having the host in status is very useful when you have ssh sessions to many servers.
@bittergreen2445
@bittergreen2445 Месяц назад
✨LDUR✨
@Daijyobanai
@Daijyobanai 22 дня назад
highly sexual only thing missing is a link to your config file.
@allsunday1485
@allsunday1485 Месяц назад
I know beauty is subjective but that's how I imagine a 15yo girl's terminal would look like. Way too much color my dude!
@ChrisLopez-yj6ws
@ChrisLopez-yj6ws Месяц назад
Sorry such a noob but can anyone help. In my .tmux.conf file anytime i type out -g for global the text is red and everytime I try to set a new keybind it does not work also in the part where it says bind r source-file ~/.tmux.conf is also red so i think it has something to do with that
@LuanLouzada
@LuanLouzada Месяц назад
I'll give you an agenda for the next video, if it makes sense of course: Save and retrieve sessions in tmux For example, I use set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum'
@typecraft_dev
@typecraft_dev Месяц назад
I’ll be talking about it!
@NathanTenney
@NathanTenney Месяц назад
I've added commands in my zsh config to launch named tmux sessions for each of my projects. This sets up the base directory for my tmux sessions and allows me to bounce between projects and keep a semi-consistent set of windows and panes per project. The commands also detect if the named session is still active, so repeating the command attaches to the existing session. Once in tmux, I can switch projects by either detaching and then reattaching to the correct project, or switching tmux sessions with w.
@Laggedskapari
@Laggedskapari Месяц назад
look babe! another banger from nerd!
@vonelfensenf8151
@vonelfensenf8151 Месяц назад
Have you ever tried zellij instead of tmux? I thought that this is what the cool kids use these days.
@typecraft_dev
@typecraft_dev Месяц назад
I’ll have to look into that
@kmfco
@kmfco Месяц назад
zellij™
@MattRobinsonDev
@MattRobinsonDev Месяц назад
thanks nerd
Далее
My Forever Dev Workflow
16:02
Просмотров 49 тыс.
Tmux will SKYROCKET your productivity - here’s how
10:02
Распаковал Xiaomi SU7
00:59
Просмотров 408 тыс.
Fried egg salad sandwich 🥪 #shorts
00:20
Просмотров 2,5 млн
📱 SAMSUNG, ЧТО С ЛИЦОМ? 🤡
00:46
Просмотров 24 тыс.
How do THESE guys use Linux? - Linux for Noobs EP 0
10:06
Tmux has forever changed the way I write code.
13:30
Просмотров 874 тыс.
ThePrimeagen Hacks My Productivity
3:30
Просмотров 29 тыс.
FZF Will CHANGE How You Work
9:30
Просмотров 24 тыс.
Why Neovim nerds are so obsessed with the terminal
6:44
Smart tmux sessions with zoxide and fzf
14:55
Просмотров 48 тыс.
The Holy Grail of Neovim Note Taking
14:38
Просмотров 277 тыс.
A UX Expert Fixes My Tmux
6:58
Просмотров 61 тыс.
LTWay ts001
1:00
Просмотров 37 тыс.