m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

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)
This commit is contained in:
Junegunn Choi
2015-03-13 22:46:53 +09:00
parent 4977174def
commit c04e8de9b0
4 changed files with 5 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ __fsel_tmux() {
else
height="-l $height"
fi
tmux split-window $height "bash -c 'source ~/.fzf.bash; tmux send-keys -t $TMUX_PANE \"\$(__fsel)\"'"
tmux split-window $height "cd $(printf %q "$PWD");bash -c 'source ~/.fzf.bash; tmux send-keys -t $TMUX_PANE \"\$(__fsel)\"'"
}
__fcd() {