by metrognome · 9y ago · 0 comments
$ gi tstatus
To fix this, I've added the following to my .bashrc: gi() {
args=("$@")
args[0]=${args[0]/t/}
git "${args[@]}"
}
It also works if you drop the "t" altogether.gi() { ARG=$(echo $1 | sed s/^t//); shift; git "$ARG" "$@"; }