I have this zsh alias:
alias ogf="source <(clone_git_file -ts $1)"
clone_git_file -ts
returns a string which can be executed in a shell. Using source <(...)
works perfectly (executes the code in my current shell), but I can't get the $1
token to be passed into the nested command.
I found the source
usage above here by the way.
How can I achieve this, passing in the token correctly? If I remove the source <(
from my alias and do this:
source <(ogf my_url)
my_url
is passed along and everything works perfectly.