From 2c6de4d2ae0d34183e946b423bf1d3a7195da7cb Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Mon, 7 Nov 2022 14:42:44 -0800 Subject: [PATCH] Change gcm to work without quoting --- init.zsh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.zsh b/init.zsh index ede2cfa..a663184 100644 --- a/init.zsh +++ b/init.zsh @@ -93,7 +93,13 @@ fi alias ga="git add" alias gaa="git add -A" alias gco="git commit" -alias gcm="git commit -m" +gcm() { + local args + for arg; do + args="${args} ${arg}" + done + git commit -m "${args}" +} alias gca="git commit -a" alias gcam="git commit -am" alias gp="git push"