diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2015-03-13 22:46:53 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2015-03-13 22:59:23 +0900 |
| commit | c04e8de9b008428fee658e00661983ae22430435 (patch) | |
| tree | fade292fa1ba34cc1a2bf3d3f3d32ffbb1f299c4 /shell/key-bindings.bash | |
| parent | 4977174deffb631207b90753c5d451fbe438ed18 (diff) | |
| download | fzf-c04e8de9b008428fee658e00661983ae22430435.tar.gz | |
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)
Diffstat (limited to 'shell/key-bindings.bash')
| -rw-r--r-- | shell/key-bindings.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash index b7c79463..90112475 100644 --- a/shell/key-bindings.bash +++ b/shell/key-bindings.bash @@ -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() { |
