Merge pull request #92950 from samuelgrf/fix/oh-my-zsh-functions
oh-my-zsh: undefine functions that don't work on Nix
This commit is contained in:
commit
4c9d74dde7
1 changed files with 11 additions and 0 deletions
|
@ -35,6 +35,17 @@ stdenv.mkDerivation rec {
|
||||||
-e 's/\# \(DISABLE_AUTO_UPDATE="true"\)/\1/' \
|
-e 's/\# \(DISABLE_AUTO_UPDATE="true"\)/\1/' \
|
||||||
$template
|
$template
|
||||||
|
|
||||||
|
chmod +w oh-my-zsh.sh
|
||||||
|
|
||||||
|
# Both functions expect oh-my-zsh to be in ~/.oh-my-zsh and try to
|
||||||
|
# modify the directory.
|
||||||
|
cat >> oh-my-zsh.sh <<- EOF
|
||||||
|
|
||||||
|
# Undefine functions that don't work on Nix.
|
||||||
|
unfunction uninstall_oh_my_zsh
|
||||||
|
unfunction upgrade_oh_my_zsh
|
||||||
|
EOF
|
||||||
|
|
||||||
# Look for .zsh_variables, .zsh_aliases, and .zsh_funcs, and source
|
# Look for .zsh_variables, .zsh_aliases, and .zsh_funcs, and source
|
||||||
# them, if found.
|
# them, if found.
|
||||||
cat >> $template <<- EOF
|
cat >> $template <<- EOF
|
||||||
|
|
Loading…
Reference in a new issue