Skip to content
Myr

Merge pull request #46 from takac/install-update

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix fzf-history-widget to strip `*` from history lines when using tmux and fc

authored by Junegunn Choi · committed by Junegunn Choi · parents 1b9dadb, 1e02471 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:install+1 added-1 removed
214 unmodified lines
215bindkey '\ec' fzf-cd-widget216217# CTRL-R - Paste the selected command from history into the command line218fzf-history-widget() {219 LBUFFER=$(fc -l 1 | fzf +s | sed "s/ *[0-9]* *//")219 LBUFFER=$(fc -l 1 | fzf +s | sed "s/ *[0-9]*\*\? *//")220 zle redisplay221}222zle -N fzf-history-widget223bindkey '^R' fzf-history-widget
129 unmodified lines