From cfebc94262234e04081b77363a11ca1996852e36 Mon Sep 17 00:00:00 2001 From: perro Date: Mon, 12 Jun 2023 09:38:53 -0700 Subject: [PATCH] =?UTF-8?q?Actualizaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aliases.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aliases.sh b/aliases.sh index 5f58ca5..226543e 100644 --- a/aliases.sh +++ b/aliases.sh @@ -236,13 +236,13 @@ aliases () { ;; guardar | save) if [ -f "$OZSH_ALIAS" ]; then - cp $OZSH_ALIAS $RLOC_ALIAS + cp -u $OZSH_ALIAS $RLOC_ALIAS else - cp $BASH_ALIAS $RLOC_ALIAS + cp -u $BASH_ALIAS $RLOC_ALIAS fi - cd $(dirname $RLOC_ALIAS) - # git add . && git commit -m "ActualizaciĆ³n" && git push - cd $(parent) + git -C $(parent $RLOC_ALIAS) add . + git -C $(parent $RLOC_ALIAS) commit -m "ActualizaciĆ³n" + git -C $(parent $RLOC_ALIAS) push ;; enlazar | link) if [ -f "$RLOC_ALIAS" ]; then