My favourite tmux trick only works on an apple gb keyboard: set -g prefix ` bind-key e send-prefix Then, all your tmux controls are one left pinky press away (` is beside z on uk Mac keyboards). (`e sends a ` for when you need it, rare though, $() is better for sub shells :})
Getting Started with Tmux
51–60 of 160 posts
Re: Getting Started with Tmux
#52I use iTerm locally and tmux on a dev instance and it's great. The built-in tmux integration[1] is a pleasure to use. On my end, I see a terminal with tabs; if my ssh connection drops, I can just reconnect and magically all the tabs and their states are persisted. In lieu of this integration, I enable the tmux mouse mode which lets me highlight text with the mouse, navigate around splits by clicking in them... great…
Re: Getting Started with Tmux
#53Re: Getting Started with Tmux
#54My favorite mod is something simple as renumbering the windows/tabs to range starting at 1, rather than being zero indexed, this way they align with the digits on my keyboard.
Re: Getting Started with Tmux
#55My favorite antipattern is, you can just leave a script that does an event loop running in the foreground, detatch tmux, and voila, you have a 'server'. Works great in a pinch or when you just don't need to finish it.
Add it within a infinitive loop + `sleep 10` and now it automatically restarts if it crashes too! :)
Re: Getting Started with Tmux
#56My favorite antipattern is, you can just leave a script that does an event loop running in the foreground, detatch tmux, and voila, you have a 'server'. Works great in a pinch or when you just don't need to finish it.
Re: Getting Started with Tmux
#57I've used Tmux/Screen the few times I've had to be in an actual terminal, but don't really see the use for them when using a GUI terminal emulator. I just open new tabs or (rarely) windows as needed. Could anyone using these explain what it provides that you find useful in practice? I rarely ever need persistence of shell when I close the console, is that a common need? Familiarity/muscle memory of shortcuts is a val…
Re: Getting Started with Tmux
#58I've used Tmux/Screen the few times I've had to be in an actual terminal, but don't really see the use for them when using a GUI terminal emulator. I just open new tabs or (rarely) windows as needed. Could anyone using these explain what it provides that you find useful in practice? I rarely ever need persistence of shell when I close the console, is that a common need? Familiarity/muscle memory of shortcuts is a val…
Re: Getting Started with Tmux
#59I've been using tmux daily for more than a decade and didn't know prefix+! converted a pane to a new window.
I recommend to everyone, if you are using a tool regularly, take half an hour of time to study its man page. This way you'll learn about all the things that your tool supports but you haven't been aware of yet.
Re: Getting Started with Tmux
#60One of the best software I've ever used, it's addictive. Did anyone manage to get it set up on windows? And if you did is it buggy or does it run smooth?
I use TMUX all the time inside Gitbash for Windows. Some panes are SSH sessions into Linux servers etc. While other panes I use vim to edit local Windows txt files or just run other local Windows things. (This mightn't be what you were looking for)