#!/bin/bash
case "$TERM" in
dumb|emacs)
    git log | head -100
    ;;
*)
    git log | less
    ;;
esac
ViewGit