mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-09 17:53:56 +00:00
Update install
Update sed regex to strip "*" from history lines when using tmux and fc e.g. "637* ls -a"
This commit is contained in:
parent
1b9dadb3d3
commit
1e02471940
2
install
2
install
@ -216,7 +216,7 @@ bindkey '\ec' fzf-cd-widget
|
||||
|
||||
# CTRL-R - Paste the selected command from history into the command line
|
||||
fzf-history-widget() {
|
||||
LBUFFER=$(fc -l 1 | fzf +s | sed "s/ *[0-9]* *//")
|
||||
LBUFFER=$(fc -l 1 | fzf +s | sed "s/ *[0-9]*\*\? *//")
|
||||
zle redisplay
|
||||
}
|
||||
zle -N fzf-history-widget
|
||||
|
Loading…
Reference in New Issue
Block a user