From 1e024719408912f368a6c626d555605fcadda0fa Mon Sep 17 00:00:00 2001 From: Tom Cammann Date: Mon, 26 May 2014 08:33:48 +0100 Subject: [PATCH] Update install Update sed regex to strip "*" from history lines when using tmux and fc e.g. "637* ls -a" --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index 2889773..5328261 100755 --- a/install +++ b/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