Various Linux scripts.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
370 B

#!/usr/bin/env 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\+.*Not Committed Yet.*") \
<(vcat "$1") \
| less -R