aboutsummaryrefslogtreecommitdiff
path: root/wiki
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-02-02 11:31:04 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2023-02-02 11:31:04 +0100
commite281e6307fdc32267e526f9d62d16f63e4960b28 (patch)
tree8ddde48c791597018e1c0d222c2992985b016b8c /wiki
parenttor 2 feb 2023 11:21:01 CET (diff)
downloadwiki-public-e281e6307fdc32267e526f9d62d16f63e4960b28.tar.gz
wiki-public-e281e6307fdc32267e526f9d62d16f63e4960b28.tar.xz
Script fix color for all commands.
Diffstat (limited to 'wiki')
-rwxr-xr-xwiki14
1 files changed, 7 insertions, 7 deletions
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
}