kevinhughes27 / dotfiles

4 stars 1 forks source link

Port gp to gitconfig #12

Closed kevinhughes27 closed 1 year ago

kevinhughes27 commented 1 year ago

port gp (one of my oldest pieces of configuration!) from a shell function to be defined right in gitconfig. This makes it portable with only the gitconfig file :)

getting all the escaping right was a pain. [[ is not valid in the git alias shell command so I had to re-work it a bit. Toughest part was figuring out a portable substring check. thanks https://unix.stackexchange.com/a/554680

kevinhughes27 commented 1 year ago

turns out that wasn't even right. re-worked with grep (https://github.com/kevinhughes27/dotfiles/commit/e3850d90ce4e51b97625eff93117ea491a40bdc0)