I'm facing problem in using multiple alias in a single line on Mac bash Terminal.
I have setup below alias in my .bash_profile file
alias gc=gcloud
alias cmp=compute
alias ins=instances
alias pdev="--project=devproj-12891"
function listgce(){
gcloud compute instances list --project "$1"
}
all those are available as alias individually and can be used but when I try to use multiple of these on a single command, bash evaluates to only first one. Example :
~ % gc cmp ins list pdev
ERROR: (gcloud) Invalid choice: 'cmp'.
Maybe you meant:
gcloud compute instances
Can please someone guide me if I'm doing something wrong in this ?