Skip to content

Instantly share code, notes, and snippets.

@rafakato
Created August 27, 2015 17:28
Show Gist options
  • Save rafakato/d0ea8c6d23f105398fbe to your computer and use it in GitHub Desktop.
Save rafakato/d0ea8c6d23f105398fbe to your computer and use it in GitHub Desktop.
livelog (without flickering)
#!/bin/bash
tput civis # hide cursor
#trap "echo test" EXIT # this is not needed actually
watch -n 15 -c -d -t "git --no-pager log \
--graph \
--all \
--pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' \
--abbrev-commit \
--date=relative"
tput cnorm # restore cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment