From 86a7542e71e0fe6a2456f83abac06de4c99794d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Sat, 14 Sep 2024 17:52:29 +0200 Subject: [PATCH] Accept any number of arguments instead of needing to use strings --- home/zsh/files/functions.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }