Função para colocar em ~/.zshrc
:
work_log() {
for i in *; do [ -d "$i/.git" ] && (cd $i; git log --date=short --pretty=format:"%ad $i %s" --author="$(git config --get user.email)") 2> /dev/null; done | sort | tac
}
Uso:
cd ~/Projects
work_log | less # normal usage
work_log | grep -v dotfiles | less # exclude shome project
Resultado:
2013-10-14 dotfiles Update gitignore
2013-10-09 s3_file_field Bump version
(...)