summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Wellenbrock <christian.wellenbrock@gmail.com>2014-04-03 13:12:02 +0200
committerChristian Wellenbrock <christian.wellenbrock@gmail.com>2014-04-03 16:11:51 +0200
commit97de919152766d8bd5a336f766549f73f7f047b2 (patch)
tree843d5205c8c00a626ae72467995d44fad6581e65
parent0eafa725b94c6cb6b662bedc38f961194bbee79b (diff)
Feed all zsh history into fzf
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index cbce8c2a..db036021 100644
--- a/README.md
+++ b/README.md
@@ -172,7 +172,7 @@ fda() {
# fh - repeat history
fh() {
- eval $(history | fzf +s | sed 's/ *[0-9]* *//')
+ eval $(('fc' -l 1 || 'history') | fzf +s | sed 's/ *[0-9]* *//')
}
# fkill - kill process