dotfiles

:)
git clone https://git.sr.ht/~ashymad/dotfiles
Log | Files | Refs | Submodules | LICENSE

g (533B)


      1 #!/bin/sh
      2 
      3 case "$1" in
      4 a)    sub="add" ;;
      5 bi)   sub="bisect" ;;
      6 b|br) sub="branch" ;;
      7 cl)   sub="clone" ;;
      8 cn)   sub="clean" ;;
      9 c|co) sub="commit" ;;
     10 d)    sub="diff" ;;
     11 f)    sub="fetch" ;;
     12 g)    sub="grep" ;;
     13 i)    sub="init" ;;
     14 l)    sub="log" ;;
     15 m|me) sub="merge" ;;
     16 p|pl) sub="pull" ;;
     17 ps)   sub="push" ;;
     18 rb)   sub="rebase" ;;
     19 rs)   sub="reset" ;;
     20 rr)   sub="restore" ;;
     21 sh)   sub="show" ;;
     22 s|st) sub="status" ;;
     23 ss)   sub="stash" ;;
     24 sw)   sub="switch" ;;
     25 t)    sub="tag" ;;
     26 *)    sub="$1" ;;
     27 esac
     28 
     29 shift
     30 exec git "$sub" "$@"