You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using oh-my-zsh on the host and trying to enter into a container will error out because FPATH is messed up somehow. The workaround is that once in the container, you must unset FPATH; zsh. To Reproduce
Install ZSH and oh-my-zsh on the host
Enter into a container
broken
Expected behavior
No errors. Using bash works fine.
Logs
/home/luna/.oh-my-zsh/oh-my-zsh.sh:127: compinit: function definition file not found
/home/luna/.oh-my-zsh/oh-my-zsh.sh:150: zrecompile: function definition file not found
/home/luna/.oh-my-zsh/lib/async_prompt.zsh:144: add-zsh-hook: function definition file not found
/home/luna/.oh-my-zsh/lib/completion.zsh:78: bashcompinit: function definition file not found
/home/luna/.oh-my-zsh/lib/directories.zsh:34: command not found: compdef
/home/luna/.oh-my-zsh/lib/git.zsh:49: is-at-least: function definition file not found
/home/luna/.oh-my-zsh/lib/termsupport.zsh:108: add-zsh-hook: function definition file not found
/home/luna/.oh-my-zsh/lib/termsupport.zsh:109: add-zsh-hook: function definition file not found
/home/luna/.oh-my-zsh/lib/termsupport.zsh:163: add-zsh-hook: function definition file not found
/home/luna/.oh-my-zsh/lib/theme-and-appearance.zsh:2: colors: function definition file not found
/home/luna/.oh-my-zsh/plugins/git/git.plugin.zsh:101: command not found: compdef
/home/luna/.oh-my-zsh/plugins/git/git.plugin.zsh:183: command not found: compdef
/home/luna/.oh-my-zsh/plugins/git/git.plugin.zsh:211: command not found: compdef
/home/luna/.oh-my-zsh/plugins/git/git.plugin.zsh:218: command not found: compdef
/home/luna/.oh-my-zsh/plugins/git/git.plugin.zsh:223: is-at-least: function definition file not found
/home/luna/.oh-my-zsh/plugins/git/git.plugin.zsh:248: command not found: compdef
/home/luna/.oh-my-zsh/plugins/git/git.plugin.zsh:275: command not found: compdef
/home/luna/.oh-my-zsh/plugins/git/git.plugin.zsh:291: command not found: compdef
/home/luna/.oh-my-zsh/plugins/git/git.plugin.zsh:302: command not found: compdef
/home/luna/.oh-my-zsh/plugins/git/git.plugin.zsh:305: is-at-least: function definition file not found
/home/luna/.oh-my-zsh/plugins/git/git.plugin.zsh:313: command not found: compdef
/home/luna/.oh-my-zsh/plugins/git/git.plugin.zsh:316: is-at-least: function definition file not found
/home/luna/.oh-my-zsh/plugins/git/git.plugin.zsh:332: command not found: compdef
/home/luna/.oh-my-zsh/plugins/git/git.plugin.zsh:380: is-at-least: function definition file not found
/home/luna/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh:859: is-at-least: function definition file not found
/home/luna/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh:864: add-zsh-hook: function definition file not found
/home/luna/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh:105: is-at-least: function definition file not found
/home/luna/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh:420: is-at-least: function definition file not found
zsh-syntax-highlighting: Failed to load add-zsh-hook. Some speed optimizations will not be used.
zsh-syntax-highlighting: failed loading add-zsh-hook.
zsh-syntax-highlighting: failed loading add-zsh-hook.
/home/luna/.oh-my-zsh/plugins/dirhistory/dirhistory.plugin.zsh:61: add-zsh-hook: function definition file not found
(eval):90: add-zsh-hook: function definition file not found
(eval):91: add-zsh-hook: function definition file not found
Desktop (please complete the following information):
I am using podman version 5.2.5, and distrobox version 1.6.0.1 on Fedora Silverblue 41, using the RPM package for distrobox.
The text was updated successfully, but these errors were encountered:
I had the same problem. After some troubleshooting turns out in my case the problem was caused by shell FPATH variable being exported in .zshrc on host. Some installer script added these two lines at the beginning of my host .zshrc:
Exporting makes FPATH environment variable and as such it is later picked up by distrobox and imported into guest shell where it breaks the default "built-in" fpath.
Describe the bug
Using oh-my-zsh on the host and trying to enter into a container will error out because FPATH is messed up somehow. The workaround is that once in the container, you must
unset FPATH; zsh
.To Reproduce
Expected behavior
No errors. Using bash works fine.
Logs
Desktop (please complete the following information):
I am using podman version 5.2.5, and distrobox version 1.6.0.1 on Fedora Silverblue 41, using the RPM package for distrobox.
The text was updated successfully, but these errors were encountered: