shell: turn git glo and gt into smarter functions