diff --git a/.zshrc b/.zshrc index 79937ce..f275f57 100644 --- a/.zshrc +++ b/.zshrc @@ -128,6 +128,10 @@ export EDITOR='vim' function pushdot { cd ~/.dotfiles && - git add .* && git commit && git push -u origin master + if [ $# -eq 0 ]; then + git add .* && git commit && git push -u origin master + else + git add .* && git commit -m "$1" && git push -u origin master + fi cd - }