Making Tmux Better AND Beautiful -- here’s how

Sdílet
Vložit
  • čas přidán 4. 06. 2024
  • 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
  • Věda a technologie

Komentáře • 158

  • @mahirabbas3700
    @mahirabbas3700 Před 2 měsíci +61

    thanks nerd

  • @DiegoCardoso86
    @DiegoCardoso86 Před 2 měsíci +56

    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 Před 2 měsíci +5

      I love that one. I think it is also part of tmux-sensible.

  • @JohnoScott
    @JohnoScott Před 2 měsíci +12

    I think the pace of your videos is spot on not too fast not too slow, just right

  • @beardedgiant
    @beardedgiant Před 2 měsíci +10

    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  Před 2 měsíci +3

      thanks so much!! thats really great to hear. And yes I need to get some things together and I'll share configs. Thanks again!

  • @luispaulofernandes6240
    @luispaulofernandes6240 Před 2 měsíci +1

    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

  • @n0kodoko143
    @n0kodoko143 Před 2 měsíci +6

    Love the neck tattoos that change with the theme of the video. Nice touch

  • @JonnyIrwin
    @JonnyIrwin Před 2 měsíci

    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 Před 2 měsíci +1

    Good stuff! Thank you, I picked up a couple of things for my own tmux config

  • @sterben4958
    @sterben4958 Před 2 měsíci +4

    finally been waiting for part 2

  • @diedeclaessens4565
    @diedeclaessens4565 Před 2 měsíci

    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!

  • @RicoTrevisan
    @RicoTrevisan Před 2 měsíci +5

    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  Před 2 měsíci +1

      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

  • @LopesBoa-ou2gh
    @LopesBoa-ou2gh Před 20 dny +1

    You got me! I used to use Tokyo Night, but you're right-Catppuccin is really awesome. You've just earned a new subscriber!

  • @evinoshea5215
    @evinoshea5215 Před 2 měsíci

    these videos are the nice push I need to use tmux just a bit better - thanks!

  • @user-yf5cc2nv8j
    @user-yf5cc2nv8j Před 2 měsíci

    Great channel, great videos, thank you a lot! Keep going, bro!

  • @MrPaul-vh4vh
    @MrPaul-vh4vh Před měsícem

    Thanks, this is really simple and super useful.

  • @j1d7s
    @j1d7s Před 2 měsíci +1

    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  Před 2 měsíci

      Yeah that makes sense and is up to you! Thanks for being a member!!

  • @ecwb
    @ecwb Před 24 dny

    Brilliant tutorial thank you!

  • @ahmedash95
    @ahmedash95 Před měsícem +1

    I really like your videos. Keep going ❤️

  • @codastartup
    @codastartup Před 2 měsíci

    Hey dude! Great video! Can you tell what’s is the your terminal config? Your terminal look awesome!

  • @JoshMedeski
    @JoshMedeski Před 2 měsíci +2

    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 Před 2 měsíci

      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.

  • @bombrman1994
    @bombrman1994 Před 2 měsíci

    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 Před 2 měsíci +1

    Thanks! It’s awesome!

  • @GeorgeMatterVI
    @GeorgeMatterVI Před 2 měsíci

    Nice to see someone else using ctrl-s! Never understood why people overwrite ctrl-a, which is home/BOL in the terminal (via readline)

  • @BrentMalice
    @BrentMalice Před 2 měsíci

    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.

  • @auntiecarol
    @auntiecarol Před 2 měsíci +11

    Moustache, Tmux, HHKB… what's not to love?

  • @SunsetNova
    @SunsetNova Před 2 měsíci +1

    Love it ❤

  • @friendly__drone9352
    @friendly__drone9352 Před měsícem +1

    You are posting so many good videos at the moment but what I really want to know is where you got that hoodie! haha!

  • @humayunakhtar2116
    @humayunakhtar2116 Před 2 měsíci +1

    waiting for next

  • @RyanHandby
    @RyanHandby Před 2 měsíci +1

    just what I needed after becoming an nvimmer thanks to you

  • @11WicToR11
    @11WicToR11 Před 2 měsíci +2

    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)

  • @yashrajdargan2203
    @yashrajdargan2203 Před 2 měsíci

    Good work ... Keep going 💪

  • @gunnerjoe53
    @gunnerjoe53 Před 2 měsíci

    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

  • @obeng-yeboahk.d1914
    @obeng-yeboahk.d1914 Před měsícem

    great video, but when I open nvim in tmux my color scheme changes, any ideas as to how to change it to the default.

  • @Rossvanzyl
    @Rossvanzyl Před 2 měsíci

    what font are you using on your terminal?

  • @rodelias9378
    @rodelias9378 Před 2 měsíci +1

    Awesome video! Thank you, nerd!

  • @akoskm
    @akoskm Před 2 měsíci

    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

  • @felipegutierrez2944
    @felipegutierrez2944 Před 2 měsíci

    This is really cool! Do zellij next!

  •  Před 2 měsíci +1

    What terminal are you using?

  • @cherry-55
    @cherry-55 Před 2 měsíci

    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.

  • @vanvothe4817
    @vanvothe4817 Před 2 měsíci +2

    Before I tried to make it pretty, now I try to keep it simple and useful

    • @NathanTenney
      @NathanTenney Před 2 měsíci

      No reason it can't be both. I spend all day, every day in the terminal. Might as well make it pleasant.

    • @vanvothe4817
      @vanvothe4817 Před 2 měsíci

      @@NathanTenney sometimes you keep it simple and minimmalist so it can easily moved and deployed

    • @rwz
      @rwz Před 2 měsíci

      I try to make it nice without adding dependencies.

  • @viktorkrepak
    @viktorkrepak Před 2 měsíci +1

    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  Před 2 měsíci

      Yup I bind caps to ctrl and I use esc to exit insert mode

    • @NathanTenney
      @NathanTenney Před 2 měsíci

      A lot of people bind repeated presses of jk to go back to normal mode.

    • @GeorgeMatterVI
      @GeorgeMatterVI Před 2 měsíci

      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 Před 2 měsíci

      @@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

  • @sp10sn
    @sp10sn Před 6 dny +1

    At 1:12, is that some sort of insider joke or a vampire glyph that just appears on the neck for a while?

  • @Trizzi2931
    @Trizzi2931 Před 2 měsíci +1

    Your keyboard sound very good is that a custom keyboard?

  • @Viken43
    @Viken43 Před 2 měsíci +1

    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 ;-)

  • @rohankewalramani8878
    @rohankewalramani8878 Před 2 měsíci +1

    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  Před 2 měsíci

      Try to make sure they’re added right below the catpuccin tpm line

    • @rohankewalramani8878
      @rohankewalramani8878 Před 2 měsíci

      @@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!

  • @driden1987
    @driden1987 Před 2 měsíci

    Thumbnail game is getting better by the video

  • @alwaysahad
    @alwaysahad Před 2 měsíci +1

    your terminal prompt is dope!! how do i get that on my terminal??

  • @francocab5116
    @francocab5116 Před 2 měsíci

    the tmux neck tattoo killed me xD

  • @ryangarofano
    @ryangarofano Před 2 měsíci +1

    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 Před 2 měsíci

      Honestly can’t remember the last time I needed to use capslock, I made the switch and have never looked back

    • @NathanTenney
      @NathanTenney Před 2 měsíci

      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 Před 2 měsíci

      @@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.

  • @britneyfreek
    @britneyfreek Před 2 měsíci +1

    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).

  • @naranyala_dev
    @naranyala_dev Před 2 měsíci +1

    the next level DX

  • @AlbertoChamorro
    @AlbertoChamorro Před 2 měsíci +1

    Thanks nerd! 🥰

  • @reralt
    @reralt Před 2 měsíci

    How do I add some padding or space below the status line ?

    • @dbVitor
      @dbVitor Před 2 měsíci

      I want to know as well :x

  • @user-jn2rs3rw3x
    @user-jn2rs3rw3x Před 2 měsíci +1

    you're mapping caps lock to work as control, well, what about escape? I'm just curious!

  • @frizadiga
    @frizadiga Před 2 měsíci

    damn that "LDUR" stuck on my head lol

  • @terrylockett
    @terrylockett Před 2 měsíci

    Thanks Nerd

  • @davidmcmartins
    @davidmcmartins Před měsícem

    Something I like to do is to unbind % and use | instead and unbind " and use - instead. Feels way more natural

  • @robertkozak
    @robertkozak Před 2 měsíci +2

    @typecraft Why dont you post a link to a github repo with the code or at least a gist?

    • @typecraft_dev
      @typecraft_dev  Před 2 měsíci +1

      I’ll get something together and let you know!

  • @chrisalexthomas
    @chrisalexthomas Před 2 měsíci +1

    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!

  • @c_kemper
    @c_kemper Před 2 měsíci +1

    Tmux tattoo 😂 nice one.

  •  Před 2 měsíci +4

    Le Durrr

  • @bckroom_geek
    @bckroom_geek Před 2 měsíci +1

    @tyecraft I see what you did there with tmux icon on your neck lol

  • @macmanuelodumeru3708
    @macmanuelodumeru3708 Před 2 měsíci

    Does tmux work in windows? Who knows? I'm talking without wsl2

  • @ThsHunt
    @ThsHunt Před 2 měsíci +1

    What is terminal emulator u use

  • @PetrenkoAndrii
    @PetrenkoAndrii Před 2 měsíci +1

    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! 😅

  • @BlackwinghacksBlogspot
    @BlackwinghacksBlogspot Před 2 měsíci +1

    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

  • @Bruno-jj3vt
    @Bruno-jj3vt Před 20 dny

    What is your prompt with the poo icon ?

  • @marcgoncalis9802
    @marcgoncalis9802 Před 2 dny

    You are a father figure.
    By the way, I think you forgot to tell us to run the source-file order through prefix + b + : because if we don't do it manually we never get to the conf file in the first place, so the r bind is not usable.

  • @TokyoXtreme
    @TokyoXtreme Před měsícem

    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 👉🅱️

  • @APerson-jf2md
    @APerson-jf2md Před 2 měsíci

    "Just like VIM - super easy!"
    couldn't agree more - but man, that must hurt some people :D

    • @typecraft_dev
      @typecraft_dev  Před 2 měsíci

      Haha I didn’t realize I said it like that

  • @hinonashi9439
    @hinonashi9439 Před 2 měsíci

    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.

  • @michaelelder5336
    @michaelelder5336 Před měsícem

    Tried to use this on Putty, and it just doesn't look right. Am I doing something wrong?

  • @MichaelLazarski
    @MichaelLazarski Před 2 měsíci +1

    Is this really Iterm2 never seen it look so good haha

  • @giftcp82
    @giftcp82 Před měsícem

    when i load tmux its distorts my cutpuccin theme

  • @BlackwinghacksBlogspot
    @BlackwinghacksBlogspot Před 2 měsíci +1

    That keyboard gave me a jumpscare

  • @bombrman1994
    @bombrman1994 Před 2 měsíci +1

    thanks nerd!

  • @bombrman1994
    @bombrman1994 Před 2 měsíci +3

    ldurrrrrrrrrr!

  • @AI-Hallucination
    @AI-Hallucination Před 2 měsíci +1

    I just sent the caps lock the hyper key

  • @nammant
    @nammant Před 2 měsíci

    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.

  • @anasouardini
    @anasouardini Před 2 měsíci +1

    Amma make make my Tmux nice for my remote server!

  • @seymansey
    @seymansey Před 2 měsíci +1

    topre squad where u at

  • @-aexc-
    @-aexc- Před 2 měsíci

    man i wish i didnt have to use tmux on so many remote machines so i can use a custom config

  • @erichlf
    @erichlf Před 2 měsíci +1

    CAPS to ESC for VI.

    • @typecraft_dev
      @typecraft_dev  Před 2 měsíci

      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 Před 2 měsíci

      @@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  Před 2 měsíci

      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 Před 2 měsíci

      @@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 Před 2 měsíci

      And the best part is I said this and then did CTRL+B with my left hand.

  • @spasham74
    @spasham74 Před 2 měsíci +1

    Have you looked into warp terminal for macOS or Linux. It provides Tmux like capabilities out of the box

  • @kubectlgetpo
    @kubectlgetpo Před 2 měsíci

    Typecraft?

  • @sovulo
    @sovulo Před měsícem

    1:12 what happened to your neck? :D

  • @chenhui_wang
    @chenhui_wang Před 2 měsíci

    but u cannot use this in warp. Sad

  • @RazoBeckett.
    @RazoBeckett. Před 2 měsíci +1

    hello nerds """

  • @SamFigueroa
    @SamFigueroa Před měsícem

    Me: Looks at current tmux config now
    Thanks it now looks ugly by comparison. TPM here I come

  • @severgun
    @severgun Před 2 měsíci +1

    rebinding controls will fuck you up in new/remote environment. Better to learn defaults.

    • @lukeemhigh
      @lukeemhigh Před 2 měsíci

      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 Před 2 měsíci +1

      ​@@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 Před 2 měsíci

    ✨LDUR✨

  • @DeathSugar
    @DeathSugar Před 2 měsíci

    > how to make tmux better
    uninstall tmux
    cargo install zellij

  • @BlackwinghacksBlogspot
    @BlackwinghacksBlogspot Před 2 měsíci +1

    ldur

  • @Daijyobanai
    @Daijyobanai Před měsícem

    highly sexual only thing missing is a link to your config file.

  • @allsunday1485
    @allsunday1485 Před 2 měsíci

    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!

  • @BackUp-cz6zn
    @BackUp-cz6zn Před 2 měsíci

    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.

  • @ChrisLopez-yj6ws
    @ChrisLopez-yj6ws Před 2 měsíci

    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 Před 2 měsíci +1

    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  Před 2 měsíci +1

      I’ll be talking about it!

    • @NathanTenney
      @NathanTenney Před 2 měsíci

      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 Před 2 měsíci

    look babe! another banger from nerd!

  • @vonelfensenf8151
    @vonelfensenf8151 Před 2 měsíci +1

    Have you ever tried zellij instead of tmux?
    I thought that this is what the cool kids use these days.