2021-12-31 11:54:55 -08:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
# Eryn Wells <eryn@erynwells.me>
|
|
|
|
|
2022-01-22 10:13:05 -08:00
|
|
|
function g {
|
2021-12-31 11:54:55 -08:00
|
|
|
if [[ $# -gt 0 ]]; then
|
|
|
|
git $@
|
|
|
|
else
|
|
|
|
git status --short --branch
|
|
|
|
fi
|
|
|
|
return $?
|
|
|
|
}
|
|
|
|
|
2022-01-22 10:13:05 -08:00
|
|
|
# Use git completion for the g function
|
|
|
|
compdef g='git'
|
|
|
|
|
2021-12-31 11:54:55 -08:00
|
|
|
g "$@"
|