diff --git a/home/zsh/files/functions.zsh b/home/zsh/files/functions.zsh index 16565ec..40fbafc 100644 --- a/home/zsh/files/functions.zsh +++ b/home/zsh/files/functions.zsh @@ -86,10 +86,10 @@ function register_key() { function push() { git add -A - if [ -z "$1" ]; then + if [ -z "$@" ]; then git commit -m "`date`" else - git commit -m "$1" + git commit -m "\"$@\"" fi git push }