aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-09-04 11:11:13 +0800
committerAaron LI <aly@aaronly.me>2017-09-04 11:11:13 +0800
commit38a18413677f80f5bd7eeb1d295bd716019b49b4 (patch)
tree676412fce5e38e8c12e258ed55d750df6ebf0000
parent539db99fc39d0295aefad5627658f50a8bb00460 (diff)
downloaddotfiles-38a18413677f80f5bd7eeb1d295bd716019b49b4.tar.bz2
tmux.conf: Tweak window creation
-rw-r--r--_tmux.conf5
1 files changed, 4 insertions, 1 deletions
diff --git a/_tmux.conf b/_tmux.conf
index 18026d5..839f3ec 100644
--- a/_tmux.conf
+++ b/_tmux.conf
@@ -33,6 +33,7 @@
# Aaron LI
# 2015-01-22
#
+# 2017-09-04 : Tweak and fix several mistakes
# 2017-09-03 : Rewrite; drop plugins (with TPM)...
#
@@ -127,8 +128,10 @@ bind -r M-j resize-pane -D 5
bind -r M-k resize-pane -U 5
bind -r M-l resize-pane -R 5
+# Create new window starting from the current directory
+bind c new-window -c '#{pane_current_path}'
# URxvt tab like window control
-bind -n S-Down new-window
+bind -n S-Down new-window -c '#{pane_current_path}'
bind -n S-Left previous-window
bind -n S-Right next-window
bind -n C-Left swap-window -t -1