From 9bedf2977a3358441ce01665983798cc69dc353f Mon Sep 17 00:00:00 2001 From: Steve Losh Date: Tue, 23 Nov 2010 10:59:11 -0500 Subject: [PATCH] lib/misc: add the "What the hell did I do the other day?" function --- lib/misc.zsh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/misc.zsh b/lib/misc.zsh index 6641ca4ea..a6a07c73c 100644 --- a/lib/misc.zsh +++ b/lib/misc.zsh @@ -50,3 +50,13 @@ alias history='fc -l 1' ## Examples: http://rubyurl.com/ZXv export GREP_OPTIONS='--color=auto' export GREP_COLOR='1;32' + +# What the hell did I do the other day? +function whatthehelldididoon() { + for repo in `find . -name '.hg'` + do + echo $repo + hg .. -R $repo/.. -d "$1" -u 'Steve Losh' + done +} +