Skip to content

Instantly share code, notes, and snippets.

@aloha1003
Created August 1, 2018 02:57
Show Gist options
  • Save aloha1003/f3451a80403a0fcb145f69818d24f91e to your computer and use it in GitHub Desktop.
Save aloha1003/f3451a80403a0fcb145f69818d24f91e to your computer and use it in GitHub Desktop.
function glne () {
local str=`git --no-pager log --name-only $* |percol `
if [[ $str =~ ^[[:space:]]*([a-z0-9A-Z_.\/-]*).*$ ]]; then
sublime $(pwd)/${BASH_REMATCH[1]};
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment