I am creating some formulae for homebrew in a tap room (https://github.com/IvoNet/homebrew-cli). I have one massively usefull script IMHO :-) that can scan all my git projects and make navigating between them very easy. But in order to use it it needs to be sourceed into the current shell otherwize the cd command will not stick.
Is it possible to create aliasses in a brew formula?
e.g.
alias gcd="source /usr/local/bin/gcd"
I'm very new to creating formulae for brew and I have not found a way to do this. This alias needs to be set for every terminal session so should land in something like .zshrc / .profile or somesuch?!
Is this possible?