commit 61632b19962961f704adb6b521a3992ee2939c4d parent aaee8df322d422b7a1d0217087ba678735e85595 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Fri, 13 Mar 2020 16:32:59 +0100 Reverse history before searching it Diffstat:
M | .profile | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.profile b/.profile @@ -36,7 +36,7 @@ alias cg='c "$(git rev-parse --show-toplevel)"' # cd under git repo alias r='fc -s' h() { - eval $(cat "$HISTFILE" | fzy -l 25) + eval $(tail -r "$HISTFILE" | fzy -l 25) } o() {