diff options
| author | Miguel <m.i@gmx.at> | 2019-05-26 22:41:49 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2019-05-26 22:41:49 +0200 |
| commit | fd5f1db2312b31246907abd0ffb913db00198a9b (patch) | |
| tree | 0734a355acce5e9a02ef27d76f8bbb5b93566554 /tmux/.tmux.conf | |
| parent | 533d9d859d8c47832233b5241eb21c79a00502e4 (diff) | |
tmux config
Diffstat (limited to 'tmux/.tmux.conf')
| -rw-r--r-- | tmux/.tmux.conf | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..82c0eba --- /dev/null +++ b/tmux/.tmux.conf @@ -0,0 +1,41 @@ +# show status bar when we have multiple windows +# https://www.reddit.com/r/tmux/comments/6lwb07/is_it_possible_to_hide_the_status_bar_in_only_a/ +#if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on" +#set-hook -g window-linked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"' +#set-hook -g window-unlinked 'if -F "#{==:#{session_windows},1}" "set -g status off" "set -g status on"' +#set-hook -g window-linked 'set -g status on' +bind-key 'b' set -g status on +bind-key 'B' set -g status off +set -g status off + +# set window title +set -g set-titles on +#set -g set-titles-string "~ H:#H h:#h D:#D P:#P T:#T S:#S F:#F I:#I W:#W ~" +set -g set-titles-string "#W" + +# hide status bar +set -g status off + +# remap prefix to Control + a +set -g prefix C-a + +# bind 'C-a C-a' to type 'C-a' +bind C-a send-prefix +bind C-b send-prefix +unbind C-b + +# vi mode +set-window-option -g mode-keys vi + +# terminal +# set -g default-terminal "tmux-256color" # this makes problems in mc +#set -g default-terminal "xterm-256color" +set -g default-terminal "screen-256color" + +# escape timeout +set -s escape-time 0 + +# copy and paste +bind-key -t vi-copy 'v' begin-selection +bind-key -t vi-copy 'y' copy-pipe "xclip > /dev/null" +bind-key 'p' run "xclip -o | tmux load-buffer - ; tmux paste-buffer" |
