# gi - Git Interpolator # https://github.com/kallmanation/gi alias it="git" alias gti="git" gi() { first_param_without_leading_t=$(echo "$1" | sed 's/^t//') shift # Remove the first parameter from the list of parameters, $@ git "$first_param_without_leading_t" "$@" } gt() { first_param_without_leading_i=$(echo "$1" | sed 's/^i//') shift # Remove the first parameter from the list of parameters, $@ git "$first_param_without_leading_i" "$@" } for x in {a..z}; do eval "git$x() { git \"$x\$@\"; }" done