Skip to content

Instantly share code, notes, and snippets.

@RatoX
Created March 14, 2017 16:51
Show Gist options
  • Save RatoX/554a0f3a4ed486f1f421fe87b7f8e351 to your computer and use it in GitHub Desktop.
Save RatoX/554a0f3a4ed486f1f421fe87b7f8e351 to your computer and use it in GitHub Desktop.
search string with git blame
ag "$1" --jade --vimgrep | cut -f1,2 -d: | awk -F: '{ print "git blame -L"$2",-1 --show-name -- " $1 }' | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment