diff --git a/config b/config index 8bf9ac7..8ebec38 100644 --- a/config +++ b/config @@ -21,6 +21,12 @@ local = !git branch -vv | \ cut -c 3- | \ awk '$3 !~/\\[/ { print $1 }' + recent = !git reflog show --pretty=format:'%gs ~ %gd' --date=relative | \ + grep 'checkout:' | \ + grep -oE '[^ ]+ ~ .*' | \ + awk -F~ '!seen[$1]++' | \ + head -n 10 | \ + awk -F ' ~ HEAD@{' '{printf(\" %s \\033[33m%s\\033[0m\\n\", $1, substr($2, 1, length($2)-1))}' create = checkout -b delete = branch -D refname = rev-parse --abbrev-ref HEAD