mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Merge 6ffbdd1333 into 67dad45b38
This commit is contained in:
commit
74e5cede89
1 changed files with 20 additions and 0 deletions
|
|
@ -146,3 +146,23 @@ _arguments \
|
||||||
'(--help)--help[help about the current command]' \
|
'(--help)--help[help about the current command]' \
|
||||||
&& return 0
|
&& return 0
|
||||||
|
|
||||||
|
# Alias overriding default "heroku" command to ease setting app or remote name.
|
||||||
|
#
|
||||||
|
# heroku @@foo info -> heroku info -a foo
|
||||||
|
# heroku @foo info -> heroku info -r foo
|
||||||
|
|
||||||
|
heroku() {
|
||||||
|
if [ $# -gt 0 ] && [ ${1:0:2} = "@@" ]
|
||||||
|
then
|
||||||
|
app=${1:2}
|
||||||
|
shift
|
||||||
|
command heroku $@ -a $app
|
||||||
|
elif [ $# -gt 0 ] && [ ${1:0:1} = "@" ]
|
||||||
|
then
|
||||||
|
remote=${1:1}
|
||||||
|
shift
|
||||||
|
command heroku $@ -r $remote
|
||||||
|
else
|
||||||
|
command heroku $@
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue