-
-
Save runeh/5038128 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while : | |
do | |
clear | |
lines=`tput lines` | |
lines=`expr $lines - 2` | |
git --no-pager log --graph --pretty=oneline --abbrev-commit --decorate --all --color $* | head -n $lines | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changed original to size output to terminal, so there's no need to fiddle with -n