Advertisement
voyeg3r

autocommits

May 7th, 2020
2,466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.39 KB | None | 0 0
  1. augroup dotcommits
  2.     au!
  3.     autocmd BufWritePost ~/.dotfiles/wiki/* silent! !git add "%";git commit -m "Auto commit of %:t." "%";git push
  4.     autocmd BufWritePost ~/.dotfiles/nvim/init.vim silent! !git add "%";git commit -m "Auto commit of %:t." "%";git push
  5.     autocmd BufWritePost ~/.dotfiles/nvim/snips/* silent! !git add "%";git commit -m "Auto commit of %:t." "%";git push
  6. augroup END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement