|
|
@@ -8,10 +8,6 @@ set-option -g base-index 1
|
|
|
# history scrollback
|
|
|
set-option -g history-limit 9999999
|
|
|
|
|
|
-# act like vim
|
|
|
-set-option -g status-keys vi
|
|
|
-set-window-option -g mode-keys vi # vi keys in copy mode (prefix+[)
|
|
|
-
|
|
|
# Display a status line message when activity occurs in a window for which the
|
|
|
# monitor-activity window option is enabled.
|
|
|
set-option -g visual-activity on
|
|
|
@@ -20,21 +16,28 @@ set-option -g visual-activity on
|
|
|
# current window, rather than the smallest session to which it is attached.
|
|
|
set-window-option -g aggressive-resize on
|
|
|
|
|
|
+# mouse support (for scrollback)
|
|
|
+set-option -g mode-mouse on
|
|
|
+
|
|
|
+# act like vim
|
|
|
+set-option -g status-keys vi
|
|
|
+set-window-option -g mode-keys vi # vi keys in copy mode (prefix+[)
|
|
|
+
|
|
|
|
|
|
#######################
|
|
|
# General Key Bindings
|
|
|
#######################
|
|
|
|
|
|
+# act like vim. enhance copy mode to use more vim like keys for copying
|
|
|
+bind-key -t vi-copy 'v' begin-selection
|
|
|
+bind-key -t vi-copy 'y' copy-selection
|
|
|
+
|
|
|
# prefix+R to reload the config file
|
|
|
bind-key C-r source-file ~/.tmux.conf; display-message "tmux.conf reloaded"
|
|
|
|
|
|
-# detach client like screen
|
|
|
+# detach client like screen, C-a C-d
|
|
|
bind-key C-d detach-client
|
|
|
|
|
|
-# enhance copy mode to use more vim like keys for copying
|
|
|
-bind-key -t vi-copy 'v' begin-selection
|
|
|
-bind-key -t vi-copy 'y' copy-selection
|
|
|
-
|
|
|
|
|
|
###################################
|
|
|
# Window/Pane/Session Manipulation
|
|
|
@@ -56,7 +59,7 @@ bind-key -n M-0 select-window -t 10
|
|
|
|
|
|
# Window Creation/Destruction
|
|
|
bind-key C-c new-window
|
|
|
-# TODO a better shortcut than `prefix+,` for renaming windows, like prefix+A
|
|
|
+# Remember `prefix+,` for renaming windows
|
|
|
|
|
|
# Pane Movement
|
|
|
bind-key h select-pane -L
|
|
|
@@ -76,7 +79,7 @@ bind-key s set -w synchronize-panes
|
|
|
# Session Switching/Destruction
|
|
|
bind-key C-s choose-session
|
|
|
bind-key X kill-session
|
|
|
-# TODO a better shortcut than `prefix+$` for renaming sessions
|
|
|
+# Remember `prefix+$` for renaming sessions
|
|
|
|
|
|
|
|
|
########################
|
|
|
@@ -85,7 +88,6 @@ bind-key X kill-session
|
|
|
|
|
|
# Use solarized colour palette
|
|
|
source ~/dotfiles/tmux/tmux-colors-solarized/tmuxcolors-256.conf
|
|
|
-# set-option -g default-terminal "screen-256color"
|
|
|
|
|
|
# tmux-powerline setup
|
|
|
set-option -g status on
|