diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2016-06-08 01:30:26 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-06-08 01:30:26 +0900 |
| commit | 95b34de339822d6e81898c7e52f94a7165be39bc (patch) | |
| tree | 8e6ba2b05b57375cbbee4325298b499f7224e800 /shell/key-bindings.bash | |
| parent | 6a431cbf49799327d763681758943be9e313b034 (diff) | |
| download | fzf-95b34de339822d6e81898c7e52f94a7165be39bc.tar.gz | |
[bash/zsh] Fix $FZF_CTRL_R_OPTS with option values with spaces
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 41e707ea..b87decaa 100644 --- a/shell/key-bindings.bash +++ b/shell/key-bindings.bash @@ -51,7 +51,7 @@ __fzf_history__() ( shopt -u nocaseglob nocasematch line=$( HISTTIMEFORMAT= history | - $(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r $FZF_CTRL_R_OPTS | + eval "$(__fzfcmd) +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r $FZF_CTRL_R_OPTS" | \grep '^ *[0-9]') && if [[ $- =~ H ]]; then sed 's/^ *\([0-9]*\)\** .*/!\1/' <<< "$line" |
