Tmux will SKYROCKET your productivity - here’s how

Sdílet
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

Komentáře • 200

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

    Thanks nerd

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

    I'm a simple man, i see a new typecraft video, i click on it

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

      Hell yeah. Brother

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

      @@typecraft_dev I love your series on neovim. I learnt so much. Thanks a lot ❤️

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

      Thanks nerd

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

      Don’t forget to like it as well!

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

      lol you mispelled *single

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

    Tmux has changed my entire code experiences and I have only been using it for a 2 or 3 weeks! Great video!

  • @danny.cuevas
    @danny.cuevas Před 2 měsíci +6

    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

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

    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.

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

    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 😂

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

      Haha I love that you’re the coolest kid on the block now!

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

    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

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

    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

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

    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.

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

    Being a tmux nerd and listening to another tmux nerd is life 🙌🏾🙌🏾after mastering tmix ( neovim & obsidian) should be on the list to master

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

    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

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

    Great vid! Looking forward to more! Are you also covering something like sessionizer?

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

    Best explanation I found so far! Thank you!

  • @Hacking-Life
    @Hacking-Life Před 2 měsíci +1

    This is why Iove this channel!
    Thanks!

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

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

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

    Awesome work! can't wait to get into this

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

    Your educational content is so, so good. Thank you for covering this. Learned a lot

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

    tmux-resurrect and tmux-continuum is my favorite tmux plugin. Good video Btw.

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

    again new amazing series from you. Thanks 👍👍

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

    Great video! Thanks for sharing

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

    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!

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

    Amazing .. waiting the next episode

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

    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.

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

    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 😎

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

    this guy is awesome, I like the way he explains everything. Please continue, I have always wanted to learn tmux

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

    you have quickly become my go to source for anything vim related and more

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

    Good stuff! I use tmux, but just basic panes/windows. Just started looking at sessions today.

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

    TMUX & Neovim are the core of my workflow, thanks nerd for the tutorials

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

    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.

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

    Such a great video! Thank you so much for the wonderful content. Sending love from Pakistan.

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

    Stoked about this had no idea tmux had the sessions saved I assumed it just was an easy way to pen multiple panes

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

      Tmux is so great you’re going to love it

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

    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.

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

    tmux is a better version of screen ? great video as always

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

    I love this mans videos

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

    Great video, keep up the good work 👍

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

    Love your content man. You can do pretty much all this with Gnome Workspaces & Kitty.....unless I am missing something.

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

    Next video plis!!! And that terminal theme is catpuccino? How did you got that running?? Thanks Typecraft 🙌

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

    This channel is the best things ever ❤

  • @TrashUx12
    @TrashUx12 Před 6 dny

    You are the best
    Best of best
    I never see youtuber like you
    I love you

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

    Awesome video, thank you :)

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

    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

  • @mandrig
    @mandrig Před 25 dny

    Its the lo-fi "In the End" piano cut at @7:35 or so for me

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

    can't wait for ep. 2.....Thanks nerd!

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

    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

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

    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.

  • @muthukamalan.m6316
    @muthukamalan.m6316 Před 24 dny +1

    I'm to new here. looking forward upcoming videos on tmux

  • @fuzzy-02
    @fuzzy-02 Před 2 měsíci +2

    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!

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

      It just gets hot in my office where I record! Haha

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

      @@typecraft_dev Oof that sucks, hope it gets better man or you figure it out

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

    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 😅

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

    great videos on neovim and tmux. thanks. persistence, btw

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

    Very good explanation!

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

    I love u typecraft

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

    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.

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

      Glad you like the video!! I would still use tmux in Linux but that’s just me

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

      @@typecraft_dev will give it a go sometime.

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

    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?

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

      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.

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

    nice little video, a couple of other out the box key bindings worth knowing
    ? list all keybindings
    , rename-window
    / describe key binding

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

    Anyone else remember GNU screen?

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

      Remember? It still exists!

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

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

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

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

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

      I didn't see those things, I'm Gen Z 😂😂

    • @user-bf6oh1ul8q
      @user-bf6oh1ul8q Před měsícem

      Yes (I'm gen Z my father taught me Linux with screen)

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

    Thanks to you Nerd!

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

    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

  • @rujor
    @rujor Před 18 dny

    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.

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

    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?

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

    I have to confess. I love Zellij, but now seen this video, I confess that I had desire to use tmux again.

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

    Thanks!

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

    I liked the old thumbnail better, but had the video in my watch later.

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

    Absolute W, keep it up nerd

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

    Great vid. I'm guessing you just took off the heavy weight Vision Pro? It almost looks like your cheek took a shot lol.

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

      Dammit it gets hot in my office and my face gets red!!

  • @FaisalMlops
    @FaisalMlops Před dnem +1

    Subbed for using 💩in the personalized prompt

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

    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.

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

    If all series will be like neovim one's... That's just awesome

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

    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

  • @Xe054
    @Xe054 Před 26 dny

    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?

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

    Thoughts on Zellij?

  • @sagar-tt4ub
    @sagar-tt4ub Před 2 měsíci +1

    much awaited
    thanks, nerd

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

    As a beginner just starting out to use the terminal which one to hop on and why?
    NeoVim v/s Tmux?

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

      neovim to start. then tmux when you're comfortable with neovim (tmux is a different thing you use WITH neovim)

  • @silak33
    @silak33 Před 19 dny

    Wow. That looks like a version of windows terminal that actually works properly

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

    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?

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

      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

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

    Better than netflix, would recommend

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

    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

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

      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

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

    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.

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

    Can you share your terminal configuration mainly the background color?

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

      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)

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

    Wanted to checkout 2nd part.... realized that this one just came out.

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

    Noice!

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

    zellij

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

      I’ll have to check that out!

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

      @@typecraft_dev indeed

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

      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.

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

    Genuine question. What’s the difference between this and eMacs?

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

    Love to see rails! Man of culture I see 😏

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

    Loveeeeew❤❤❤❤❤

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

    Seems like a better screen command.

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

    4:11 so funny haha :D

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

    Iterm2 don't do that already?

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

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

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

    Alright I’m convinced…

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

    Nice to watch your videos…

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

    Here I am using plasma komsole which has built-in split/tab functionality 😂

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

    Ignoring tty, why would I want tmux, gnu screen, etc... if I have my wm windows?

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

      It's all about not using a mouse.

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

    This seems kind of like a Tiling Window Manager

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

    I used screen but it messes up with colors. is tmux better?

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

    can tmux be used with warp?

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

      I’ve used tmux in warp. I’m not sure if there are any issues with it

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

    Is that stranger things at intro?

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

    The master of cadence

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

    Unless you use a tiling window manager (BTW)

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

      True! (Kinda)

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

      @@typecraft_dev I heard this twice so far, but I don't understand as to why!

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

    ...
    Mom: "We have Primeagen at home".

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

    New subscriber here