.zshrc, I declare some aliases. Eg,
which dbstart shows the contents of that alias.
If I open vim from that shell, it is a child process. In Vim, I can run shell commands with
:! some_command. If I do
:! echo $0 to see what shell Vim is using, it outputs '/bin/zsh'. However, my aliases are unavailable there.
How can I make my normal shell alises available when I shell out from Vim?
EXPORTthe aliases from the original shell, to its child process
vim, and again to its shell child process
- Configure Vim to read my
.zshrcwhen creating its subshells