From 386b9b76b4f2ee984f31b7e53789096278d65c1f Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Tue, 20 Nov 2012 15:16:17 -0800 Subject: [PATCH] Add alias to show git branches sorted by date --- bash/aliases | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bash/aliases b/bash/aliases index 674d674..883d53a 100644 --- a/bash/aliases +++ b/bash/aliases @@ -58,6 +58,8 @@ alias take='sudo chown `whoami`:`whoami` ' alias simple-http-server='python -m SimpleHTTPServer' alias numfiles='find . -maxdepth 1 -type f | wc -l' alias deepgrep='find . -type f | sed "s/$/\"/g" | sed "s/^/\"/g" | xargs grep --color ' +# Show list of git branches +alias git-br='for k in `git branch|perl -pe s/^..//`; do echo -e ` git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k|head -n 1`\\t$k;done|sort -r' alias sync-pods="rsync --archive --verbose --compress --delete nas:~/podcasts/ $pods_dir"