[Comm] gnu screen splitting to regions

Evgeny Sinelnikov sin на altlinux.ru
Пт Дек 23 19:06:04 MSK 2016


23 декабря 2016 г., 19:53 пользователь Evgeny Sinelnikov
<sin на altlinux.ru> написал:
> Здравствуйте,
>
> возможно, это не про screen, но уж точно, ту же функциональность.
>
> В общем, я перешёл на tmux и возрадовался жизни:
> # splitting panes
> bind | split-window -h
> bind - split-window -v
>
> Пример своего конфига прилагаю.

Поспешил, отправил старый конфиг, приложил новый.



-- 
Sin (Sinelnikov Evgeny)
----------- следующая часть -----------
# Setting the prefix from C-b to C-a
set -g prefix C-a

# Free the original Ctrl-b prefix keybinding
unbind-key C-b

# Ensure that we can send Ctrl-A to other apps
bind-key C-b send-prefix

# Bind last windows to CTRL-A + CTRL-A
bind-key C-a last-window
bind-key a last-pane

# Set the base index for windows to 1 instead of 0
set -g base-index 1

# Reload the file with Prefix r
bind r source-file ~/.tmux.conf \; display "Reloaded!"

# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on

set -g status-keys vi
#set -g status-keys emacs
set -g history-limit 20000

# splitting panes
bind | split-window -h
bind - split-window -v

# moving between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# Quick pane selection
# START:panetoggle
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# END:panetoggle

# Pane resizing
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5

## Set the default terminal mode to 256color mode
#set -g default-terminal "screen-256color"

# enable activity alerts
setw -g monitor-activity on
set -g visual-activity on

# set the status line's colors
set -g status-fg white
set -g status-bg black

# set the color of the window list
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim

# set colors for the active window
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright

# pane colors
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g pane-active-border-bg yellow

# Command / message line
set -g message-fg white
set -g message-bg black
set -g message-attr bright

# Status line left side
set -g status-left-length 40
set -g status-left "#[fg=green]#(hostname -s)[#S]: #[fg=yellow]#I #[fg=cyan]#P"

# Status line right side
# 15% | 28 Nov 18:15
set -g status-right "#[fg=red]%a %d %b %R"
#set -g status-right '#[fg=green]#H #[fg=cyan]%a %d %b %R'

# Update the status bar every sixty seconds
set -g status-interval 60

# Center the window list
set -g status-justify centre

# enable vi keys.
setw -g mode-keys vi

# Set aggressive resize
set-window-option -g aggressive-resize on

# Makes the prefix key immediately available. There
#  is no pause necessary for an escape sequence
set -s escape-time 0



Подробная информация о списке рассылки community