Tmux Tutorial
141–150 of 166 posts
Re: Tmux Tutorial
#142I have been using screen for almost 10 years now, is it worth switching? I know it's not much learning but why switching when screen is not broken? It feels like there's more important stuff I can learn.
I'm a long-time screen user, and I recently switched to tmux purely because it seems to handle high-color and unicode more cleanly than screen. I configured it to completely replicate my screen setup so that I didn't have to learn anything.
e.g., in screen I could configure "^a j p" to do one command and "^a j d" to for another:
> bind j command -c foo
> # CMD KEY NAME CMD
> bind -c foo p screen -t '% |db' make db
> bind -c foo d screen -t '% |prod' ssh prod
If that's possible, I'd love to know how. It's what stopped me from switching a few months ago, and is now the most painful change after switching again a couple days ago.
Re: Tmux Tutorial
#143I have been using screen for almost 10 years now, is it worth switching? I know it's not much learning but why switching when screen is not broken? It feels like there's more important stuff I can learn.
Re: Tmux Tutorial
#144If you're on a Mac, try tmux -CC with iTerm2. You get tmux goodness like multiple panes, persistent sessions, etc. But you also get native scrolling, native copy and paste, etc. It's what makes tmux usable for me.
Re: Tmux Tutorial
#145What's the fastest way to scroll back through terminal history? Native scrolling doesn't appear to work and you have to annoyingly enter copy mode first?
Re: Tmux Tutorial
#146Another alternative is emacs server.
As far as I know, M-x shell doesn't allow for running multiple shell buffers in emacs, but :term in vim will allow you to do so.
Re: Tmux Tutorial
#147Never understood why tmux had to be different and use ctrl+b when ctrl+a is already standard and much, much better.
isn't ctrl+a the BASH default for 'go to the beginning of the line'?
Re: Tmux Tutorial
#148Re: Tmux Tutorial
#149Earlier quoted context omitted.
Exactly! Have you found any decent replacement?
I use a backtick, but don't edit much e.g. markdown in my tmux sessions, and always use $(...) for command substitution so I don't normally feel any pain. One oddity with tmux is that to escape the control character you don't press it twice, you press the escape char then ctrl-b, so that is a lot of extra movement around the keyboard
Re: Tmux Tutorial
#150Earlier quoted context omitted.
tmux -CC really is great on mac, but if it worked with mosh it would be incredible.
EternalTerminal works great as a mosh alternative and fully supports tmux -CC Alternatively, there's apparently a forked version of mosh out there with iterm2 support hacked in, but I've not tried it.