diff --git a/makefile b/makefile index 9fa3c5f..aca36d2 100644 --- a/makefile +++ b/makefile @@ -1,2 +1,2 @@ git_push: - nvim -c "source scripts/git-push.vim" -c "q" + nvim --headless -c "source scripts/git-push.vim" -c "q" diff --git a/scripts/.fuse_hidden000017b700000002 b/scripts/.fuse_hidden000017b700000002 new file mode 100644 index 0000000..5fdd8a7 --- /dev/null +++ b/scripts/.fuse_hidden000017b700000002 @@ -0,0 +1,8 @@ +Git add . +let s:commitMsg = input("Commit message: ", "", "file") +if len(s:commitMsg) == 0 + finish +endif +exec "Git commit -m '" . s:commitMsg . "'" +Git pull --rebase +Git push diff --git a/scripts/git-push.vim b/scripts/git-push.vim index 5fdd8a7..4fe0278 100644 --- a/scripts/git-push.vim +++ b/scripts/git-push.vim @@ -3,6 +3,6 @@ let s:commitMsg = input("Commit message: ", "", "file") if len(s:commitMsg) == 0 finish endif -exec "Git commit -m '" . s:commitMsg . "'" +exec "Git commit -m '".s:commitMsg."'" Git pull --rebase Git push