Making Tmux Better AND Beautiful -- here’s how

Поделиться
HTML-код
  • Опубликовано: 9 июн 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
  • НаукаНаука

Комментарии • 158

  • @mahirabbas3700
    @mahirabbas3700 2 месяца назад +63

    thanks nerd

  • @DiegoCardoso86
    @DiegoCardoso86 2 месяца назад +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 2 месяца назад +5

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

  • @JohnoScott
    @JohnoScott 2 месяца назад +12

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

  • @beardedgiant
    @beardedgiant 2 месяца назад +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  2 месяца назад +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 2 месяца назад +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 2 месяца назад +6

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

  • @JonnyIrwin
    @JonnyIrwin 2 месяца назад

    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 2 месяца назад +1

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

  • @diedeclaessens4565
    @diedeclaessens4565 2 месяца назад

    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!

  • @sterben4958
    @sterben4958 2 месяца назад +4

    finally been waiting for part 2

  • @RicoTrevisan
    @RicoTrevisan 2 месяца назад +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  2 месяца назад +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

  • @evinoshea5215
    @evinoshea5215 2 месяца назад

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

  • @LopesBoa-ou2gh
    @LopesBoa-ou2gh 24 дня назад +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!

  • @MrPaul-vh4vh
    @MrPaul-vh4vh 2 месяца назад

    Thanks, this is really simple and super useful.

  • @user-yf5cc2nv8j
    @user-yf5cc2nv8j 2 месяца назад

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

  • @j1d7s
    @j1d7s 2 месяца назад +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  2 месяца назад

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

  • @ecwb
    @ecwb 28 дней назад

    Brilliant tutorial thank you!

  • @JoshMedeski
    @JoshMedeski 2 месяца назад +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 2 месяца назад

      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.

  • @ahmedash95
    @ahmedash95 Месяц назад +1

    I really like your videos. Keep going ❤️

  • @bombrman1994
    @bombrman1994 2 месяца назад

    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 2 месяца назад +1

    Thanks! It’s awesome!

  • @GeorgeMatterVI
    @GeorgeMatterVI 2 месяца назад

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

  • @codastartup
    @codastartup 2 месяца назад

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

  • @auntiecarol
    @auntiecarol 2 месяца назад +12

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

  • @RyanHandby
    @RyanHandby 2 месяца назад +1

    just what I needed after becoming an nvimmer thanks to you

  • @friendly__drone9352
    @friendly__drone9352 Месяц назад +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!

  • @BrentMalice
    @BrentMalice 2 месяца назад

    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.

  • @felipegutierrez2944
    @felipegutierrez2944 2 месяца назад

    This is really cool! Do zellij next!

  • @SunsetNova
    @SunsetNova 2 месяца назад +1

    Love it ❤

  • @akoskm
    @akoskm 2 месяца назад

    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

  • @rodelias9378
    @rodelias9378 2 месяца назад +1

    Awesome video! Thank you, nerd!

  • @sp10sn
    @sp10sn 10 дней назад +1

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

  • @humayunakhtar2116
    @humayunakhtar2116 2 месяца назад +1

    waiting for next

  • @yashrajdargan2203
    @yashrajdargan2203 2 месяца назад

    Good work ... Keep going 💪

  • @11WicToR11
    @11WicToR11 2 месяца назад +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)

  • @Viken43
    @Viken43 2 месяца назад +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 2 месяца назад +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  2 месяца назад

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

    • @rohankewalramani8878
      @rohankewalramani8878 2 месяца назад

      @@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 2 месяца назад

    Thumbnail game is getting better by the video

  • @viktorkrepak
    @viktorkrepak 2 месяца назад +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  2 месяца назад

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

    • @NathanTenney
      @NathanTenney 2 месяца назад

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

    • @GeorgeMatterVI
      @GeorgeMatterVI 2 месяца назад

      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 2 месяца назад

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

  •  2 месяца назад +1

    What terminal are you using?

  • @Trizzi2931
    @Trizzi2931 2 месяца назад +1

    Your keyboard sound very good is that a custom keyboard?

    • @typecraft_dev
      @typecraft_dev  2 месяца назад

      Nope it’s a happy hacking keyboard

  • @francocab5116
    @francocab5116 2 месяца назад

    the tmux neck tattoo killed me xD

  • @gunnerjoe53
    @gunnerjoe53 2 месяца назад

    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

  • @vanvothe4817
    @vanvothe4817 2 месяца назад +2

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

    • @NathanTenney
      @NathanTenney 2 месяца назад

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

    • @vanvothe4817
      @vanvothe4817 2 месяца назад

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

    • @rwz
      @rwz 2 месяца назад

      I try to make it nice without adding dependencies.

  • @Rossvanzyl
    @Rossvanzyl 2 месяца назад

    what font are you using on your terminal?

  • @alwaysahad
    @alwaysahad 2 месяца назад +1

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

  • @user-jn2rs3rw3x
    @user-jn2rs3rw3x 2 месяца назад +1

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

    • @typecraft_dev
      @typecraft_dev  2 месяца назад

      Esc is in the normal spot for me

  • @obeng-yeboahk.d1914
    @obeng-yeboahk.d1914 Месяц назад

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

  • @frizadiga
    @frizadiga 2 месяца назад

    damn that "LDUR" stuck on my head lol

  • @cherry-55
    @cherry-55 2 месяца назад

    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.

  • @ryangarofano
    @ryangarofano 2 месяца назад +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 2 месяца назад

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

    • @NathanTenney
      @NathanTenney 2 месяца назад

      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 2 месяца назад

      @@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 2 месяца назад +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).

  • @davidmcmartins
    @davidmcmartins Месяц назад

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

  • @chrisalexthomas
    @chrisalexthomas 2 месяца назад +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!

  • @robertkozak
    @robertkozak 2 месяца назад +2

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

    • @typecraft_dev
      @typecraft_dev  2 месяца назад +1

      I’ll get something together and let you know!

  • @naranyala_dev
    @naranyala_dev 2 месяца назад +1

    the next level DX

  • @AlbertoChamorro
    @AlbertoChamorro 2 месяца назад +1

    Thanks nerd! 🥰

  • @reralt
    @reralt 2 месяца назад

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

    • @dbVitor
      @dbVitor 2 месяца назад

      I want to know as well :x

  • @TokyoXtreme
    @TokyoXtreme 2 месяца назад

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

  • @c_kemper
    @c_kemper 2 месяца назад +1

    Tmux tattoo 😂 nice one.

  • @PetrenkoAndrii
    @PetrenkoAndrii 2 месяца назад +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! 😅

  • @terrylockett
    @terrylockett 2 месяца назад

    Thanks Nerd

  • @bckroom_geek
    @bckroom_geek 2 месяца назад +1

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

  • @ThsHunt
    @ThsHunt 2 месяца назад +1

    What is terminal emulator u use

  • @BlackwinghacksBlogspot
    @BlackwinghacksBlogspot 2 месяца назад +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

  • @bombrman1994
    @bombrman1994 2 месяца назад +3

    ldurrrrrrrrrr!

  • @Bruno-jj3vt
    @Bruno-jj3vt 25 дней назад

    What is your prompt with the poo icon ?

    • @Bruno-jj3vt
      @Bruno-jj3vt 24 дня назад

      Ok I found it starship prompt

  • @APerson-jf2md
    @APerson-jf2md 2 месяца назад

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

    • @typecraft_dev
      @typecraft_dev  2 месяца назад

      Haha I didn’t realize I said it like that

  •  2 месяца назад +4

    Le Durrr

  • @macmanuelodumeru3708
    @macmanuelodumeru3708 2 месяца назад

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

  • @nammant
    @nammant 2 месяца назад

    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.

  • @michaelelder5336
    @michaelelder5336 2 месяца назад

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

  • @giftcp82
    @giftcp82 Месяц назад

    when i load tmux its distorts my cutpuccin theme

  • @hinonashi9439
    @hinonashi9439 2 месяца назад

    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.

  • @marcgoncalis9802
    @marcgoncalis9802 6 дней назад

    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.

  • @MichaelLazarski
    @MichaelLazarski 2 месяца назад +1

    Is this really Iterm2 never seen it look so good haha

  • @BlackwinghacksBlogspot
    @BlackwinghacksBlogspot 2 месяца назад +1

    That keyboard gave me a jumpscare

  • @AI-Hallucination
    @AI-Hallucination 2 месяца назад +1

    I just sent the caps lock the hyper key

  • @bombrman1994
    @bombrman1994 2 месяца назад +1

    thanks nerd!

  • @anasouardini
    @anasouardini 2 месяца назад +1

    Amma make make my Tmux nice for my remote server!

  • @-aexc-
    @-aexc- 2 месяца назад

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

  • @spasham74
    @spasham74 2 месяца назад +1

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

  • @seymansey
    @seymansey 2 месяца назад +1

    topre squad where u at

  • @sovulo
    @sovulo Месяц назад

    1:12 what happened to your neck? :D

  • @erichlf
    @erichlf 2 месяца назад +1

    CAPS to ESC for VI.

    • @typecraft_dev
      @typecraft_dev  2 месяца назад

      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 2 месяца назад

      @@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  2 месяца назад

      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 2 месяца назад

      @@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 2 месяца назад

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

  • @kubectlgetpo
    @kubectlgetpo 2 месяца назад

    Typecraft?

  • @chenhui_wang
    @chenhui_wang 2 месяца назад

    but u cannot use this in warp. Sad

  • @RazoBeckett.
    @RazoBeckett. 2 месяца назад +1

    hello nerds """

  • @SamFigueroa
    @SamFigueroa Месяц назад

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

  • @BlackwinghacksBlogspot
    @BlackwinghacksBlogspot 2 месяца назад +1

    ldur

  • @bittergreen2445
    @bittergreen2445 2 месяца назад

    ✨LDUR✨

  • @severgun
    @severgun 2 месяца назад +1

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

    • @lukeemhigh
      @lukeemhigh 2 месяца назад

      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 2 месяца назад +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.

  • @DeathSugar
    @DeathSugar 2 месяца назад

    > how to make tmux better
    uninstall tmux
    cargo install zellij

  • @BackUp-cz6zn
    @BackUp-cz6zn 2 месяца назад

    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.

  • @Daijyobanai
    @Daijyobanai Месяц назад

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

  • @allsunday1485
    @allsunday1485 2 месяца назад

    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 2 месяца назад

    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

  • @Laggedskapari
    @Laggedskapari 2 месяца назад

    look babe! another banger from nerd!

  • @LuanLouzada
    @LuanLouzada 2 месяца назад +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  2 месяца назад +1

      I’ll be talking about it!

    • @NathanTenney
      @NathanTenney 2 месяца назад

      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.

  • @vonelfensenf8151
    @vonelfensenf8151 2 месяца назад +1

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