From 55767adf6e4aae1bfa1ea8668dc8974b80f7fffd Mon Sep 17 00:00:00 2001 From: zaika Date: Tue, 25 Jun 2019 17:54:44 +0300 Subject: [PATCH] tmux.conf update --- .screenrc | 8 +++++++- .tmux.conf | 25 +++++++++++++++++++------ 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/.screenrc b/.screenrc index 59808f0..f76f1ca 100644 --- a/.screenrc +++ b/.screenrc @@ -218,4 +218,10 @@ defscrollback 30000 activity "Activity in %t(%n)" -hardstatus alwayslastline '%{= .kC}%H %{= .Kw}[%?%EESC%: %?]%{= .Bw}%?%-Lw%?%{=b .bg}[%{-b .r}%n%f%{.w} %t%{+b .g}]%{= .Bw}%{-b}%?%+Lw%?%{= .Bw} %= %{.Kw}|%{.kw} %{Y}%d-%m-%Y %c:%s' +hardstatus alwayslastline '%{= .kC}%H%{= .Kw}[%?%EESC%: %?]%{= .Bw}%?%-Lw%?%{=b .bg}[%{-b .r}%n%f%{.w} %t%{+b .g}]%{= .Bw}%{-b}%?%+Lw%?%{= .Bw} %= %{.Kw}|%{.kw} %{Y}%d-%m-%Y %c:%s' + +#utf8 on on +#startup_message off +#term "screen-256color" + +#hardstatus alwayslastline "%{bk} %S %{kb} $LOGNAME %{bk} %H %?%{kb}%{kY} %-Lw%{Yk}%:%{Yb}%{Yk}%?%{Yk} %n%f* %t %{kY}%+Lw %-=" diff --git a/.tmux.conf b/.tmux.conf index df7ef1c..ed4c7cb 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,14 +1,27 @@ if-shell "uname | grep -q FreeBSD" "source /usr/local/lib/python3.6/site-packages/powerline/bindings/tmux/powerline.conf" if-shell "uname | grep -q Linux" "source /usr/share/powerline/bindings/tmux/powerline.conf" set -g default-terminal "screen-256color" -set -g mouse on +#set -g mouse on set -g terminal-overrides 'xterm*:smcup@:rmcup@' - -#sane scrolling: -#bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'" - set -g prefix C-a -bind C-a send-prefix + +#bind C-a send-prefix +bind-key a send-prefix + +# force a reload of the config file +unbind r +bind r source-file ~/.tmux.conf + +# start window numbering at 1 for easier switching +set -g base-index 1 + +# look good +set -g default-terminal "screen-256color" +set -g history-limit 5000 +setw -g xterm-keys on + +#set -g prefix C-a +#bind C-a send-prefix #set -g lock-command vlock set -g lock-after-time 3600 # Seconds; 0 = never set-window-option -g alternate-screen off