terminal vim not loading .zshrc

前端 未结 3 1724
我在风中等你
我在风中等你 2021-02-07 08:37

My terminal vim configuration is not loading the ~/.zshrc. Zsh is the environment login shell. What is the proper configuration for this situation?

Here are some measure

3条回答
  •  长发绾君心
    2021-02-07 09:28

    I found an handy solution. As the only thing I really need is all my aliases, I added a function to my ~/.zshrc file:

    function zshalias()
    {
      grep "^alias" ~/.zshrc > ~/.zshenv
    }
    

    Then execute source ~/.zshrc && zshalias.

    In your vimrc you only need:

    shell=zsh
    

    Everything then works perfectly with no suspended tty output!

提交回复
热议问题