diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2014-02-26 19:03:01 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2014-02-26 19:03:01 +0900 |
commit | 98bef4600c2a3021fc42fcfce4590013671b853d (patch) | |
tree | fa068c759e423952573bb648baf0ccf947106199 | |
parent | 00c8a68430e232e32160e86f7e8cd8beffe1a76b (diff) | |
parent | f5d53b94fee06b3d1f81d718d7fb96adbf180a02 (diff) |
Merge pull request #20 from wellle/zsh-history-fc
Use `fc` instead of `history` to avoid `oh-my-zsh` alias
-rwxr-xr-x | install | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -150,7 +150,7 @@ bindkey '\ec' fzf-cd-widget # CTRL-R - Paste the selected command from history into the command line fzf-history-widget() { - LBUFFER=$('history' -$HISTSIZE | fzf +s | sed "s/ *[0-9]* *//") + LBUFFER=$(fc -l 1 | fzf +s | sed "s/ *[0-9]* *//") zle redisplay } zle -N fzf-history-widget |