In case of new-window and split-window
-F is not a replacement to -c, it is an absolutely different beast
-F formats -P output
-c sets a working directory

This reverts a fix that broke what was not broken.
This commit is contained in:
Slotos 2016-08-20 02:43:29 +03:00 committed by GitHub
parent 9927bbfcf2
commit d56a155ab1

View File

@ -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 -p 50 -F "#{pane_current_path}"
bind-key ^V split-window -h -p 50 -F "#{pane_current_path}"
bind-key s split-window -p 50 -F "#{pane_current_path}"
bind-key ^S split-window -p 50 -F "#{pane_current_path}"
bind-key v split-window -h -p 50 -c "#{pane_current_path}"
bind-key ^V split-window -h -p 50 -c "#{pane_current_path}"
bind-key s split-window -p 50 -c "#{pane_current_path}"
bind-key ^S split-window -p 50 -c "#{pane_current_path}"
# Pane resize in all four directions using vi bindings.
# Can use these raw but I map them to shift-ctrl-<h,j,k,l> in iTerm.
@ -78,7 +78,7 @@ bind C-a last-window
set -g history-limit 10000
# New windows/pane in $PWD
bind c new-window -F "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# Fix key bindings broken in tmux 2.1
set -g assume-paste-time 0