commit d6366d493bbcca4867f2cd405d2a397006c8c748 parent 3decb7bfd9ad6cdb18e54f03916c212a138e7449 Author: Anton Konyahin <me@konyahin.xyz> Date: Fri, 8 Mar 2024 16:13:22 +0300 scripts: move interactive git to another project Diffstat:
D | scripts/dot-bin/g | | | 20 | -------------------- |
1 file changed, 0 insertions(+), 20 deletions(-)
diff --git a/scripts/dot-bin/g b/scripts/dot-bin/g @@ -1,20 +0,0 @@ -#!/usr/bin/env sh - -set -eu - -TEMP_CONFIG="$(mktemp -t igit.XXXXXX)" - -tee <<EOF > "$TEMP_CONFIG" -alias commit='git commit -m' -alias push='git remote | xargs -n 1 git push' -alias log='git log --oneline' -alias diff='git diff' -PS1='$(git -c color.ui=always 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