From 1fa7827f1a6a381cb20d9afb9bcdaa7ab3bd2355 Mon Sep 17 00:00:00 2001 From: Jonathan Arnett Date: Thu, 23 Apr 2015 18:35:18 -0400 Subject: [PATCH] Fixing fish shell example in README.md For me, `$history[1]` is the currently running command, so for the last one you want `$history[2]` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a63b7da..da503abe 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ Or in `config.fish`: ```fish function fuck - eval (thefuck $history[1]) + eval (thefuck $history[2]) end ```