add mdtoc

This commit is contained in:
Michael Grote 2023-02-17 10:44:24 +01:00
parent f84bd3585f
commit bc0693b829

View file

@ -214,6 +214,9 @@ function glogs {
fi;
git log --pretty=format:'%C(auto) %<|(16,trunc)%h %Cred %G?%Creset %<|(60,trunc)%s %<(20,trunc)%Cgreen%cr%Creset %<(15,trunc)%Cblue%an%Creset %Cred%D' --graph --all -$ncommits
}
function mdtoc {
grep --recursive --include="*.md" ^# | sort --version-sort --field-separator=":" | awk 'BEGIN {FS=":"}{print $2 "&&" $1}' | column --table --separator "&&" --table-truncate 1,2
}
### Aliase
# tmux
alias tmuxa="tmux a -t "