From 40809c10cb839ba9d5f1e2146e60000ea3407bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Sat, 14 Sep 2024 17:53:40 +0200 Subject: [PATCH] fix push command --- home/zsh/files/functions.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }