I recently switched over to Zsh, and I have some configuration shell files I want to load into Zsh. However, it doesn't appear Zsh allows for command assignment by string to a variable.
What used to work
local git_conf='git config --global'
$git_conf rebase.autosquash true
In Bash the above works fine. However in Zsh it prints out:
command not found: git config --global
If I simply write the whole command out in the same file it works, but if I assign a partial command to a variable it doesn't. Is there a way around this?
Thanks,