From 5e9a35eae34e29fb5e61a61225bbd558cb76c10b Mon Sep 17 00:00:00 2001 From: Ian Ker-Seymer Date: Wed, 24 Sep 2014 01:04:56 -0600 Subject: [PATCH] Start tmux window in /Users/ianks/.yadr --- tmux/tmux.conf | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index dd646cc..d795e1a 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -8,10 +8,10 @@ set -g default-terminal screen-256color bind-key ^D detach-client # Create splits and vertical splits -bind-key v split-window -h -bind-key ^V split-window -h -bind-key s split-window -bind-key ^S split-window +bind-key v split-window -h -c "#{pane_current_path}" +bind-key ^V split-window -h -c "#{pane_current_path}" +bind-key s split-window -c "#{pane_current_path}" +bind-key ^S split-window -c "#{pane_current_path}" # Pane resize in all four directions using vi bindings. # Can use these raw but I map them to shift-ctrl- in iTerm. @@ -68,5 +68,12 @@ bind C-a last-window # Bigger history set -g history-limit 10000 +# New windows/pane in $PWD +bind c new-window -c "#{pane_current_path}" + +# force a reload of the config file +unbind r +bind r source-file ~/.tmux.conf \; display "Reloaded!" + # Local config if-shell "[ -f ~/.tmux.conf.user ]" 'source ~/.tmux.conf.user'