3 ms·
i use iterm2 and neovim. Is it worth using/adding tmux for local development? As Iterm2 has split panels and some level of saving your session and neovim built
by softinio 9y ago
i use iterm2 and neovim. Is it worth using/adding tmux for local development?
As Iterm2 has split panels and some level of saving your session and neovim built in termnial I feel tmux may not be needed for local development or am I missing something?
- crispinb 9y agoI use tmux for doing stuff on servers, but rarely bother locally. The main reason I can think of to do so is if you routinely use a specific multiple shell setup for some particular project —- eg. a tail, an editor and a ready prompt. Otherwise I don’t see much point (though it’s not an issue I’ve explored much). Btw as you’re an iTerm user you might want to read up on its tmux integration, which is quite cute.
- jfoutz 9y agofor a little while i used #!/bin/bash tmux split-pane -b -p 30 -d; tmux send-keys -t {up-of} 'nyancat^M' "$@" tmux send-keys -t {up-of} '^C' tmux kill-pane -t {up-of} to pop up an obvious animation for longer running processes. like vm startup. When the animation disappears the thing is ready to go. Haven't been bothering with tmux local lately though.
- crispinb 9y ago`nyancat` (as a shell command) puzzled me briefly. Now I see. Not available on macOS, except for unfortunates with a new macbook 'appointed' with a fake keyboard: https://github.com/avatsaev/touchbar_nyancat https://github.com/avatsaev/touchbar_nyancat
- jfoutz 9y agoBrew has a terminal animation. It’s cute. http://brewformulas.org/Nyancat http://brewformulas.org/Nyancat
- padthai 9y agoI do not think so. I changed from iterm2 to tmux (+ terminal.app/st) for two reasons: (a) Same experience in all machines, Linux or macOS, local or remote (b) You can send keys from one terminal to another, so you can create complex interfaces with specialized windows Out of those, I have not find any good reason to drop iterm2 for tmux locally.
- apazzolini 9y agoI use iTerm2 and neovim as well and find tmux really beneficial for two reasons: 1. https://github.com/christoomey/vim-tmux-navigator https://github.com/christoomey/vim-tmux-navigator. I use ctrl-h/j/k/l to navigate vim splits, and with vim-tmux-navigator, I can seamlessly move between splits and tmux panes. It's really nice. 2. Project management. I use a separate instance of vim per project I'm working on, and each instance corresponds to a tmux window. I have a no-prefix bind on ctrl-f that brings up the choose-window command, so I can navigate between projects with `ctrl-f <number>`. I haven't found a solution to switch between projects in a single vim instance that is as fast this.