2 changed files with 18 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||||||
|
#!/bin/bash |
||||||
|
|
||||||
|
# Blame с подсветкой синтаксиса |
||||||
|
|
||||||
|
vcat() { |
||||||
|
BAT_CONFIG_PATH="$SHELLRC/etc/soft/bat/bat.conf" bat --decorations never "$1" |
||||||
|
} |
||||||
|
|
||||||
|
clr() { |
||||||
|
sed -e "s/$1/$(echo -e "\033")[7;32m&$(echo -e "\033")[1;0m/g" |
||||||
|
} |
||||||
|
|
||||||
|
paste -d ' ' \ |
||||||
|
<(git blame "$1" | cut -d ')' -f 1 | sed 's/(//' | clr "0\{9\}.*Not Committed Yet.*") \ |
||||||
|
<(vcat "$1") \ |
||||||
|
| less -R |
||||||
|
|
Loading…
Reference in new issue