Search code examples
bashvimzshaliases

Zshell aliases like !gst inside vim?


Is there a way to run my zshell aliases inside vim, with the output going to a new split?

I'm using oh-my-zsh's git aliases like gst, and I am unable to do :!gst inside vim.

Thanks


Solution

  • Try

    :set shell=zsh\ -l

    And put the alias setting to ~/.zshenv

    Here is the similar question terminal vim not loading .zshrc.