Added toblame script and changed ddgr alias

This commit is contained in:
z3rOR0ne 2022-11-18 15:54:31 -08:00
parent 2ac41ae952
commit b2626c216d
2 changed files with 12 additions and 2 deletions

View file

@ -404,6 +404,10 @@ alias isos="links https://ftp.crifo.org/artix"
alias smarden="links http://smarden.org/runit/"
alias opengroup="librewolf https://publications.opengroup.org/ &"
# Ian Jackson runs chiark.greened.org.uk, home of PUTTY
# He resigned from Debian in 2014 due to systemd fallout
alias chiark="librewolf https://www.chiark.greenend.org.uk/ &"
# Web Development Resources
# for web accessibility information
alias aditus="librewolf https://aditus.io/ &"
@ -531,8 +535,8 @@ alias nginx_harden="librewolf https://gist.github.com/plentz/6737338 &"
alias nodejs_harden="librewolf https://blog.risingstack.com/node-js-security-checklist/ &"
# ddgr shebang bookmarks
alias ddgr="ddgr -x -n 25 --unsafe --proxy 127.0.0.1:8118"
alias ducky="ddgr -jx -n 25 --unsafe --proxy 127.0.0.1:8118"
# alias ddgr="ddgr -x -n 25 --unsafe --proxy 127.0.0.1:8118"
# alias ducky="ddgr -jx -n 25 --unsafe --proxy 127.0.0.1:8118"
alias {ddgi,dggi,images}='ddgr \!dggi "${1}"'
alias aur='ddgr \!aur "${1}"'
alias archwiki='ddgr \!archwiki "${1}"'

6
scripts/toblame Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
# git blame script showing how many commits each author has made in total
# https://stackoverflow.com/questions/4589731/git-blame-commit-statistics
git ls-tree -r -z --name-only HEAD -- $1 | sed 's/^/.\//' | xargs -0 -n1 git blame \
--line-porcelain HEAD |grep -ae "^author "|sort|uniq -c|sort -nr