aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmac.tmux.config2
-rw-r--r--tmux.config8
2 files changed, 9 insertions, 1 deletions
diff --git a/mac.tmux.config b/mac.tmux.config
index 38f7d0f..6ef1557 100755
--- a/mac.tmux.config
+++ b/mac.tmux.config
@@ -1,7 +1,7 @@
# vim: syntax=conf
# Setup 'v' to begin selection as in Vim
-bind -T copy-mode-vi y copy-pipe "reattach-to-user-namespace pbcopy"
+bind -T copy-mode-vi y send -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter copy-pipe "reattach-to-user-namespace pbcopy"
diff --git a/tmux.config b/tmux.config
index 790b781..1cfc59c 100644
--- a/tmux.config
+++ b/tmux.config
@@ -2,6 +2,12 @@
# Bindings
#####################################
+
+# Splits always start in the current pane's working directory
+unbind '"'
+unbind %
+bind '"' split-window -v -c "#{pane_current_path}"
+bind % split-window -h -c "#{pane_current_path}"
# Vim movements
bind C-h select-pane -L
bind C-j select-pane -D
@@ -31,6 +37,8 @@ bind C-v resize-pane -Z
# Settings
#####################################
+# Setup 'v' to begin selection as in Vim
+bind -Tcopy-mode-vi v send -X begin-selection
# Help with the color problems
set -g default-terminal "screen-256color"
# Mouse Scrolling