zsh-prezto: make zshrc aware of where zsh-prezto is installed (#112448)
Without this, the bundled zshrc runcom is useless as it assumes that zsh-prezto is installed in $ZDOTDIR:-$HOME/.zprezto, so it can't find its entrypoint. Crucially, the home-manager zsh-prezto module uses this runcom so is broken without this also.
This commit is contained in:
parent
1f54e3bc12
commit
f34aeeab8c
1 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,11 @@ stdenv.mkDerivation rec {
|
|||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# make zshrc aware of where zsh-prezto is installed
|
||||
sed -i -e "s|\''${ZDOTDIR:\-\$HOME}/.zprezto/|$out/share/zsh-prezto/|g" runcoms/zshrc
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/zsh-prezto
|
||||
cp -R ./ $out/share/zsh-prezto
|
||||
|
|
Loading…
Reference in a new issue