Skip to content
Snippets Groups Projects
Commit 1e024719 authored by Tom Cammann's avatar Tom Cammann
Browse files

Update install

Update sed regex to strip "*" from history lines when using tmux and fc
e.g. "637* ls -a"
parent 1b9dadb3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment