commit e070ff29a74bc469628692fa47dc78de805e9414 parent 2d5d9f5aaf4f96574334341e62c1b8def54071fc Author: Anton Konyahin <me@konyahin.xyz> Date: Thu, 7 Mar 2024 21:20:57 +0300 scripts: small fixe for interactive git Diffstat:
M | scripts/dot-bin/g | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/scripts/dot-bin/g b/scripts/dot-bin/g @@ -2,13 +2,14 @@ set -eu -TEMP_CONFIG="$(mktemp)" +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' -PS1='$(git status -s)\n\W:$(git branch --show-current)\$ ' +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