Add fish, scripts and git

This commit is contained in:
2021-02-14 21:37:08 +01:00
parent d0ad79e63b
commit 7d2921b09e
12 changed files with 295 additions and 0 deletions

19
bin/prettygit Executable file
View 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 $@