dracula / zsh

🧛🏻‍♂️ Dark theme for ZSH
https://draculatheme.com/zsh
MIT License
270 stars 70 forks source link

Sourcing /lib/async.zsh fails on nixOS #60

Open matthiasdv opened 3 months ago

matthiasdv commented 3 months ago

I just tried installing this theme on a nixOS install. When i run zsh I get:

/home/<user>/.config/oh-my-zsh/themes/dracula.zsh-theme:source:16: no such file or directory: /nix/store/lib/async.zsh

I think this is caused by .zshrc and dracula.zsh-theme being symlinks to a directory that's owned by root. /nix/store in this case.

I solved this by changing this line:

https://github.com/dracula/zsh/blob/master/dracula.zsh-theme#L16C1-L16C30

to:

source ${ZSH_CUSTOM}/themes/lib/async.zsh