diff options
author | Chaoren Lin <chaorenl@google.com> | 2015-12-10 19:14:22 -0800 |
---|---|---|
committer | Chaoren Lin <chaorenl@google.com> | 2015-12-11 00:18:45 -0800 |
commit | 033afde3b5d07eecce619bec06258fe15babebcb (patch) | |
tree | 5b7896979dc8e3f3f1aa1060def08d9bed8516a7 /shell | |
parent | a07944a5bba77163f05d0d751b970d6d1b597f76 (diff) |
Fix CTRL-T in tmux with non-standard configuration.
- Don't assume ~/.fzf.bash exists.
- Source the current script for __fzf_select__.
- Forward $PATH.
Diffstat (limited to 'shell')
-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 e9bea78d..2406850e 100644 --- a/shell/key-bindings.bash +++ b/shell/key-bindings.bash @@ -25,7 +25,7 @@ __fzf_select_tmux__() { else height="-l $height" fi - tmux split-window $height "cd $(printf %q "$PWD"); FZF_CTRL_T_COMMAND=$(printf %q "$FZF_CTRL_T_COMMAND") bash -c 'source ~/.fzf.bash; tmux send-keys -t $TMUX_PANE \"\$(__fzf_select__)\"'" + tmux split-window $height "cd $(printf %q "$PWD"); PATH=$(printf %q "$PATH") FZF_CTRL_T_COMMAND=$(printf %q "$FZF_CTRL_T_COMMAND") bash -c 'source \"${BASH_SOURCE[0]}\"; tmux send-keys -t $TMUX_PANE \"\$(__fzf_select__)\"'" } __fzf_cd__() { |