New answers tagged tmux
I got this working by adjusting the escape codes to watch for in my .vimrc. I still wish I had a better understanding of how all this works, and why the sequence sent by tmux differs from what's sent outside of tmux, but this got everything working: if &term =~ "screen" set <F13>=[1;2P set <F14>=[1;2Q set <F15>=[1;2R set ...
The status line message comand is the prompt that appears when you enter your prefix plus :. Setting these colours will not have any impact upon the colour of the search prompt (which, by default, is a rather garish black on yellow and is not configurable, AFAIAA).
Here's a tmux plugin that enables this: https://github.com/tmux-plugins/tmux-logging After you install it, save the entire scrollback with prefix + alt-shift-p.
Use: tmux split-window "shell command" The split-window command has the following syntax: split-window [-dhvP] [-c start-directory] [-l size | -p percentage] [-t target-pane] [shell-command] [-F format] (from man tmux, section "Windows and Panes"). Note that the order is important - the command has to come after any of those preceding ...
Try moving [[ $TERM != "screen" ]] && exec tmux to your .zshrc file. That way the command will only be run in interactive shells. An interactive shell is simply any shell process that you use to type commands, and get back output from those commands. That is, a shell with which you interact.
You might want to try tmux-yank plugin. It enables copying straight to system clipboard (OS X and Linux) and some other goodies like yanking the current shell line.
You can use tmux grouped session. First, create initial session, change its name to share: $ tmux $ tmux list-session 0: 1 windows (created Wed Aug 27 00:14:05 2014) [80x23] (attached) $ tmux rename-session -t 0 share $ tmux list-session share: 1 windows (created Wed Aug 27 00:14:05 2014) [80x23] (attached) Then, from other client, you simply add -t ...
swap-window can help you: swap-window -t -1 It moves current window to the left by one position. From man tmux: swap-window [-d] [-s src-window] [-t dst-window] (alias: swapw) This is similar to link-window, except the source and destination windows are swapped. It is an error if no window exists at src-window. You can bind it to a key: ...
Top 50 recent answers are included