Closed wichtounet closed 10 years ago
In interactive mode, ZSH will read ~/.zshrc
. Else, it will first stick to /etc/zshenv
, then /etc/zprofile
and last to .zshrc
. Without this, running shell command from within Vim may result in command not found
.
May you share your argument on why it should never be running in interactive mode? I'd like to know more.
I made an update concerning this specific point today. Try with the update and let me know. I have no idea why it breaks for some people, particularly those not using ZSH. It works like a charm for me in interactive mode from Vim so I need details on your environment :)
I read a bit more about this and it seems that I was mistaken about the interactive mode, sorry. I thought it was only related to getting input.
Its usage seems correct in your case, it don't see why it breaks. I saw the same problem in other problems that were related to using env in the scripts. It was resolved by using exec env instead, but it is perhaps not related.
Is it really necessary for all the scripts to read .zshrc ? Plenty of time, the .zshrc files are quite complex and most of it is related to the usage of the shell (completion, theming, aliases, colors, ...). If really, shouldn't the script source .zshrc ?
I don't think my environment is quite special: Gentoo, zsh 5.0.2, oh-my-zsh.
It tried your update, but it doesn't change anything, I still have to remove the -i option to make it work.
I have no clue yet. Do you have an error or something running zsh -i
command?
I just made a pull request that fixes this, the issue is related to using -l insted of -i. For all details around interactive and login shell view the following link. http://zsh.sourceforge.net/Guide/zshguide02.html
Fixed with #90
When I install vimified, it just hangs forever during bundle installation. Then, if I kill it and try to use vim, it just gets suspended (tty output).
I removed the -i option in the shell variable when zsh is selected and it works like a charm now.
Why is the shell running in interactive mode ? I don't think it should ever be running in interactive mode from vim.