diff --git a/home/zsh/files/functions.zsh b/home/zsh/files/functions.zsh index 40fbafc..fe49763 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 "$@" ]; then - git commit -m "`date`" + if [ -z "$*" ]; then + git commit -m "$(date)" else - git commit -m "\"$@\"" + git commit -m "$*" fi git push }