.home/.tmux.conf

46 lines
1.1 KiB
Plaintext
Raw Normal View History

2012-05-18 15:05:19 +04:00
# Vim keys
2014-06-26 19:06:20 +04:00
# dirty hack for old tmux which doesn't support -c option
# save current path for >=tmux-1.9a
2021-07-29 16:00:56 +03:00
bind c new-window -c "#{pane_current_path}"
2014-06-26 19:06:20 +04:00
bind s split-window -v -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
2012-05-18 15:05:19 +04:00
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind < resize-pane -L 10
bind > resize-pane -R 10
bind - resize-pane -D 10
bind + resize-pane -U 10
bind : command-prompt
2021-07-29 16:00:56 +03:00
bind R respawn-window
bind y swap-window -t -1\; select-window -t -1
bind u swap-window -t +1\; select-window -t +1
2012-05-18 15:05:19 +04:00
# vi-style controls for copy mode
setw -g mode-keys vi
2013-04-01 15:32:08 +04:00
set -g default-terminal "screen-256color"
2012-05-18 15:05:19 +04:00
# create a session with a throw-away window
2014-12-22 18:38:19 +03:00
# new true
2012-05-18 15:05:19 +04:00
#
# # for future windows, stay open after the command exits
#set set-remain-on-exit on
#
# # create the windows we really want
2014-06-26 19:06:20 +04:00
# neww -n vim
# splitw -v -p 20 -t 0
2012-05-18 15:05:19 +04:00
#
# # for future windows, revert r-o-e to global value
#set -u set-remain-on-exit
#splitw -v -p 85 -t 0 ls
#selectw -t 1
#selectp -t 0
2013-03-27 16:11:31 +04:00
set-window-option -g xterm-keys on
2021-05-13 16:50:57 +03:00
set-option -g history-limit 32768