shorten got-push a bit more, fix prompt format
This commit is contained in:
parent
c9f27cbaa5
commit
6eb46c9ff7
@ -41,7 +41,7 @@ Have your cake and eat it too!
|
||||
| Name | Example | Extensions used |
|
||||
|------------+--------------------------------+-----------------|
|
||||
| [[prompts/q.org][q]] | ~qbit@litr[0]:~$~ | git-prompt, got |
|
||||
| [[prompts/plain.org][plain]] | ~ litr:~/src/ohmyksh/prompts$~ | - |
|
||||
| [[prompts/plain.org][plain]] | ~litr:~/src/ohmyksh/prompts$~ | - |
|
||||
| [[prompts/og-openbsd.org][og-openbsd]] | ~$~ | - |
|
||||
| [[prompts/9.org][9]] | ~%~ | - |
|
||||
|
||||
|
@ -5,11 +5,8 @@
|
||||
function got-push {
|
||||
local r
|
||||
r=$(set -e; got info | awk '$1 ~ "^repository:" {print $2}')
|
||||
if [ "$r" != "" ]; then
|
||||
(cd "$r" && git push "$@")
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
[ -z "$r" ] && return 1
|
||||
(cd "$r" && git push "$@")
|
||||
}
|
||||
|
||||
function got-sync {
|
||||
|
Loading…
Reference in New Issue
Block a user