New answers tagged tmux
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: ...
Assuming you do want to run this from your ~/.tmux.conf, not an external script, you would append this to your config file: # session initialisation new -s SessionName -n WindowName 'tail -f /var/log/apache2/samperror.log' splitw -h -p 50 -t 0 'tail -f /var/log/apache2/other.log' selectw -t 0 Then, when you start tmux with the command to attach to a ...
Here's a quick and dirty command-line that achieves what you want: $ tmux new-session -s asdf -n myWindow -d 'tail -f foo'\; \ split-window -d 'tail -f bar'\; attach-session There are a few drawbacks to this solution: it doesn't scale very well (a few more commands and the result is incomprehensible). the two tail commands aren't run in an ...
Here's a tmux plugin that enables logging without messing with key bindings in .tmux.conf: https://github.com/tmux-plugins/tmux-logging Features: prefix + P toggles pane logging. Output is cleared from unwanted ANSI characters! prefix + Alt + P saves complete pane history to a file
No, to do this in a sane way is not possible. Both programs expect to just redraw their status line. It would require one program do draw over the other programs status line, without the other program knowing. And it's hard to predict when the other will redraw over it. I could think of two "dirty" ways to approach this: have one program overwrite part ...
All I need to do is set the DISPLAY environment variable to :0.0. I think the issue was that I am using the fish shell, and I need to use the -x flag to set when doing this: set -x DISPLAY :0.0
I use the default combination on my MacBook Pro: fn+⇧+↑ or fn+⇧+↓. In documentation it is often shown as ⇞ or ⇟
Top 50 recent answers are included