Пост #125059

     
сохранен 31.07.2019 12:07
  • Редактировать пост
  • Печать
  • Скачать
  • Посты-ответы на этот пост:  # 131042 # 146120 # 266613
  • Посмотреть дерево постов
  • Сравнить с постом
    #  
  • Нумерация строк
  • Подсветка синтаксиса  
Текст поста
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#------------------------------------------------------------------------------
# Modified Calculate Utilities 3.5.5.11
# Processed template files:
# /var/lib/layman/calculate/profiles/templates/3.5/2_ac_install_merge/app-misc/tmux/tmux.conf
# /var/calculate/templates/3.3/2_ac_install_merge/app-misc/tmux/tmux.conf
# For modify this file, create /etc/tmux.conf.clt template.
#------------------------------------------------------------------------------
set -g default-terminal "screen-256color" 
#set -g default-terminal "tmux-256color"
set -g history-limit 10000
set-option -sg escape-time 10
# automatically renumber tmux windows
set -g renumber-windows on
# make window/pane index start with 1
set -g base-index 1
setw -g pane-base-index 1

set -g status-fg white
set -g status-bg black
set -g status-right-length 99
set -g status-right "#(whoami)@#H"
set -g status-left "[#S]" 
set -g status-position top

set -g window-status-format ' #I #W '
set -g window-status-current-format ' #I #W '
set -g window-status-separator ' '

set -g display-panes-time 2000                          # on-screen time for display-panes in ms

set -g set-titles on                                    # enable wm window titles
set -g set-titles-string "[#I]: #T"                   # wm window title string (uses statusbar variables) 
set-window-option -g automatic-rename off


set -g bell-action any                                  # listen for activity on all windows

setw -g monitor-activity on                             # Notify if other windows have activity
set -g visual-activity on                               # Show status message when activity

setw -g aggressive-resize on

#bind-key k confirm kill-window                          # Confirm before killing window
#bind-key K confirm kill-server                          # Confirm before killing server 

# active window title colors
#set-window-option -g window-status-current-attr bright

# Keybindings -----------------------------------------------------------------


unbind C-b                                              # Unbinding default combination
set -g prefix C-a                                       # Set new default - Ctrl-q 
unbind-key C-a
bind-key C-a send-prefix

setw -g mouse on

# split window and fix path for tmux 1.9
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"

# synchronize all panes in a window
bind y setw synchronize-panes

# pane movement shortcuts
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

bind -r C-h select-window -t :-
bind -r C-l select-window -t :+

# Resize pane shortcuts
bind -r H resize-pane -L 10
bind -r J resize-pane -D 10
bind -r K resize-pane -U 10
bind -r L resize-pane -R 10

# set vi mode for copy mode
setw -g mode-keys vi

# more settings to make copy-mode more vim-like
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-selection-and-cancel
Добавить комментарий
Автор