From e281e6307fdc32267e526f9d62d16f63e4960b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 2 Feb 2023 11:31:04 +0100 Subject: Script fix color for all commands. --- wiki | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'wiki') diff --git a/wiki b/wiki index c89228d..1f7dcc1 100755 --- a/wiki +++ b/wiki @@ -8,7 +8,7 @@ WIKI_LIST=$(ls $WIKIROOT | grep -v html) wiki_list="" -alias git='git -c color.status=always' +GIT='git -c color.status=always -c color.ui=always' # # Adds all files to git, and commits with either the arguments as @@ -21,8 +21,8 @@ function commit { else msg="$*" fi - git add -A - git commit -m "$msg" + $GIT add -A + $GIT commit -m "$msg" } # @@ -30,10 +30,10 @@ function commit { # function ammend { if [ $# -eq 1 ]; then - git commit --amend + $GIT commit --amend else msg="$*" - git commit --amend -m "$msg" + $GIT commit --amend -m "$msg" fi } @@ -58,13 +58,13 @@ function wiki_do { ;; g|go) commit $@ - git push + $GIT push ;; echo) echo "-- $wiki --" ;; *) - eval "git -c color.status=always $@" + $GIT "$@" ;; esac } -- cgit v1.2.3