Prettify the default git log.
This commit is contained in:
parent
3802a3e61b
commit
e4e56f0312
@ -116,7 +116,7 @@ git_log_format_oneline='--pretty=format:%C(green)%h%C(reset) %s%C(red)%d%C(reset
|
|||||||
git_log_format_oneline_more='--pretty=format:%C(green)%h%C(reset) %C(blue)%ad%C(reset) %s%C(red)%d%C(reset) [%C(magenta)%an%C(reset)]'
|
git_log_format_oneline_more='--pretty=format:%C(green)%h%C(reset) %C(blue)%ad%C(reset) %s%C(red)%d%C(reset) [%C(magenta)%an%C(reset)]'
|
||||||
git_log_format_medium='--pretty=format:%C(green)Commit: %H%C(red)%d%C(reset)%n%C(magenta)Author: %an <%ae>%C(reset)%n%C(blue)Date: %cd%C(reset)%n%+s%n%+b'
|
git_log_format_medium='--pretty=format:%C(green)Commit: %H%C(red)%d%C(reset)%n%C(magenta)Author: %an <%ae>%C(reset)%n%C(blue)Date: %cd%C(reset)%n%+s%n%+b'
|
||||||
|
|
||||||
alias gl='git log'
|
alias gl='git log --topo-order ${git_log_format_medium}'
|
||||||
compdef _git gl=git-log
|
compdef _git gl=git-log
|
||||||
alias glo='git log --topo-order ${git_log_format_oneline}'
|
alias glo='git log --topo-order ${git_log_format_oneline}'
|
||||||
compdef _git glo=git-log
|
compdef _git glo=git-log
|
||||||
|
Reference in New Issue
Block a user