From c04e8de9b008428fee658e00661983ae22430435 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 13 Mar 2015 22:46:53 +0900 Subject: Make sure to start tmux pane from the current directory (#143) - fzf-tmux - CTRL-T of bash/zsh/fish - fish implementation may not work if the path contains double-quote characters (FIXME) --- bin/fzf-tmux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/fzf-tmux b/bin/fzf-tmux index ffb98d9c..f1fcb091 100755 --- a/bin/fzf-tmux +++ b/bin/fzf-tmux @@ -115,7 +115,7 @@ mkfifo $fifo2 mkfifo $fifo3 if [ -n "$term" -o -t 0 ]; then tmux set-window-option -q synchronize-panes off \;\ - split-window $opt "$envs"' sh -c "'$fzf' '"$fzf_args"' > '$fifo2'; echo \$? > '$fifo3' '"$close"'"' $swap + split-window $opt "cd $(printf %q "$PWD");$envs"' sh -c "'$fzf' '"$fzf_args"' > '$fifo2'; echo \$? > '$fifo3' '"$close"'"' $swap else mkfifo $fifo1 tmux set-window-option -q synchronize-panes off \;\ -- cgit v1.2.3