Remove set +u/-u

Lots of zsh plugins fail to load when login via sshd:

```
$ ssh -p 8022 nix-on-droid@192.168.0.1
(eval):28: __zoxide_hooked: parameter not set
(eval):8: precmd_functions[(r)_direnv_hook]: parameter not set
async_init:1: ASYNC_INIT_DONE: parameter not set
prompt_pure_setup:10: prompt_newline: parameter not set
/nix/store/drwh7ngjshx794jvrvfvaz7wacjhkywi-zsh-fast-syntax-highlighting-1.54/share/zsh/site-functions/fast-syntax-highlighting.plugin.zsh:48: ZPLG_CUR_PLUGIN: parameter not set
```
This commit is contained in:
Zhong Jianxin 2021-10-22 22:06:52 +08:00 committed by Tobias Happ
parent 4ade388b9a
commit 543c3bfdee
2 changed files with 0 additions and 4 deletions

View file

@ -60,9 +60,7 @@ writeText "login-inner" ''
fi
''}
set +u
. "${config.user.home}/.nix-profile/etc/profile.d/nix-on-droid-session-init.sh"
set -u
${lib.optionalString config.build.initialBuild ''
exec /usr/bin/env bash # otherwise it'll be a limited bash that came with Nix

View file

@ -26,9 +26,7 @@ let
${optionalString (config.home-manager.config != null) ''
if [ -e "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" ]; then
set +u
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
set -u
fi
''}