Skip to content

[Bug]: zshenv is not sourced #1582

@wrdls

Description

@wrdls

Current Behavior (bug)

.zshenv doesn't seem to be sourced which breaks my oh-my-zsh install.

Starting a devbox shell...
/Users/wardloos/.zshrc:source:41: no such file or directory: /oh-my-zsh.sh
/Users/wardloos/.zshrc:235: command not found: compdef
(devbox) 

Oh-my-zsh is installed with home-manager (with fleek) which adds the following lines:

.zshenv

ZSH="/nix/store/2rg6fplzz5klibd6cw8nm5vikpw71sig-oh-my-zsh-2023-06-26/share/oh-my-zsh";
ZSH_CACHE_DIR="/Users/wardloos/.cache/oh-my-zsh";

.zshrc

source $ZSH/oh-my-zsh.sh

From the output /oh-my-zsh.sh it seems like $ZSH is unset which makes me believe .zshenv is not sourced properly.

Expected Behavior (fix)
.zshenv is sourced properly.

Additional context

❯ devbox version -v                                                         
Version:     0.7.1
Platform:    darwin_arm64
Commit:      9444baeabcb69c2ec8d67ce57536a44171843d9d
Commit Time: 2023-10-19T19:11:54Z
Go Version:  go1.21.3
Launcher:    0.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Merged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions