pager - Focus HEAD initially in git log -
i use command view git commit graph:
git log --oneline --graph --decorate --all
is there way have git log
focus on head
pointer initially? in: put head
commit in middle of screen when run command, while still showing whole tree?
i have lots of other commits on top of me so, in every case, when run command, first thing search "\(head
". it's annoying...
is there way automate initial search in less
?
less take argument initial search. use when declaring pager.
example using git_pager environment variable:
git_pager='less -p"\(head"' git log --oneline --graph --decorate --all
you set pager option global pager config or project pager config.
Comments
Post a Comment