diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-02-02 11:31:04 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-02-02 11:31:04 +0100 |
commit | e281e6307fdc32267e526f9d62d16f63e4960b28 (patch) | |
tree | 8ddde48c791597018e1c0d222c2992985b016b8c /wiki | |
parent | tor 2 feb 2023 11:21:01 CET (diff) | |
download | wiki-public-e281e6307fdc32267e526f9d62d16f63e4960b28.tar.gz wiki-public-e281e6307fdc32267e526f9d62d16f63e4960b28.tar.xz |
Script fix color for all commands.
Diffstat (limited to 'wiki')
-rwxr-xr-x | wiki | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 } |