Add fish, scripts and git
This commit is contained in:
19
bin/prettygit
Executable file
19
bin/prettygit
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
HASH="%C(yellow)%h%C(reset)"
|
||||
RELATIVE_TIME="%C(green)%ar%C(reset)"
|
||||
AUTHOR="%C(blue)<%an>%C(reset)"
|
||||
REFS="%C(red)%d%C(reset)"
|
||||
SUBJECT="%C(reset)%s%C(reset)"
|
||||
|
||||
FORMAT="}$HASH}$RELATIVE_TIME}$AUTHOR}$REFS $SUBJECT"
|
||||
|
||||
function pretty_git_log() {
|
||||
git log --graph --all --color=always --pretty="tformat:$FORMAT" $* |
|
||||
sed -Ee 's/(^[^<]*) ago}/\1}/' |
|
||||
columnize -t -s '}' |
|
||||
less -FXR
|
||||
}
|
||||
|
||||
# grep -v Merge |
|
||||
pretty_git_log $@
|
||||
Reference in New Issue
Block a user