Fix for sed cmd on linux
This commit is contained in:
parent
fb13f9cbee
commit
5f3bc782bc
|
@ -29,9 +29,9 @@ show_git_head() {
|
||||||
pretty_git_log() {
|
pretty_git_log() {
|
||||||
git log --graph --abbrev-commit --date=relative --pretty="tformat:${FORMAT}" $* |
|
git log --graph --abbrev-commit --date=relative --pretty="tformat:${FORMAT}" $* |
|
||||||
# Repalce (2 years ago) with (2 years)
|
# Repalce (2 years ago) with (2 years)
|
||||||
sed -Ee 's/(^[^<]*) ago)/\1)/' |
|
sed -Ee 's/(^[^<]*\) ago)/\1)/' |
|
||||||
# Replace (2 years, 5 months) with (2 years)
|
# Replace (2 years, 5 months) with (2 years)
|
||||||
sed -Ee 's/(^[^<]*), [[:digit:]]+ .*months?)/\1)/' |
|
sed -Ee 's/(^[^<]*\), [[:digit:]]+ .*months?)/\1)/' |
|
||||||
# Line columns up based on } delimiter
|
# Line columns up based on } delimiter
|
||||||
column -s '}' -t |
|
column -s '}' -t |
|
||||||
# Page only if we need to
|
# Page only if we need to
|
||||||
|
|
Loading…
Reference in New Issue
Block a user