Created
August 1, 2018 02:57
-
-
Save aloha1003/f3451a80403a0fcb145f69818d24f91e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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