Quote:
Originally Posted by ponce
(Post 5046010)
if can be useful to people starting with tmux now that is included by default, this is the ~/.tmux.conf I'm using here to emulate screen keys ("ctrl-a a" to go at the beginning of the line included)
Code:
set -g prefix C-a
bind a send-prefix
then I have a bunch of other options in the same file
Code:
setw -g mode-keys vi
set -g status-bg black
set -g status-fg yellow
set -g status-left '#[fg=cyan]#H'
set-window-option -g window-status-current-bg red
set -g status-right '#[fg=gray90]#(uptime | cut -d "," -f 1,2,4)'
setw -g monitor-activity on
set -g visual-activity on
set -g utf8 on
|
Thanks, that's useful. I've played with tmux on an OpenBSD system, where it's in base. By the way, for those who don't know, there is also a screen-like config file that comes with tmux, it's /usr/doc/tmux-1.8/examples/screen-keys.conf.
Edit:
Here is my .tmux.conf that is based on Han Boetes’ config from the examples/ directory, it uses ^t, ^tt switches back to the last window. (I needed to set TERM as my tcsh used dumb terminal settings with $TERM being screen.)
Code:
set -g status-bg white
set -g status-fg black
set-window-option -g window-status-current-bg black
set-window-option -g window-status-current-fg white
set -g default-terminal "xterm-color"
unbind C-b
set -g prefix C-t
bind C-t send-prefix
bind t send-prefix
bind ^T last-window
|