2022-07-12 18:48:17 +00:00
|
|
|
compdef g=git
|
|
|
|
|
2019-10-09 18:02:37 +00:00
|
|
|
# No arguments: `git status`
|
|
|
|
# With arguments: acts like `git`
|
|
|
|
g() {
|
2020-07-20 00:47:30 +00:00
|
|
|
if [[ $# > 0 ]];
|
2020-07-19 20:58:21 +00:00
|
|
|
then
|
2019-10-09 18:02:37 +00:00
|
|
|
git $@
|
|
|
|
else
|
2020-01-17 11:31:38 +00:00
|
|
|
git status --short --branch
|
2019-10-09 18:02:37 +00:00
|
|
|
fi
|
|
|
|
}
|