shorten got-push a bit more, fix prompt format

This commit is contained in:
Aaron Bieber 2020-09-15 21:12:58 +00:00
parent c9f27cbaa5
commit 6eb46c9ff7
2 changed files with 3 additions and 6 deletions

View File

@ -5,11 +5,8 @@
function got-push {
local r
r=$(set -e; got info | awk '$1 ~ "^repository:" {print $2}')
if [ "$r" != "" ]; then
[ -z "$r" ] && return 1
(cd "$r" && git push "$@")
else
return 1
fi
}
function got-sync {