summaryrefslogtreecommitdiffstats
path: root/regress/conf/2eae5d47049c1f6d0bef3db4e171aed7.conf
diff options
context:
space:
mode:
Diffstat (limited to 'regress/conf/2eae5d47049c1f6d0bef3db4e171aed7.conf')
-rw-r--r--regress/conf/2eae5d47049c1f6d0bef3db4e171aed7.conf56
1 files changed, 56 insertions, 0 deletions
diff --git a/regress/conf/2eae5d47049c1f6d0bef3db4e171aed7.conf b/regress/conf/2eae5d47049c1f6d0bef3db4e171aed7.conf
new file mode 100644
index 00000000..c09adc24
--- /dev/null
+++ b/regress/conf/2eae5d47049c1f6d0bef3db4e171aed7.conf
@@ -0,0 +1,56 @@
+# 256 colors for vim
+set -g default-terminal "screen-256color"
+
+# Set default shell to zsh
+set-option -g default-shell /bin/zsh
+
+# Start window numbering at 1
+set-option -g base-index 1
+set-window-option -g pane-base-index 1
+
+# Cycle panes with C-b C-b
+unbind ^B
+bind ^B select-pane -t :.+
+
+# Reload config wtih a key
+bind-key r source-file ~/.tmux.conf \; display "Config reloaded!"
+
+# Mouse works as expected
+# set -g mode-mouse on
+# set -g mouse-select-pane on
+# set -g mouse-resize-pane on
+# set -g mouse-select-window on
+
+# Scrolling works as expected
+set -g terminal-overrides 'xterm*:smcup@:rmcup@'
+
+# Use the system clipboard
+# set-option -g default-command "reattach-to-user-namespace -l zsh"
+
+# Clear the pane and its history
+bind -n C-k send-keys C-l \; clear-history
+
+# smart pane switching with awareness of vim splits
+bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
+bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
+bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
+bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
+bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l"
+
+# C-l is taken oer by vim style pane navigation
+bind C-l send-keys 'C-l'
+
+# Use vim keybindings in copy mode
+setw -g mode-keys vi
+
+# Setup 'v' to begin selection as in Vim
+# bind-key -t vi-copy v begin-selection
+# bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
+
+# Update default binding of `Enter` to also use copy-pipe
+# unbind -t vi-copy Enter
+# bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
+
+# Powerline
+run-shell "powerline-daemon -q"
+source "/Users/adamcooper/Library/Python/3.7/lib/python/site-packages/powerline/bindings/tmux/powerline.conf" \ No newline at end of file