terminal vim not loading .zshrc

前端 未结 3 1737
我在风中等你
我在风中等你 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:22

    From the manual:

    Commands  are  first  read from /etc/zshenv; this cannot be overridden.
    
    [...]
    
    Commands are then read from $ZDOTDIR/.zshenv. If the shell is a
    login shell, commands are read from /etc/zprofile and then 
    $ZDOTDIR/.zprofile. Then, if the shell is interactive, 
    commands are read from /etc/zshrc and then $ZDOTDIR/.zshrc. Finally,
    if the shell is a login shell, /etc/zlogin and $ZDOTDIR/.zlogin are
    read.
    

    From what I understand,

    set shell=zsh\ -i
    

    should work.

提交回复
热议问题