commit 2d5d9f5aaf4f96574334341e62c1b8def54071fc parent f65574ac775cdd2033da22a62a689183111483e8 Author: Anton Konyahin <me@konyahin.xyz> Date: Thu, 7 Mar 2024 09:54:57 +0300 scripts: initial version of git repl Diffstat:
A | scripts/dot-bin/g | | | 19 | +++++++++++++++++++ |
1 file changed, 19 insertions(+), 0 deletions(-)
diff --git a/scripts/dot-bin/g b/scripts/dot-bin/g @@ -0,0 +1,19 @@ +#!/usr/bin/env sh + +set -eu + +TEMP_CONFIG="$(mktemp)" + +tee <<EOF > "$TEMP_CONFIG" +alias commit='git commit -m' +alias push='git remote | xargs -n 1 git push' +alias log='git log' +PS1='$(git status -s)\n\W:$(git branch --show-current)\$ ' + +echo "gggiiittt started" +EOF + +echo "rm -f $TEMP_CONFIG" >> "$TEMP_CONFIG" + +export ENV="$TEMP_CONFIG" +ksh -i