dotfiles

Settings and scripts
git clone git://git.konyahin.xyz/dotfiles
Log | Files | Refs | LICENSE

g (409B)


      1 #!/usr/bin/env sh
      2 
      3 set -eu
      4 
      5 TEMP_CONFIG="$(mktemp -t igit.XXXXXX)"
      6 
      7 tee <<EOF > "$TEMP_CONFIG"
      8 alias commit='git commit -m'
      9 alias push='git remote | xargs -n 1 git push'
     10 alias log='git log --oneline'
     11 alias diff='git diff'
     12 PS1='$(git -c color.ui=always status -s)\n\W:$(git branch --show-current)\$ '
     13 
     14 echo "gggiiittt started"
     15 EOF
     16 
     17 echo "rm -f $TEMP_CONFIG" >> "$TEMP_CONFIG"
     18 
     19 export ENV="$TEMP_CONFIG"
     20 ksh -i