Created
March 12, 2019 07:29
-
-
Save patorash/c329567ad6a3c93866008876e66fc635 to your computer and use it in GitHub Desktop.
Revisions
-
patorash created this gist
Mar 12, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ function peco_git_commit --description="Select git commit message by history" if set -q $argv history | peco | read line else history | peco --query $argv | read line end if test -n "$line" commandline "git commit -m \"$line\"" end set -e line end alias pgc "peco_git_commit"