aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-04-29 09:41:16 -0600
committerCody Hiar <codyfh@gmail.com>2017-04-29 09:41:16 -0600
commitdbd80e8b5fbd0947c2064f8094a266ba83587dec (patch)
treeeac0387fc97a86b9ab485b815bd23c0cf3af250c
parentb0aae0258336cdc931b34bae1836eace72a00a91 (diff)
Couple of minor updates
-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