summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Cammann <cammann.tom@gmail.com>2014-05-26 08:33:48 +0100
committerTom Cammann <cammann.tom@gmail.com>2014-05-26 08:56:47 +0100
commit1e024719408912f368a6c626d555605fcadda0fa (patch)
treeee088b6c3da15ebe7922d924355b6214074e2122
parent1b9dadb3d36a8bbfbae87bef93613c7be99e581c (diff)
Update install
Update sed regex to strip "*" from history lines when using tmux and fc e.g. "637* ls -a"
-rwxr-xr-xinstall2
1 files changed, 1 insertions, 1 deletions
diff --git a/install b/install
index 28897734..5328261d 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